Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a0c5156 authored by tibbi's avatar tibbi
Browse files

do not trim slashes from otg://

parent d2d906dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.11.44'
        propVersionName = '3.11.45'
        kotlin_version = '1.2.21'
        support_libs = '27.0.2'
    }
+6 −1
Original line number Diff line number Diff line
@@ -164,7 +164,12 @@ class FilePickerDialog(val activity: BaseSimpleActivity,
    }

    private fun sendSuccess() {
        callback(if (currPath.length == 1) currPath else currPath.trimEnd('/'))
        currPath = if (currPath == OTG_PATH || currPath.length == 1) {
            currPath
        } else {
            currPath.trimEnd('/')
        }
        callback(currPath)
        mDialog.dismiss()
    }