From acdefe7b0ac0bb124fb1437990b9710c9041b153 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 8 Sep 2019 11:25:45 +0200 Subject: [PATCH] disabling some OTG related code as its handling changed once again --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index 3f6993df1..63f6c8922 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -409,14 +409,15 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { config.addIncludedFolder(otgPath) } - if (config.OTGPath.isEmpty()) { + // OTG handling has been changed again in SDK version 28, the old method no longer works + /*if (config.OTGPath.isEmpty()) { runOnUiThread { ConfirmationDialog(this, getString(R.string.usb_detected), positive = R.string.ok, negative = 0) { config.wasOTGHandled = true showOTGPermissionDialog() } } - } + }*/ } } }