allow renaming some extra files with access to All files

This commit is contained in:
tibbi 2022-10-16 10:32:45 +02:00
parent b9dea17ea2
commit e25e4ba880

View file

@ -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