mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
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:
parent
e1d8f601d7
commit
cebc9cdfda
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue