File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/src/main/kotlin/org/fossify/filemanager/activities Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class DecompressActivity : SimpleActivity() {
4141 private var uri: Uri ? = null
4242 private var password: String? = null
4343 private var passwordDialog: EnterPasswordDialog ? = null
44+ private var filename = " "
4445
4546 override fun onCreate (savedInstanceState : Bundle ? ) {
4647 isMaterialActivity = true
@@ -61,7 +62,8 @@ class DecompressActivity : SimpleActivity() {
6162 password = savedInstanceState?.getString(PASSWORD , null )
6263
6364 val realPath = getRealPathFromURI(uri!! )
64- binding.decompressToolbar.title = realPath?.getFilenameFromPath() ? : Uri .decode(uri.toString().getFilenameFromPath())
65+ filename = realPath?.getFilenameFromPath() ? : Uri .decode(uri.toString().getFilenameFromPath())
66+ binding.decompressToolbar.title = filename
6567 setupFilesList()
6668 }
6769
@@ -155,7 +157,7 @@ class DecompressActivity : SimpleActivity() {
155157 zipInputStream.use {
156158 while (true ) {
157159 val entry = zipInputStream.nextEntry ? : break
158- val filename = title.toString() .substringBeforeLast(" ." )
160+ val filename = filename .substringBeforeLast(" ." )
159161 val parent = " $destination /$filename "
160162 val newPath = " $parent /${entry.fileName.trimEnd(' /' )} "
161163
You can’t perform that action at this time.
0 commit comments