mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-19 21:40:37 +01:00
allow renaming some extra files with access to All files
This commit is contained in:
parent
b9dea17ea2
commit
e25e4ba880
@ -244,7 +244,7 @@ class MediaAdapter(
|
|||||||
val firstPath = getFirstSelectedItemPath() ?: return
|
val firstPath = getFirstSelectedItemPath() ?: return
|
||||||
|
|
||||||
val isSDOrOtgRootFolder = activity.isAStorageRootFolder(firstPath.getParentPath()) && !firstPath.startsWith(activity.internalStoragePath)
|
val isSDOrOtgRootFolder = activity.isAStorageRootFolder(firstPath.getParentPath()) && !firstPath.startsWith(activity.internalStoragePath)
|
||||||
if (isRPlus() && isSDOrOtgRootFolder) {
|
if (isRPlus() && isSDOrOtgRootFolder && !isExternalStorageManager()) {
|
||||||
activity.toast(R.string.rename_in_sd_card_system_restriction, Toast.LENGTH_LONG)
|
activity.toast(R.string.rename_in_sd_card_system_restriction, Toast.LENGTH_LONG)
|
||||||
finishActMode()
|
finishActMode()
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user