Skip to content

Commit 92168ab

Browse files
committed
adding some crashfixes
1 parent 7b564f9 commit 92168ab

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ android {
5858
}
5959

6060
dependencies {
61-
implementation 'com.simplemobiletools:commons:5.32.1'
61+
implementation 'com.simplemobiletools:commons:5.32.2'
6262
implementation 'com.github.Stericson:RootTools:df729dcb13'
6363
implementation 'com.github.Stericson:RootShell:1.6'
6464
implementation 'com.alexvasilkov:gesture-views:2.5.2'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/DecompressActivity.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ class DecompressActivity : SimpleActivity() {
148148

149149
@SuppressLint("NewApi")
150150
private fun fillAllListItems(uri: Uri) {
151-
val inputStream = contentResolver.openInputStream(uri)
151+
val inputStream = try {
152+
contentResolver.openInputStream(uri)
153+
} catch (e: Exception) {
154+
showErrorToast(e)
155+
return
156+
}
157+
152158
val zipInputStream = ZipInputStream(BufferedInputStream(inputStream))
153159
var zipEntry: ZipEntry?
154160
while (true) {

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
156156
activity?.runOnUiThread {
157157
activity?.invalidateOptionsMenu()
158158
addItems(listItems, forceRefresh)
159-
if (currentViewType != context?.config?.getFolderViewType(currentPath)) {
159+
if (context != null && currentViewType != context!!.config.getFolderViewType(currentPath)) {
160160
setupLayoutManager()
161161
}
162162
}

0 commit comments

Comments
 (0)