Commit graph

3079 commits

Author SHA1 Message Date
tibbi
50f6bb5871 add floating contextual menu at some setting screens 2022-05-09 22:18:21 +02:00
tibbi
7fc6767e4c adding some widget config related improvements 2022-05-09 11:20:12 +02:00
tibbi
45a8ee0ec0 do not show the Media Management prompt with All files permission 2022-05-09 10:46:43 +02:00
tibbi
c5d9ac6fcc prepare the app for having All files permission 2022-05-09 10:44:50 +02:00
tibbi
969f0334f3 check noMedia file existence only below Android 11 in some cases 2022-05-08 09:33:56 +02:00
tibbi
0b2f0da4be fix third party intent handling when folder is hidden with a dot 2022-05-07 22:16:27 +02:00
tibbi
048b109f8a adding a crashfix and updating commons 2022-05-04 12:30:15 +02:00
tibbi
146a1b1d69 adding a Prepaid product flavor 2022-05-03 10:56:16 +02:00
tibbi
45cf8da60f catch exceptions thrown at getDeletedMediaCount() 2022-05-03 10:44:40 +02:00
tibbi
f3eb312e57 fix #1113, #2309, fixing some wallpaper setting related glitches 2022-05-03 10:38:36 +02:00
tibbi
b2130669ab use "Fix Date Taken values" on Android 11+ file fetching 2022-05-03 10:14:18 +02:00
darthpaul
b4262111d7 use MediaStore request way of deleting files on SDK 31
- on SDK 31+, if the app can manange media, we want to use the MediaStore request way of deleting files
- we use the new method added BaseSimpleActivity.checkManageMediaOrHandleSAFDialogSdk30 that performs the check and determines if we should show the SAF dialog or not
2022-04-30 23:58:21 +01:00
darthpaul
aca71be5d8 handle mange media for renaming
- move the launchMediaManagementIntent method to commons module
2022-04-28 01:09:11 +01:00
tibbi
1d25512053 adding some widget config related improvements 2022-04-25 22:44:58 +02:00
tibbi
0679b22887 show the Media Management prompt on Android 12+ from time to time 2022-04-24 16:55:40 +02:00
tibbi
91a71685bd show the media management prompt at copy/move/delete too 2022-04-24 16:21:00 +02:00
tibbi
6428836c73 add a prompt for making the app the default media management app 2022-04-24 16:11:51 +02:00
tibbi
893690d569 show a nicer error message at copying to an invalid folder 2022-04-20 11:42:43 +02:00
tibbi
09bea7d508 fix #2309, allow setting both portrait and landscape wallpapers 2022-04-20 10:42:12 +02:00
tibbi
a9d5604843 fix third party intent handling if selected folder contains .nomedia 2022-04-19 19:35:59 +02:00
tibbi
a73bf966b4 adding a crashfix 2022-04-16 15:07:23 +02:00
darthpaul
5e4550d52b fix: restore to android folder on SDK30 2022-04-16 11:44:22 +01:00
tibbi
c82a683302 do not always check write permissions at FilePickerDialog 2022-04-16 12:15:44 +02:00
darthpaul
bc5f0ce175 handle picking restricted folders in PickDirectoryDialog
- users should not be able to pick restricted folders in PickDirectoryDialog when copying/moving files on SDK 30+
- show nice error message R.string.system_folder_restriction when user picks a restricted folder on SDK 30+
- restricted folders on SDK 30+ are: Android, Root of Internal and SDCard. The Download directory is writable
2022-04-16 10:12:34 +01:00
tibbi
7a24f6f05b lets show the disabled hidden item displaying in Whats New 2022-04-15 21:30:33 +02:00
tibbi
5d5c9e1920 request MEDIA_LOCATION on SDK 30 already 2022-04-15 09:03:32 +02:00
darthpaul
86dce4e48d request ACCESS_MEDIA_LOCATION permission
- the app has declared the MANAGE_MEDIA permission in the AndroidManifest
- also requesting the ACCESS_MEDIA_LOCATION permission will make the system not to show the user the prompts from MediaStore.createWriteRequest and MediaStore.createDeleteRequest
2022-04-14 22:59:57 +01:00
darthpaul
b2d08c401e restore from recycle bin SDK 30+
- when file is on the root of Internal Storage or SD Card, change the destination to the /Pictures folder, we cannot write to the root of any volume on SDK 30+
- call handleSAFDialogSdk30, so users are prompted to allow SAF when restoring, if not previously allowed
- if there are conflicts, handle it as though it's a CONFLICT_KEEP_BOTH by appending some characters to the destination name
- add new string restore_to_path shown when restoring to /Pictures folder on SDK 30+ instead of the root folder
2022-04-11 16:23:14 +01:00
tibbi
f69ba7fb32 avoid showing a progress toast twice at fixing date taken value 2022-04-10 20:23:27 +02:00
tibbi
3e426148dd show edit and set_as menu buttons only if 1 item is selected 2022-04-10 20:14:42 +02:00
tibbi
36beff5214 updating commons 2022-04-10 20:10:19 +02:00
tibbi
96fb6a0e35 updating the photo editor, use light theme when appropriate 2022-04-10 17:52:37 +02:00
tibbi
83881bfc06 make sure we use proper colors at PhotoVideoActivity too 2022-04-10 16:47:30 +02:00
tibbi
417a84f21a use proper menu colors at fullscreen view 2022-04-10 16:28:27 +02:00
tibbi
17610252c0 make sure we always use white system icons at fullscreen view 2022-04-10 16:21:32 +02:00
tibbi
39c568777b updating a string 2022-04-10 12:15:17 +02:00
darthpaul
519353cb04 change toast duration
- change the toast duration for when a user picks a folder restricted on SDK 30+ to Toast.LENGTH_LONG
2022-04-10 10:57:35 +01:00
darthpaul
fe49035966 Merge remote-tracking branch 'origin/fix/rename_by_changing_case' into fix/rename_by_changing_case 2022-04-10 10:56:11 +01:00
darthpaul
cebc9cdfda change toast duration
- change the toast duration for when a user cannot renamed files in the root of the SD Card to Toast.LENGTH_LONG
2022-04-10 10:55:49 +01:00
Paul
bfd4b930ec
Merge branch 'master' into fix/rename_by_changing_case 2022-04-10 10:49:10 +01:00
darthpaul
e1d8f601d7 fix renaming
- show error message when a user tries to rename a file on the root of the SD Card in ViewPagerActivity and MediaAdapter
- in PickDirectoryDialog, use the Activity.isAStorageRootFolder method instead of String.isBasePath
2022-04-10 09:56:21 +01:00
Paul
0e6b935fc5
Merge branch 'master' into fix/editor-sdk30+ 2022-04-09 23:42:17 +01:00
darthpaul
8da45dcfbb sdk 30+ changes
- handle WRITE_STORAGE permission in EditActivity
- in PickDirectoryDialog replace error message when users select a restricted system directory to R.string.system_folder_restriction
- in SaveDialog
    - if path is a restricted path, automatically change it to {CURRENT_VOLUME}/Pictures directory.
    - if there is conflict and the file is direct child of the Download folder, show the user a prompt to grant WRITE request permission
