From 9fa228d9892de956c8f6e5fcf3274c17b1e1ad6b Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 1 Sep 2017 23:20:40 +0200 Subject: [PATCH] remove a duplicate part from zipping --- .../filemanager/adapters/ItemsAdapter.kt | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt index 8ba980e3..adfa6ea5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt @@ -232,7 +232,6 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList, targetPath: String): Boolean { var out: ZipOutputStream? = null try { - var origin: BufferedInputStream? val fos = FileOutputStream(targetPath) out = ZipOutputStream(BufferedOutputStream(fos)) @@ -243,57 +242,59 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList