Commit graph

2954 commits

Author SHA1 Message Date
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