From 63486f1e313f941dcb3ea317e86fa4022f5a828d Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Jun 2022 18:46:47 +0200 Subject: [PATCH] uri decode filenames at the text editor --- .../filemanager/pro/activities/ReadTextActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt index 089c5708..0063bddf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt @@ -17,10 +17,7 @@ import android.widget.ImageView import android.widget.TextView import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE -import com.simplemobiletools.commons.helpers.REAL_FILE_PATH -import com.simplemobiletools.commons.helpers.SAVE_DISCARD_PROMPT_INTERVAL -import com.simplemobiletools.commons.helpers.ensureBackgroundThread +import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.commons.views.MyEditText import com.simplemobiletools.filemanager.pro.R import com.simplemobiletools.filemanager.pro.dialogs.SaveAsDialog @@ -73,7 +70,7 @@ class ReadTextActivity : SimpleActivity() { val filename = getFilenameFromUri(uri) if (filename.isNotEmpty()) { - title = filename + title = Uri.decode(filename) } read_text_view.onGlobalLayout {