diff --git a/app/build.gradle b/app/build.gradle index 3683f402..82ee4248 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,7 +58,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.32.1' + implementation 'com.simplemobiletools:commons:5.32.2' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' implementation 'com.alexvasilkov:gesture-views:2.5.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt index adf0a817..3a62d782 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt @@ -148,7 +148,13 @@ class DecompressActivity : SimpleActivity() { @SuppressLint("NewApi") private fun fillAllListItems(uri: Uri) { - val inputStream = contentResolver.openInputStream(uri) + val inputStream = try { + contentResolver.openInputStream(uri) + } catch (e: Exception) { + showErrorToast(e) + return + } + val zipInputStream = ZipInputStream(BufferedInputStream(inputStream)) var zipEntry: ZipEntry? while (true) { diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt index 63af1dcd..4808db5e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt @@ -156,7 +156,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb activity?.runOnUiThread { activity?.invalidateOptionsMenu() addItems(listItems, forceRefresh) - if (currentViewType != context?.config?.getFolderViewType(currentPath)) { + if (context != null && currentViewType != context!!.config.getFolderViewType(currentPath)) { setupLayoutManager() } }