Commit graph

2983 commits

Author SHA1 Message Date
tibbi
290a84f699 accept Media access in foss variant too, do not require All files 2022-05-14 20:03:23 +02:00
tibbi
4936eecb17 require the All Files access in foss and prepaid app variants 2022-05-14 15:15:43 +02:00
Tibor Kaputa
2e4d605940
Merge pull request #2464 from KryptKode/fix/android_12_mediastore_crash
fix media store crash on deletion on android 12
2022-05-14 12:27:23 +02:00
darthpaul
3571fcd3ab fix media store crash on deletion on android 12
- MediaStore crashed on deletion because the ViewPagerActivity got finish before the MediaStore.createDeleteRequest executes
- To fix, we apply the same approach in the MediaActivity and finish explicitly after deletion completes, if the media list is empty
- also, only refresh the UI when the media list is not empty to avoid UI glitches
- fix slideshow bug by resetting mAreSlideShowMediaVisible back to false when the slideshow ends
2022-05-14 03:51:52 +01:00
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