From cebc9cdfda75cdb6bc0697e7bcd17a0bead31f47 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Sun, 10 Apr 2022 10:55:49 +0100 Subject: [PATCH] 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 --- .../gallery/pro/activities/ViewPagerActivity.kt | 2 +- .../com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt index 8b5562a8a..c58a5c480 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt @@ -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 } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt index 1a9f6fcbf..e9c7193ac 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt @@ -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 }