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
This commit is contained in:
darthpaul 2022-04-10 10:55:49 +01:00
parent e1d8f601d7
commit cebc9cdfda
2 changed files with 2 additions and 2 deletions

View file

@ -1169,7 +1169,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
val isSDOrOtgRootFolder = isAStorageRootFolder(oldPath.getParentPath()) && !oldPath.startsWith(internalStoragePath)
if (isRPlus() && isSDOrOtgRootFolder) {
toast(R.string.rename_in_sd_card_system_restriction)
toast(R.string.rename_in_sd_card_system_restriction, Toast.LENGTH_LONG)
return
}

View file

@ -238,7 +238,7 @@ class MediaAdapter(
val isSDOrOtgRootFolder = activity.isAStorageRootFolder(firstPath.getParentPath()) && !firstPath.startsWith(activity.internalStoragePath)
if (isRPlus() && isSDOrOtgRootFolder) {
activity.toast(R.string.rename_in_sd_card_system_restriction)
activity.toast(R.string.rename_in_sd_card_system_restriction, Toast.LENGTH_LONG)
finishActMode()
return
}