mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +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)
|
val isSDOrOtgRootFolder = isAStorageRootFolder(oldPath.getParentPath()) && !oldPath.startsWith(internalStoragePath)
|
||||||
if (isRPlus() && isSDOrOtgRootFolder) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -238,7 +238,7 @@ class MediaAdapter(
|
||||||
|
|
||||||
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) {
|
||||||
activity.toast(R.string.rename_in_sd_card_system_restriction)
|
activity.toast(R.string.rename_in_sd_card_system_restriction, Toast.LENGTH_LONG)
|
||||||
finishActMode()
|
finishActMode()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue