Commit graph

1473 commits

Author SHA1 Message Date
tibbi
8399b4fccd refactoring MediaFetcher once again 2018-04-23 16:50:17 +02:00
tibbi
cfa2f82066 small code cleanup at MediaFetcher 2018-04-23 16:42:45 +02:00
tibbi
64fe17d1b9 store fetched media in db right after getting folders 2018-04-23 16:16:46 +02:00
tibbi
a4f62ffcd9 recheck cached folders at startup one by one 2018-04-23 16:05:54 +02:00
tibbi
4f724786b2 fix media inserting ConcurrentModificationException in a proper way 2018-04-23 13:31:26 +02:00
tibbi
3aaa17a02d fixing a couple crashes 2018-04-23 10:10:34 +02:00
tibbi
508a3b8b19 removing the unused GlideDecoder class 2018-04-22 23:35:53 +02:00
tibbi
4949744677 update commons to 3.19.8 2018-04-22 23:35:08 +02:00
tibbi
04ab018a32 make sure New Folder appears first on the list 2018-04-22 23:15:57 +02:00
tibbi
8ff9e7f6ad fix some Rename related glitches 2018-04-22 23:08:36 +02:00
tibbi
302a7842c4 fetch all stored media files at "Show all folders content" 2018-04-22 22:17:40 +02:00
tibbi
b0a26d0bd8 update UI at picker dialogs from the main thread 2018-04-22 22:08:27 +02:00
tibbi
37c31f813b make sure only the appropriate media files are shown at third party intents 2018-04-22 22:01:05 +02:00
tibbi
d0f4f0d403 rename some media type related constants 2018-04-22 20:16:02 +02:00
tibbi
2eaff8568f properly filter cached directories by file type shown 2018-04-22 20:01:48 +02:00
tibbi
7f17aeda71 refresh media thumbnails instantly after changing sorting or filtering 2018-04-22 10:39:00 +02:00
tibbi
8af103d98c filter cached media by type too 2018-04-22 10:32:13 +02:00
tibbi
a90f48889d do the hidden file filtering right inside getCachedMedia 2018-04-22 10:20:32 +02:00
tibbi
d479baa625 refresh media instantly after toggling Temporarily show hidden too 2018-04-21 23:21:45 +02:00
tibbi
ab589c52cf refresh directories at toggling Temporarily show hidden immediately 2018-04-21 23:18:43 +02:00
tibbi
570e471dec display cached dirs and media only when appropriate 2018-04-21 23:15:31 +02:00
tibbi
e237afe916 update directories if one is renamed 2018-04-21 22:49:29 +02:00
tibbi
f08fd48d1f properly handle deleting not existing directories from local db 2018-04-21 22:23:42 +02:00
tibbi
0039591a53 properly update files after renaming in the local database 2018-04-21 22:19:27 +02:00
tibbi
af7108fd12 remove the old way of caching media files 2018-04-20 22:21:00 +02:00
tibbi
cb5ac8510f delete medium from the local db on delete too 2018-04-20 21:37:15 +02:00
tibbi
ee07da6277 move some extension functions from Activity to Context 2018-04-20 21:11:12 +02:00
tibbi
1a5ec41f8b do not select ID at directories and media, for proper old/new comparing 2018-04-20 21:01:55 +02:00
tibbi
c17b58dc53 rely on Room db data at caching items 2018-04-20 15:34:17 +02:00
tibbi
244e29b437 remove the commented out function too 2018-04-20 14:55:14 +02:00
tibbi
d28b95290f remove the functions related to old checking if folder content changed 2018-04-20 14:54:34 +02:00
tibbi
73ac822661 handle deleting folders from local db 2018-04-20 13:20:44 +02:00
tibbi
5b8143d41e replace the Shared Prefs way of storing directories by Room 2018-04-20 12:35:40 +02:00
tibbi
236ceafe46 removing the install receiver used to fetch media right after installing 2018-04-20 11:55:51 +02:00
tibbi
b0afe92afb move the gallery database fetcher in a context extension 2018-04-20 11:52:26 +02:00
tibbi
73000aa611 store media parent paths too 2018-04-20 11:46:50 +02:00
tibbi
ce4ee915bb store media in a room db too 2018-04-20 11:01:01 +02:00
tibbi
30ce207b1f lets use Room for caching directories 2018-04-19 23:35:18 +02:00
tibbi
8db3a5007a fix #747, hide .nomedia folders only if Show Hidden is disabled 2018-04-15 08:47:07 +02:00
tibbi
870b8c6837 sublist directories at background update 2018-04-14 23:02:01 +02:00
tibbi
3fdce65fe0 use file absolute path instead of name at file signature 2018-04-14 22:29:23 +02:00
tibbi
6db0adced8 catch exceptions thrown at saving image rotation 2018-04-14 22:11:33 +02:00
tibbi
d8c17b8a80 do not unselect items at Edit intent 2018-04-14 22:10:12 +02:00
tibbi
c0d446a3a4 use better default file save path at Edit, if available 2018-04-14 21:58:26 +02:00
tibbi
093fe92596 fix path fetching from content uri at editing 2018-04-14 21:51:48 +02:00
tibbi
c0c7752f79 try getting real filename from content uri at Edit Activity 2018-04-14 21:31:31 +02:00
tibbi
e2f149eb3e hide folders that contain .nomedia file themselves 2018-04-14 16:19:23 +02:00
tibbi
26aa79294b remove sorting by date_taken while it doesnt work anyway 2018-04-13 22:54:53 +02:00
tibbi
2f1b545456 properly store the last filepicker path 2018-04-13 22:33:13 +02:00
tibbi
2a1484f28e delay updating media adapter a bit 2018-04-12 21:35:18 +02:00
tibbi
51f0d87638 improve file signature by getting its name too 2018-04-12 20:50:02 +02:00
tibbi
ce3ce0bec0 show how many items are going to be deleted on the confirmation dialog 2018-04-12 20:19:21 +02:00
tibbi
e67517dd4c handle null file parent in some cases 2018-04-12 19:21:23 +02:00
tibbi
ee1df9ebbb reenable new folder deleting, if it was left empty 2018-04-10 20:36:17 +02:00
tibbi
2bd20c5d98 fix #735, remember last selected folder at adding excluded ones 2018-04-10 20:19:15 +02:00
tibbi
842df6b54c fix #722, show hidden files only when appropriate 2018-04-10 20:10:50 +02:00
tibbi
91f1efac31 renaming cur to cursor 2018-04-10 19:52:23 +02:00
tibbi
a73a61907c do not sort the media files immediately at fetching from mediastore 2018-04-10 15:36:15 +02:00
tibbi
f6ee61a224 remove some redundant code at gettig media by directories 2018-04-10 15:10:51 +02:00
tibbi
75eb8c789a rework the way media files are fetched 2018-04-10 13:45:01 +02:00
tibbi
d2a6d2cb88 properly make the Included folders check recursive 2018-04-09 21:51:28 +02:00
tibbi
1a163ce56a make nomedia check recursive at DirectoryAdapter 2018-04-09 21:39:12 +02:00
tibbi
79dfab5efa fix hiding folders when Show Hidden Items is disabled 2018-04-09 14:28:11 +02:00
tibbi
2b37c315f1 make renaming folders quicker 2018-04-09 14:09:42 +02:00
tibbi
d91228eedf adding a couple improvements related to un/hiding folders 2018-04-09 14:04:42 +02:00
tibbi
71127d45d1 try un/hiding nomedia folders immediately after updating 2018-04-09 11:27:20 +02:00
tibbi
b6d24492ed remove hidden folders instantly, do not refetch everything 2018-04-09 00:00:03 +02:00
tibbi
0271af9c55 update directories instantly after renaming, do not refetch everything 2018-04-08 23:14:25 +02:00
tibbi
f1fe2028d5 do not ever append explicitly included folders with "(hidden)" 2018-04-08 22:40:29 +02:00
tibbi
7888de7b52 fix #728, fix excluding multiple folders at once 2018-04-08 22:06:20 +02:00
tibbi
b1c6006e18 fix #732, delay automatic fullscreen animation a bit to make it smoother 2018-04-08 21:00:27 +02:00
tibbi
ac3e79c15b comment out new app announcement 2018-04-08 19:15:07 +02:00
tibbi
6f361a7296 updating Commons to 3.17.23, use image rotating functions from there 2018-04-01 15:24:56 +02:00
tibbi
b97ab1d795 notify some users about the Clock app 2018-03-30 23:39:00 +02:00
tibbi
4c865de301 update commons to 3.17.16 with some cosmetic code changes 2018-03-30 23:32:37 +02:00
tibbi
2515edee44 remove the explicit scanning of screenshots folder 2018-03-30 21:57:07 +02:00
tibbi
0a1939969e comment out new file scanning again 2018-03-30 21:51:20 +02:00
tibbi
bef5474182 create clones of arraylists at updating thumbnails 2018-03-30 21:36:57 +02:00
tibbi
6ac6109d5e update commons to 3.17.14 2018-03-30 18:49:29 +02:00
tibbi
b1ac75e3d5 stop fetching directories in onDestroy 2018-03-24 10:01:06 +01:00
tibbi
33e4ca5d16 remove the Download folder from the explicitly included ones 2018-03-23 10:48:18 +01:00
tibbi
6eeece124a couple edits to URI obtaining at Edit activity 2018-03-22 15:43:27 +01:00
tibbi
f8a4e68a1f add an extra activity existing check at trying to reload bitmap 2018-03-22 15:16:09 +01:00
tibbi
5468baf513 try scanning Screenshots and Downloads folders thoroughly 2018-03-22 15:12:20 +01:00
tibbi
be3c8a7b89 use incasesensitive checking at included/excluded paths 2018-03-22 15:11:22 +01:00
tibbi
2acc6d01b9 use incasesensitive comparison at Downloads folder obtaining 2018-03-22 15:05:28 +01:00
tibbi
3b14330b5d temporarily comment out deleting of newly created folders 2018-03-22 14:10:38 +01:00
tibbi
91819ba354 update commons to 3.16.12 2018-03-21 23:26:12 +01:00
tibbi
ca97779f5d try not scanning files from explicitly included folders 2018-03-17 18:19:33 +01:00
tibbi
aea0329867 reenable the new files search 2018-03-17 17:04:17 +01:00
tibbi
039d73dde8 fixing a crash at checking image load fail reason 2018-03-16 15:08:08 +01:00
tibbi
199a0a2407 add image cropping in FAQ 2018-03-16 11:40:13 +01:00
tibbi
aaec6926fd comment out the Simple Contacts announcement 2018-03-15 23:43:41 +01:00
tibbi
a8c4b93fb5 update stored directories if a file is deleted from the thumbnails view 2018-03-15 23:36:34 +01:00
tibbi
fa201e6524 avoid 2 checkLastMediaChanged reseting each other 2018-03-15 23:16:12 +01:00
tibbi
e68392b1e4 recheck folder content if we notice that it changed 2018-03-15 22:57:28 +01:00
tibbi
5c0f33f38f trim folder slashes before updating their items 2018-03-15 22:03:12 +01:00
tibbi
0552c12d17 update stored folder items after deleting 2018-03-15 21:59:35 +01:00
tibbi
7ebc110ac8 rescan and cache destination path after copy 2018-03-15 21:49:58 +01:00
tibbi
42bd31f38b limit the cached folders size to 60 just to be sure 2018-03-15 21:28:30 +01:00