Commit graph

2884 commits

Author SHA1 Message Date
tibbi
7957f28b97 speed up cached folder fetching by not checking .nomedia multiple times 2021-01-13 21:02:06 +01:00
Isira Seneviratne
8def34faf0 Convert DateTakensDao functions to suspend functions. 2020-12-06 07:34:24 +05:30
tibbi
15285e8c2c fixing a crash at fetching Date Taken values from our db 2020-12-05 23:27:49 +01:00
tibbi
49c809815f fix #1976, properly handle app protection at opening a default folder 2020-12-05 23:21:09 +01:00
tibbi
74777a7cb8 fix #1999, always use white color at the top items of fullscreen view 2020-12-05 22:58:49 +01:00
tibbi
10c5b678be adding a new faq item 2020-11-27 22:18:07 +01:00
tibbi
3e134c4e37 fixing some thumbnail coloring issues 2020-11-10 10:07:44 +01:00
tibbi
d4117fde5a adding thumbnail customization and default folder at Whats New 2020-11-09 16:48:33 +01:00
tibbi
564e56b20d moving the default folder related code up 2020-11-09 13:40:17 +01:00
tibbi
58a838f770 allow setting the Recycle bin and Favorites folders as defaults 2020-11-09 12:39:10 +01:00
Tibor Kaputa
78f40ebc9f
Merge pull request #1945 from roland-kister/master
Added default folder option
2020-11-08 23:01:27 +01:00
tibbi
425d1f77b5 use the local config variable at folders 2020-11-08 21:39:39 +01:00
tibbi
c2ee93e039 recreate the directory adapter if something thumbnail style related changes 2020-11-08 21:30:26 +01:00
tibbi
e37fe3ab37 add handling for limiting long folder titles to 1 line 2020-11-08 21:10:37 +01:00
tibbi
5573a4eb18 fixing some additional customization glitches 2020-11-08 21:05:50 +01:00
tibbi
650c04d3c3 adding a couple customization fixes 2020-11-08 20:44:58 +01:00
tibbi
9f12a3a6f1 use proper folder name with all settings 2020-11-08 20:20:35 +01:00
tibbi
042e50d8de properly handle exporting and importing thumbnail style related values 2020-11-08 20:04:39 +01:00
tibbi
b613ab02ab finishing up the thumbnail customizer dialog 2020-11-08 19:42:07 +01:00
tibbi
781adcfa10 renaming the directory thumbnail file, append square 2020-11-08 19:15:05 +01:00
tibbi
fe5cb84ccc show proper folder name at style sample 2020-11-08 18:41:55 +01:00
tibbi
5218f8f359 adding a sample image at thumbnail style customizatation dialog 2020-11-08 18:40:45 +01:00
tibbi
01efb1bf81 store the selected customization related values 2020-11-08 15:49:34 +01:00
tibbi
20ef1924a7 creating the thumbnail customization dialog 2020-11-08 15:31:56 +01:00
tibbi
b35b22d0eb preparing some folder customization things 2020-11-08 11:45:33 +01:00
Roland Kister
273ac6bd01 Merge branch 'master' of github.com:SimpleMobileTools/Simple-Gallery into master 2020-11-03 22:50:40 +01:00
Roland Kister
f817755a04 Changed config.defaultFolder to String 2020-11-03 22:48:51 +01:00
tibbi
4ab2b6a437 reverting to the previous UI of the main screen 2020-11-03 10:16:48 +01:00
tibbi
e9a878454c fixing some folder UI glitches 2020-11-02 13:35:14 +01:00
tibbi
46002b4358 use smaller rounded corners at list views 2020-11-02 13:22:30 +01:00
tibbi
e8dd9144c1 do not show file count on the main screen if it is disabled in settings 2020-11-02 12:51:54 +01:00
tibbi
4106df2b6c fix #1897, properly load zoomable images in some cases 2020-11-02 12:17:06 +01:00
tibbi
c7d4be1d9d fix the new UI with horizontal view too 2020-11-01 23:42:03 +01:00
tibbi
bcabc231e2 calculate the scrollview height properly for the scrollbar 2020-11-01 22:20:02 +01:00
tibbi
a7c1789a55 updating the main screens UI, use rounded corners at thumbnails 2020-11-01 21:58:18 +01:00
tibbi
8896730d8b catch exceptions thrown at fetching nomedia folders 2020-11-01 17:26:21 +01:00
tibbi
7093640f66 moving some grid/list view related things in Commons, no real change 2020-10-30 08:49:20 +01:00
tibbi
6ebf54c799 adding a new FAQ item about selecting multiple items 2020-10-28 21:59:23 +01:00
tibbi
4ef159e912 rely on noMedia files from MediaStore on a couple more places 2020-10-28 21:01:51 +01:00
tibbi
eb9ca5df77 fetch nomedia files from MediaStore, use them for quick check 2020-10-28 20:34:30 +01:00
tibbi
a4c590ddd3 insert created nomedia files into MediaStore manually 2020-10-28 20:06:34 +01:00
tibbi
ba4ba6a338 make sure to rescan some WhatsApp folders by default 2020-10-28 18:05:38 +01:00
tibbi
7c8cd2f1f3 removing the prompt about Simple Dialer, SMS Messenger and Voice Recorder 2020-10-28 18:05:26 +01:00
Roland Kister
70d68d1a4a Added default folder option 2020-10-26 09:15:53 +01:00
tibbi
ad049ecb0b wrap Date Taken value fetching in try/catch block 2020-10-24 10:06:21 +02:00
tibbi
a8f107c37f fix #1933, show wrong webp files as casual images 2020-10-10 22:29:25 +02:00
tibbi
a7b35e36b2 use thoe shorter version of cursor looping 2020-10-01 17:30:01 +02:00
tibbi
60b44c27be adding some try/catch blocks 2020-10-01 17:23:29 +02:00
tibbi
7e0ebaace9 properly fetch Date Taken values when needed 2020-09-27 21:22:30 +02:00
tibbi
a3a6ec95e5 updating commons to 5.30.17 2020-09-27 09:57:58 +02:00
tibbi
73b1d2147e fixing a glitch with some folders being invisible 2020-09-27 09:56:02 +02:00
tibbi
cbf831bd31 improve storage permission handling to fix an Android 11 issue 2020-09-25 22:38:26 +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
03a83f5341 delete invalid DB files in batches, not one by one 2020-09-25 14:39:34 +02:00
tibbi
8d7a5b1771 cache all Date Taken values at once, not folder by folder 2020-09-25 14:00:49 +02:00
tibbi
44f5bb5c1e get proper last modified at AsyncTask only if needed 2020-09-25 12:26:14 +02:00
tibbi
f815c626fc prefetch all Last Modified values, not folder by folder 2020-09-25 12:07:40 +02:00
tibbi
ff2cbbf533 optimize file fetching a bit 2020-09-24 23:13:38 +02:00
tibbi
8f58de5126 cache which folder has nomedia file, avoid checking it over and over 2020-09-23 23:17:44 +02:00
tibbi
662efb3207 lets use the new way of checking file lastmodified on Android 11+ only 2020-09-22 23:04:19 +02:00
tibbi
f856a48591 reaccepting the EXIF related pull request for some git messup 2020-09-22 15:13:59 +02:00
tibbi
6325121969 fix #1913, prefer the Last Modified value from mediastore, not our db 2020-09-16 21:09:10 +02:00
tibbi
d906ffe59a convert last_modified to milliseconds at fetching 2020-09-15 23:44:58 +02:00
tibbi
f034ad5786 improve the performance at checking file size too 2020-09-15 23:25:26 +02:00
tibbi
e4dc231589 user the own database of Last Modified values, like Date Takens 2020-09-15 22:59:53 +02:00
tibbi
54bb8232c5 store last_modified in a custom db with date_takens too 2020-09-15 22:26:26 +02:00
tibbi
68140085ff removing a redundant argument 2020-09-09 23:04:33 +02:00
Tibor Kaputa
59b1ee5e67
Merge pull request #1902 from Isira-Seneviratne/Remove_multidex_library
Remove multidex library.
2020-09-09 22:55:47 +02:00
tibbi
164518bb80 move folder distinction check further 2020-09-09 22:54:22 +02:00
tibbi
f38981be7b move the single folder visibility check a bit further in the process 2020-09-09 22:07:39 +02:00
tibbi
a049943c1e avoid checking folder visibility twice at fetching 2020-09-09 21:33:03 +02:00
tibbi
7e69c392a4 do not show Portrait files on Android 11 by default 2020-09-09 21:32:35 +02:00
Isira Seneviratne
f71429f667 Remove multidex library. 2020-08-31 07:42:45 +05:30
tibbi
2e6239c98e updating commons and gradle 2020-08-07 13:27:52 +02:00
tibbi
75e9093b26 recognize a new type of panoramic photos 2020-06-17 10:01:30 +02:00
tibbi
35e92f77e9 add file size to its signature too 2020-06-13 23:42:29 +02:00
tibbi
c3afe2b6d3 always show the sidebar info bubble at scrolling by handle 2020-06-12 22:08:52 +02:00
tibbi
32b9a5db08 fix #1859, properly handle some batch renaming with patterns 2020-06-12 21:38:18 +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
49c1188023 update commons to 5.29.0 2020-06-07 17:46:21 +02:00
tibbi
6f25913558 scan the internal storage from time to time for new folders 2020-06-07 17:31:36 +02:00
tibbi
97b19fe169 do not close main screens Search on opening a folder 2020-06-07 16:33:14 +02:00
tibbi
8a8744fee7 do not close Search on Stop 2020-06-07 16:17:08 +02:00
tibbi
c5042bd89d use caching at the ImageDecoder for faster fullscreen image loading 2020-06-02 12:30:30 +02:00
tibbi
318275590c autoformating some files, no real change 2020-05-29 22:28:51 +02:00
tibbi
150aace3ca properly catch exceptions thrown in the background 2020-05-29 21:25:41 +02:00
tibbi
7605e90632 show Portrait photos by default on Android 10+ 2020-05-29 20:41:23 +02:00
tibbi
3c8ec82bc7 catching some exceptions thrown at inserting media in db 2020-05-17 11:37:55 +02:00
tibbi
668df3b8fb show a prompt mentioning our new apps 2020-05-17 11:23:52 +02:00
tibbi
6cdf9ac905 adding some WhatsApp folders at the everShownFolders, check them too 2020-05-17 10:18:37 +02:00
tibbi
c7e6e7e84d do not remove items from everShownFolders map 2020-05-17 10:08:48 +02:00
tibbi
88497c21af reverting glide back to 4.10.0, it was too unstable 2020-05-05 16:15:21 +02:00
tibbi
9e7350da16 do not add the excluded folders into everShownFolders 2020-05-04 15:36:27 +02:00
tibbi
0d01533231 fix #1818, be less agressive at Favorite items cleanup 2020-05-04 11:56:30 +02:00
tibbi
6c77382f60 rescan created .nomedia files at hiding folders 2020-05-04 11:29:36 +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
f0736fe634 show an error at deleting a folder exception, to see what is wrong there 2020-05-04 10:17:17 +02:00
tibbi
8bbc498724 catch some exceptions at inserting folders in db 2020-05-04 10:14:55 +02:00
tibbi
18071f5fe8 updating commons to 5.26.27 2020-04-26 18:59:38 +02:00
tibbi
74cd554248 run media fetcher on reboot on a background thread 2020-04-26 18:45:06 +02:00
tibbi
2a353df76a lets disable Portrait file displaying by default, until it gets improved 2020-04-26 11:40:20 +02:00
tibbi
9cce753ede use a different thread for doing database things at folder thumbnails view 2020-04-26 11:36:28 +02:00
tibbi
1130407046 rescan folders after restarting so they get scanned quicker later 2020-04-26 10:04:38 +02:00
tibbi
462182271d make sure to always create a new thread for inserting some things in db 2020-04-25 16:20:21 +02:00
tibbi
963fd57113 avoid loading the gallery twice at first launch, caused by permission 2020-04-25 12:52:52 +02:00
tibbi
ca46970023 removing un/hide and exclude menu items from folder screen 2020-04-24 19:11:14 +02:00
tibbi
25177e6d3d show Portrait photos by default only on Android 9+ 2020-04-24 17:55:10 +02:00
tibbi
1b1fac9b56 flip some checks at Portrait photos to make it quicker 2020-04-24 17:48:26 +02:00
tibbi
aa4af8a292 make folders distinct before checking if they should be visible 2020-04-24 14:40:55 +02:00
tibbi
26e96418b6 speed up some folder visibility checks 2020-04-24 11:22:38 +02:00
tibbi
0a98fd0536 catch exceptions thrown at getting file date taken 2020-04-23 23:02:38 +02:00
tibbi
db210e8bd1 speed up the sidebar date and time formatter at scrolling 2020-04-23 22:34:58 +02:00
tibbi
f8c80c2a5f speed up the fastscroller date text fetching 2020-04-23 22:24:42 +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
ea1f4781e0 set up the bottom action buttons before displaying 2020-04-21 17:52:02 +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
0aa268ce29 properly handle authentication skipping at videos too 2020-04-20 22:21:25 +02:00
tibbi
bc37181dfd use the selected date format at grouping sections 2020-04-20 20:29:28 +02:00
tibbi
638dab9d97 do not ask for authentication on every screen, at locked folders 2020-04-20 20:22:33 +02:00
tibbi
a1e0d07798 fix a glitch with fullscreen view bottom actions being at the top 2020-04-20 20:11:57 +02:00
tibbi
5ca662103b removing the folder locking check from a few places to avoid duplication 2020-04-18 15:30:43 +02:00
tibbi
f251fec964 use more descriptive variable naming at unlocking 2020-04-18 13:10:50 +02:00
tibbi
8ece25d033 properly handle folder locking at shortcuts and widgets 2020-04-18 13:09:46 +02:00
tibbi
e765332e3b making the visibility toggling function a bit clearer to read 2020-04-18 12:27:39 +02:00
tibbi
8ca190d8ef do not add a folder to Included ones in a specific case, it is confusing 2020-04-18 12:26:38 +02:00
tibbi
22cfd20b58 make sure to rescan a folder after deleting .nomedia file 2020-04-18 11:52:12 +02:00
tibbi
e37f42a93c move location showing on map into Commons 2020-04-18 11:38:19 +02:00
tibbi
aa7300fc35 updating placeholder texts a bit 2020-04-18 10:32:13 +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
c1f7f3eada improving file type recognition at third party intents 2020-04-09 15:49:13 +02:00
tibbi
44e07edb81 move folder sorting handling in Commons 2020-03-26 12:28:49 +01:00
tibbi
3e401bb3af moving some extension functions into Commons 2020-03-25 22:41:44 +01:00
tibbi
53d48cce6d adding some old editor improvements, do not request storage permission 2020-03-19 18:34:37 +01:00
tibbi
1a05ea8db4 do not require the Storage permission at video player activity 2020-03-19 17:32:46 +01:00
tibbi
70a0d0f7a9 properly handle content uris as Panorama Videos 2020-03-19 17:24:56 +01:00
tibbi
83ab2ad56e properly handle panorama photos without storage access 2020-03-19 16:37:57 +01: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
82bf87d154 changing the way folders are fetched, do not rely on BUCKET_ID 2020-03-18 23:48:51 +01:00
tibbi
327e30e0ef hide the Manage Hidden Folders in the app settings on Android 10+ 2020-03-18 23:15:35 +01:00
tibbi
bdccb98895 use Scoped Storage at importing app settings 2020-03-18 23:10:20 +01:00
tibbi
2262829077 fix #1785, properly handle deleting playing videos 2020-03-18 21:40:23 +01:00
tibbi
c25ce6eafe fix a glitch at including/excluding folders 2020-03-07 23:21:22 +01:00
tibbi
23b7e2fef1 fix #1772, add the old editor back in the foss app flavor 2020-03-05 23:17:48 +01:00
tibbi
de48742daa avoid showing portrait photos on the main screen 2020-03-05 20:02:31 +01:00
tibbi
97436ba004 breaking an if/else statement into multiple lines 2020-03-04 14:44:27 +01:00
tibbi
1634ed47a8 do not rescan .nomedia file at hiding a folder, it can delete the file 2020-03-03 16:55:24 +01:00
tibbi
f7735df137 show the No Date Takens found error message only in some cases 2020-03-01 23:31:46 +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
9c31b8d01e adding a null check at checking invalid folders 2020-03-01 22:38:57 +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
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