From 9daaa11480a3d6bba2d906f490eaf88e8e92fdde Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 17 Mar 2022 13:59:18 +0100 Subject: [PATCH] allow clicking the new permission dialog image too --- .../commons/dialogs/WritePermissionDialog.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/WritePermissionDialog.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/WritePermissionDialog.kt index 1405635da..3bc35640b 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/WritePermissionDialog.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/WritePermissionDialog.kt @@ -46,6 +46,10 @@ class WritePermissionDialog(activity: Activity, val mode: Mode, val callback: () Mode.CREATE_DOCUMENT_SDK_30 -> { view.write_permissions_dialog_otg_text.setText(R.string.confirm_create_doc_for_new_folder_text) glide.load(R.drawable.img_write_storage_create_doc_sdk_30).transition(crossFade).into(view.write_permissions_dialog_otg_image) + + view.write_permissions_dialog_otg_image.setOnClickListener { + dialogConfirmed() + } } }