- remove unused string R.string.copy_to_restricted_folder_message
- in NewPhotoEditActivity and NewVideoEditActivity, only delete SD Card file on conflict for devices running lower than SDK 30
- update commons module
2022-04-09 23:34:52 +01:00
tibbi
2ea542b461 force white menu items at viewpager activity 2022-04-04 23:20:29 +02:00
tibbi
7eac78411e adding some preparation for Material You theme 2022-04-04 15:58:05 +02:00
tibbi
75f8592940 adding a couple more Android 12 related fixes 2022-04-04 15:32:08 +02:00
darthpaul
52693adbe6 Update gallery with recent commons module 2022-03-31 04:46:09 +01:00
tibbi
0a03658978 do not show root folder at storage picker dialog 2022-03-23 22:15:09 +01:00
tibbi
7feffc9f61 updating the placeholder text for Android R+ 2022-03-20 20:41:45 +01:00
Tibor Kaputa
0d43373cb4
Merge pull request #2383 from KryptKode/fix/sdk30-saf-source-folder
sdk 30 changes
2022-03-19 22:19:05 +01:00
darthpaul
399c8e241d SDK 30 changes
- handle SAF dialog on ViewPagerActivity before refreshing screen
2022-03-19 20:30:59 +00:00
darthpaul
fa991847fb sdk 30 changes
- remove handleSAFDialogSdk30 for source paths since we have READ permission
2022-03-19 19:49:16 +00:00
tibbi
4a3e502484 moving MySquareImageView into commons 2022-03-18 17:33:44 +01:00
darthpaul
9a3d16354c update commons 2022-03-13 03:37:40 +00:00
darthpaul
fedc56846a SDK 30 changes
- show error when user tries to pick the root directory of any volume
- handle SAF for SDK 30 before copying/moving files
2022-03-13 03:17:42 +00:00
tibbi
360c3529ea refetch viewpager item position if it is -1 too 2022-03-01 12:08:15 +01:00
tibbi
61440e2f22 avoid refetching viewpager position after file deleting 2022-02-28 17:29:17 +01:00
tibbi
16e522cc03 adding a new string related to seeing ads during videos 2022-02-28 17:05:05 +01:00
tibbi
8cb4b9bc3b Merge branch 'ref/delete-animation' of https://github.com/KryptKode/Simple-Gallery 2022-02-25 23:04:24 +01:00
darthpaul
8af61d89bb Revert changes and handle recycler view animation with SDK-30 delete 2022-02-24 16:27:33 +00:00
darthpaul
bbcb41cf1f fix: show delete animation after file delete 2022-02-15 00:21:53 +00:00
tibbi
9529173e0a rescan path from third party intent if not in mediastore 2022-02-14 22:57:19 +01:00
tibbi
318664fca1 fix #2332, try showing an image asap at third party intents 2022-02-14 11:08:49 +01:00
tibbi
080e7e983d clear cached media at launching viewpager at third party intent 2022-02-14 10:48:19 +01:00
tibbi
4e1136df80 updating commons 2022-02-13 20:55:03 +01:00
tibbi
581dd43bd6 fix #1427, properly handle diacritics at sorting 2022-02-13 17:57:30 +01:00
tibbi
f3e76cfb50 fix sorting of folders with Group direct subfolders enabled 2022-02-13 17:02:28 +01:00
tibbi
80390c67f2 refresh items after sorting/filtering/grouping only if something changed 2022-02-13 16:42:21 +01:00
tibbi
5e548e0460 fix #2336, really delete files from the device after 30 days in the bin 2022-02-13 12:08:34 +01:00
tibbi
a1589b60f1 fix opening videos in the recycle bin directly 2022-02-13 11:59:54 +01:00
tibbi
3e3fb0c580 fix a glitch with the inability to display hidden files anymore 2022-02-13 11:02:51 +01:00
tibbi
9577a5e8e2 do not show the Temporarily show/hide hidden at the media screen either 2022-02-12 18:52:24 +01:00
tibbi
144409b7a9 adding more menu visibility changes 2022-02-12 18:12:16 +01:00
tibbi
cfbeb85b0d removing some settings and filepickers on Android 11+ 2022-02-12 18:02:29 +01:00
tibbi
032ca877ed merging General and Visibility setting sections 2022-02-12 17:54:44 +01:00
tibbi
ad9f39cea4 removing the FAQ item about showing specific folders only too 2022-02-12 17:51:36 +01:00
tibbi
fc365c3d36 so ye, lets remove some un/hide related menu items on Android 11+ 2022-02-12 17:48:36 +01:00
tibbi
de1a58e1b9 adding another string related to removing Manage Included Folders 2022-02-12 17:41:37 +01:00
tibbi
c08aa99a2a add some explanation about un/hiding no longer being available anywhere 2022-02-12 16:19:58 +01:00
tibbi
45c5ac9fe8 adding some keyboard hiding 2022-02-12 12:06:29 +01:00
tibbi
f6c6b402c6 properly fetch Favorite file sizes to avoid caching glitches 2021-12-25 21:02:45 +01:00
tibbi
51c15be895 updating commons 2021-12-19 21:25:57 +01:00
tibbi
f6178854ed Merge branch 'master' of github.com:SimpleMobileTools/Simple-Gallery 2021-12-17 15:30:56 +01:00
Tibor Kaputa
040599dd12
Merge pull request #2292 from Aga-C/add-group-count
Added option to show file count in groups (#2281)
2021-12-17 15:30:51 +01:00
tibbi
edb25a6053 Merge branch 'master' of github.com:SimpleMobileTools/Simple-Gallery 2021-12-17 15:26:46 +01:00
tibbi
455fa7eb77 do not clear media on destroy 2021-12-17 12:27:37 +01:00
tibbi
d51fa1385a avoid refreshing favorite items unnecessarily 2021-12-17 12:25:32 +01:00
Agnieszka C
adf2fc26da Fixed unknown date taken (#2295) 2021-12-08 15:30:38 +01:00
Agnieszka C
dc3ed3aa2f Added option to show file count in groups (#2281) 2021-12-06 18:49:09 +01:00
Tibor Kaputa
05fa21a085
Update MediaAdapter.kt 2021-12-05 23:30:02 +01:00
Tibor Kaputa
8c0f047809
Update DirectoryAdapter.kt 2021-12-05 23:29:28 +01:00
Tibor Kaputa
a83765705d
adding an empty line 2021-12-05 23:28:01 +01:00
Ebrahim Byagowi
dd8cd61450 Apply project's code style to api version checks 2021-12-06 01:32:45 +03:30
Ebrahim Byagowi
0e1a1cfb90 Check for api version at the target instead marking with RequiresApi 2021-12-06 01:28:39 +03:30
Ebrahim Byagowi
55499815c3 Remove now obsolete suppress lint annotations
They are no longer needed as the update in Simple-Common project.
2021-12-06 01:15:34 +03:30
tibbi
d4bf065cb5 adding a new MediaStoreId field to Medium model 2021-12-05 21:18:57 +01:00
tibbi
39b8ce7a08 updating the bottom action Toggle visibility tooltip to show current state 2021-12-05 18:35:19 +01:00
tibbi
8ae32e5490 reverting the icon visibility change 2021-12-05 18:31:37 +01:00
Tibor Kaputa
1950f776a3
Merge pull request #2286 from sidhantailawadi/fix_toggle_hide_unhide_icon
Reverses the condition to show the toggle hide/unhide icon (#2280)
2021-12-05 18:29:39 +01:00
tibbi
2634e09f7f avoid fetching the files multiple times at first launch 2021-12-05 16:54:19 +01:00
tibbi
79f30475c6 avoid calling file.list() or listFiles() on Android 11+ 2021-12-05 16:34:39 +01:00
tibbi
24efdebb86 avoid refetching mediastore items unnecessarily 2021-12-05 16:24:35 +01:00
tibbi
dae13c0261 improve the performance of fetching Android 11+ files, use the MediaStore 2021-12-04 22:24:50 +01:00
sidhantailawadi
98ed5c1991 Reverses the condition to show the toggle hide/unhide icon (#2280) 2021-12-04 16:40:33 +05:30
Tibor Kaputa
510f48c413
Merge pull request #2258 from Aga-C/mark-favorite-items
Added stars to mark favorite items (#2102)
2021-12-02 23:17:49 +01:00
tibbi
ea620a06c1 minor code formatting 2021-12-01 10:30:23 +01:00
Tibor Kaputa
aea7252b16
Merge pull request #2257 from Aga-C/add-rotate-permission
Fixed missing permission for rotate on external memory (#2236)
2021-12-01 10:29:31 +01:00
tibbi
05a81e53c5 simplifying a path check at deleting folders 2021-11-30 16:05:16 +01:00
Agnieszka C
1f47af7826 Moved handleRotate to the separate method 2021-11-30 15:55:10 +01:00
Agnieszka C
cbb9bcc4e5 Hiding mark as favorite, smaller star icon, moved items on thumbnail 2021-11-30 15:49:00 +01:00
Agnieszka C
2d06a8b4dc Merge branch 'master' into mark-favorite-items 2021-11-30 13:48:58 +01:00
tibbi
009360580c use proper file thumbnail style at the Medium picker dialog 2021-11-30 13:12:05 +01:00
tibbi
904c2f57ab couple more dialog style updates 2021-11-30 12:22:22 +01:00
tibbi
006e367a1e redesigning the app settings 2021-11-30 11:41:59 +01:00
tibbi
06cc30a723 updating some icons + replacing some with vectors 2021-11-29 23:54:04 +01:00
tibbi
06b6416926 animate the thumbnail appearance only if animations arent disabled in the system 2021-11-29 22:55:14 +01:00
tibbi
657021b67e fixing a glitch with folder thumbnails at using search 2021-11-29 22:53:11 +01:00
tibbi
243f0ae988 adding some SearchActivity related fixes 2021-11-29 22:48:40 +01:00
tibbi
8887a57a6e correcting some placeholder and list visibility 2021-11-29 22:46:28 +01:00
tibbi
fba4b6fc3e we finally dont have to calculate content height and width 2021-11-29 22:11:02 +01:00
tibbi
a67e5ff86f properly handle margins between thumbnails, if selected so 2021-11-29 21:51:17 +01:00
tibbi
c17e6833e2 setup listLayoutManager too 2021-11-29 21:15:58 +01:00
tibbi
559469e7b8 add toggling between horizontal and vertical scrolling 2021-11-29 21:10:29 +01:00
tibbi
daf9834d39 implementing the media bubble text fetcher 2021-11-29 20:10:13 +01:00
tibbi
45fe153d54 adding bubble at folders fastscroller 2021-11-29 19:59:38 +01:00
tibbi
53eafb30c6 updating commons, lets just make it compilable for now 2021-11-29 19:17:48 +01:00
Agnieszka C
af3b44d470 Added stars to mark favorite items (#2102) 2021-11-07 19:44:02 +01:00
Agnieszka C
57020626db Fixed missing permission for rotate on external memory (#2236) 2021-11-06 10:41:14 +01:00
tibbi
e849c6f7c0 use MediaStore for fetching files on Android 11 2021-11-02 23:30:43 +01:00
tibbi
e1c5631c58 fixed a glitch with files not being sorted properly in some cases 2021-10-24 19:19:38 +02:00
tibbi
352dbe40bf catch all exceptions at toggling favorites 2021-10-24 18:35:31 +02:00
tibbi
c6640eaa9a adding a comment related to removing irrelevant cached files 2021-10-23 22:04:54 +02:00
tibbi
a6057f7fe4 be more agressive at deleting corrupt cached files 2021-10-23 21:54:42 +02:00
tibbi
ff6de731c9 fix #2080, make sure Favorites and Recycle bin has priority at refreshing 2021-10-21 14:23:57 +02:00
tibbi
811d5e88c5 fixed some glitches with favorites un/marking 2021-10-21 13:59:54 +02:00
tibbi
50e6b98d09 adding some recycle bin refreshing related improvements 2021-10-21 13:32:41 +02:00
tibbi
3e729ba6fe rescan favorites and recycle bin with higher priority on main screen 2021-10-21 12:02:35 +02:00
tibbi
eb909442e8 avoid scanning the recycle bin folder twice 2021-10-21 11:16:03 +02:00
tibbi
e69fed1981 simplifying a check in the sorting dialog 2021-10-12 23:18:26 +02:00
tibbi
ff6726b476 lets rescan files after some file operations, reverting #4d00682ec6 2021-10-09 17:38:38 +02:00
tibbi
f6a1ba1c74 moving file deletion handling into Commons 2021-10-08 22:16:30 +02:00
tibbi
841d770167 formatting some code style and imports in activities, no real change 2021-10-08 21:51:12 +02:00
tibbi
3781ee1f04 adding a helper function for fetching media store IDs from file paths 2021-10-08 21:48:34 +02:00
tibbi
e268927756 rescan files after editing 2021-10-08 20:30:54 +02:00
tibbi
48bf301e55 do not close the Upgraded From Free dialog on clicking outside of it 2021-10-03 19:32:32 +02:00
tibbi
21305a6d6d catch exceptions thrown at fixing date taken values 2021-09-09 15:37:26 +02:00
tibbi
4d00682ec6 avoid rescanning paths in some cases
This can make files not be recognized as media files in some other apps,
but rescanning can also too easily delete files. Let's try playing it
safe.
2021-08-30 22:38:29 +02:00
tibbi
d9194176ee catch errors thrown at updating a files favorite state 2021-08-29 23:25:42 +02:00
tibbi
2f15893cda fix #1673, make sure the proper file opens at third party intents 2021-08-29 23:00:30 +02:00
tibbi
03a3f5d187 moving a function a bit up 2021-08-29 22:55:19 +02:00