Commit graph

685 commits

Author SHA1 Message Date
tibbi
a16bbfbcf9 fix #1765, properly handle videos at slideshows 2020-03-01 10:42:08 +01:00
tibbi
ada0661d89 fix video gestures when Gesture Down To Close is disabled 2020-03-01 10:19:31 +01:00
tibbi
be8f6762c5 removing a redundant function 2020-02-28 22:55:40 +01:00
tibbi
4c2c330cbc check null exoplayer at skipping 2020-02-28 22:53:08 +01:00
tibbi
3f95a8f6ca mention video fast forwarding with double clicks at the Whats New window 2020-02-28 20:05:06 +01:00
Leo Pham
d917e42b72 Add proprietary and foss product flavors
The introduction of the proprietary PhotoEditor SDK prevented this app from
being truly free and open source, and so F-Droid could no longer build the app.
By adding a licensing flavor dimension, we segregate the non-FOSS code to a
separate version, while providing a FOSS version without the editor.

To build the proprietary version, select one of the proprietary build variants
from Build Variants pane in Android Studio (on the left side of the window).

Fixes #1706.
2020-02-28 22:46:13 +11:00
tibbi
e2021bcc54 show a better error message at fixing date taken values, if none found 2020-02-23 11:50:16 +01:00
tibbi
17e7fb523d show a clearer error toast at cancelling the editing 2020-02-23 11:44:53 +01:00
tibbi
7be86580d7 do not show the error toast at getting folders to scan 2020-02-23 10:42:04 +01:00
uhm0311
de852799b1 Not to refresh and show all media even query text is not empty. 2020-02-21 15:20:28 +09:00
tibbi
f187a36ebb shortening some code 2020-02-20 12:11:38 +01:00
tibbi
b2da6f5080 skip by 10s at clicking on the curr/max video durations too 2020-02-20 12:04:16 +01:00
tibbi
da8aaa71d0 handle double clicks on volume/brightness controllers too 2020-02-20 11:45:51 +01:00
tibbi
0d7aa81442 adding a double tap listener at the volume/brightness controllers 2020-02-18 15:56:16 +01:00
tibbi
c7bc916784 simplify the brightness/volume area clicks, use a gesture detector 2020-02-18 12:09:23 +01:00
tibbi
f1e5be6f60 shortening some code 2020-02-17 22:55:03 +01:00
tibbi
641df80b21 apply the double tap skipping on the separate window player too 2020-02-17 22:45:50 +01:00
tibbi
f175c71621 fix #1223, updating video player gestures a bit
add double tap to skip forward/backward, double tap center to toggle
play/pause
2020-02-17 22:22:17 +01:00
tibbi
60b3023564 lets use the same instant medium changer width at images 2020-02-17 20:37:40 +01:00
tibbi
7abdd059eb reduce the instant changer width 2020-02-17 20:34:23 +01:00
tibbi
018ec4b0a5 tweaking instant video changing by screen side clicks, remove some views 2020-02-17 20:19:33 +01:00
tibbi
5cc0a804b6 after editing update exif first, the last modified 2020-02-12 22:55:18 +01:00
tibbi
067caeeeeb always copy over exif data at file editing 2020-02-12 22:42:30 +01:00
tibbi
2f0bf7cbec do all that thumbnail fetching only if there is no custom image set 2020-02-12 17:15:04 +01:00
tibbi
57e77abde0 removing a redundant parameter 2020-02-12 17:12:10 +01:00
tibbi
4dfa4c9ea8 make sure we get the proper thumbnail at file grouping too 2020-02-12 17:06:38 +01:00
tibbi
8a26a6c272 fix a glitch at determining if proper date taken and last modified should be fetched 2020-02-12 16:29:47 +01:00
tibbi
8e8cb0bd0f revert to the previous way of sorting by path, do not use parent path 2020-02-11 22:39:16 +01:00
tibbi
a385be80a8 use parent path at folder sorting 2020-02-11 10:06:53 +01:00
tibbi
da5f534539 fixing some folder sorting issues 2020-02-11 09:49:00 +01:00
tibbi
d029381271 renaming a renaming a variable to make it clearer 2020-02-10 23:48:06 +01:00
tibbi
f17ffb8642 properly copy over the exif data after image editing 2020-02-10 23:47:20 +01:00
tibbi
bd9dc8b04b properly handle empty size or dates at comparing 2020-02-10 22:09:06 +01:00
tibbi
b27877c109 make sort_value be empty by default 2020-02-10 22:05:51 +01:00
tibbi
21cc0b97bc properly update the database by adding the new sort_value column 2020-02-10 22:02:58 +01:00
tibbi
0e01026774 fixing some thumbnail and sorting related glitches 2020-02-10 21:59:35 +01:00
tibbi
8d5a47ce6c get proper file last modified value only when actually needed 2020-02-10 11:10:46 +01:00
tibbi
6f565f5828 upgrade the new editor to 7.0.10 2020-02-09 22:33:34 +01:00
tibbi
37d8f4babf store temporarily editor files at the cacheDir, not filesDir 2020-02-09 22:22:56 +01:00
tibbi
02bc49a259 avoid fetching files at a destroyed MainActivity 2020-02-07 20:18:06 +01:00
tibbi
0cfcba6c8f avoid fetching the same folder twice, or after exiting the app 2020-02-07 20:04:45 +01:00
tibbi
2476b97452 properly launch the main activity on first app use 2020-01-28 18:51:28 +01:00
ForgottenUmbrella
9877cbaf2c Remove unreachable branches in video completion handling
It is never the case that `loopVideos == true` in the `videoCompleted` handler,
since enabling that preference sets `repeatMode`, which in turn prevents the
player from reaching `STATE_ENDED`. Thus, the branches are unreachable.
2020-01-29 01:52:44 +11:00
ForgottenUmbrella
e83db406a9 Reset progress views on video loop
The previous loop method of seeking to the beginning at video completion ensured
that the seekbar and current time text were immediately reset. Using ExoPlayer's
own implementation of video looping means that `Player.STATE_ENDED` is no longer
reached, thus the UI no longer accurately tracks progress. Restore the old
behaviour by resetting the views on position discontinuity.
2020-01-29 01:52:44 +11:00
ForgottenUmbrella
f8315438d8 Let ExoPlayer handle video looping seamlessly
Now that videos are replacing the inefficient GIF format, gapless loops are
important. ExoPlayer's built-in mechanism prebuffers the video to enable this,
whereas the current implementation of seeking to the start presents a short but
noticeable delay between each loop.

Note that this change introduces an incompatibility with current behaviour: due
to google/ExoPlayer#6459, certain videos with broken audio tracks that played
fine before will no longer start. Disabling the audio track is a workaround to
re-enable looping playback, but ExoPlayer does not appear to expose a way to
check if the audio track is short enough to produce the bug.
2020-01-29 01:52:44 +11:00
tibbi
035d0363e3 fix #1723, recognize panoramic photos by a new xml tag too 2020-01-27 23:15:47 +01:00
tibbi
3e7f99fc01 fix #1725, properly remember last video playback position, if paused 2020-01-27 23:04:18 +01:00
tibbi
f4c02d1168 fix #1545, properly sort Favorites by date taken 2020-01-27 21:22:10 +01:00
tibbi
650a985a9c make the Date Taken from Fix Date Taken value be higher priority than mediastore 2020-01-27 21:05:05 +01:00
tibbi
2517170aeb store the fixed Date Taken values in the new table 2020-01-27 20:48:37 +01:00