Commit graph

175 commits

Author SHA1 Message Date
tibbi
c5d9ac6fcc prepare the app for having All files permission 2022-05-09 10:44:50 +02:00
tibbi
7eac78411e adding some preparation for Material You theme 2022-04-04 15:58:05 +02:00
tibbi
3e3fb0c580 fix a glitch with the inability to display hidden files anymore 2022-02-13 11:02:51 +01:00
tibbi
8a88a69eea fix #2202, fix crashing at zooming heic files on some devices 2021-08-18 09:55:49 +02:00
tibbi
47f73e9f37 adding support for .apng files 2021-08-17 16:43:20 +02:00
tibbi
fa41371209 use Down animation at closing fullscreen view with a gesture 2021-03-07 22:49:41 +01:00
tibbi
8b735f36d7 adding some GIF and SVG improvements 2021-03-07 22:43:06 +01:00
tibbi
4f79d196d6 moving folder deletion and image orientation fetching to background threads 2021-02-19 16:29:47 +01:00
baron
02da4e4e32 Several fixes to make code work with platform 30 2021-02-18 18:18:02 +01:00
tibbi
2d0a4c6250 fix #2043, replace the old ExifInterface with androidx ExifInterface 2021-01-17 11:50:34 +01:00
tibbi
440aea9eb8 use a more advanced cache key by using size too 2021-01-14 18:50:32 +01:00
tibbi
60e0a68c1c speed up fullscreen media showing a bit by providing files last modified too 2021-01-14 18:29:51 +01:00
tibbi
a8f107c37f fix #1933, show wrong webp files as casual images 2020-10-10 22:29:25 +02:00
tibbi
e7cb91cd34 fix a glitch with animated webp files stucking 2020-09-25 21:36:06 +02:00
tibbi
f3c55e1df8 fix #1124, properly handle playing animated WebP files 2020-09-25 21:23:47 +02:00
tibbi
75e9093b26 recognize a new type of panoramic photos 2020-06-17 10:01:30 +02:00
tibbi
6096dab7c9 some autoformat changes 2020-06-12 20:37:25 +02:00
tibbi
bb33cee722 properly cache fullscreen images 2020-06-12 13:06:16 +02:00
tibbi
88497c21af reverting glide back to 4.10.0, it was too unstable 2020-05-05 16:15:21 +02:00
tibbi
69addc428a improving the way video durations are fetched, should be a lot quicker 2020-05-04 11:04:34 +02:00
tibbi
a4c1da2ac6 use a background thread for fetching video durations 2020-05-04 10:25:34 +02:00
tibbi
c57b3edac5 minor code style update 2020-04-23 21:21:55 +02:00
tibbi
582048590f do not allow clicking the play/pause at fullscreen videos 2020-04-21 18:00:15 +02:00
tibbi
f9d581925b fixing the glitch with bottom actionbar being at the top 2020-04-21 17:49:49 +02:00
tibbi
38aea1cdeb moving some video related icons to Commons 2020-04-21 13:14:29 +02:00
tibbi
b75c58fa0c use the extended navigation bar height check at the video fragment too 2020-04-20 23:00:09 +02:00
tibbi
c20f6fed0f updating Subsampling scale image view + null check 2020-04-14 22:49:05 +02:00
tibbi
ed501572d1 shortening some code by importing more specific mediastore classes 2020-04-14 16:25:27 +02:00
tibbi
ffd15a417a at repeated file loading by content uri, check also if file is panorama 2020-03-19 16:29:22 +01:00
tibbi
518fc9ec1b try loading image by its content uri, if real path fails 2020-03-19 16:22:06 +01:00
tibbi
387eccbadd do not refresh media at playing fullscreen videos, should fix some reseting 2020-03-01 23:05:04 +01:00
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
4c2c330cbc check null exoplayer at skipping 2020-02-28 22:53:08 +01: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
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
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
9a6d1535ba do not show the portrait stripe at fullscreen view 2020-01-15 20:49:44 +01:00