From 519353cb047eccaf779caae1fb7c69be857f76c4 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Sun, 10 Apr 2022 10:57:35 +0100 Subject: [PATCH] change toast duration - change the toast duration for when a user picks a folder restricted on SDK 30+ to Toast.LENGTH_LONG --- .../gallery/pro/dialogs/PickDirectoryDialog.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt index b9d39ef40..69f22ff76 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt @@ -1,6 +1,7 @@ package com.simplemobiletools.gallery.pro.dialogs import android.view.KeyEvent +import android.widget.Toast import androidx.appcompat.app.AlertDialog import androidx.recyclerview.widget.RecyclerView import com.simplemobiletools.commons.activities.BaseSimpleActivity @@ -112,7 +113,7 @@ class PickDirectoryDialog( activity.toast(R.string.source_and_destination_same) return@DirectoryAdapter } else if (isRPlus() && activity.isAStorageRootFolder(path)) { - activity.toast(R.string.copy_to_restricted_folder_message) + activity.toast(R.string.copy_to_restricted_folder_message, Toast.LENGTH_LONG) return@DirectoryAdapter } else { activity.handleLockedFolderOpening(path) { success ->