From 4593fb5ea1bf71326c3bd1cbd84d82cf22c4c9c8 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Tue, 25 Aug 2020 16:36:48 +0200 Subject: [PATCH] Crash fixes --- app/build.gradle | 4 +--- .../sushi/hardcore/droidfs/explorers/BaseExplorerActivity.kt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ac63f59..dcadaac 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,8 +24,6 @@ android { buildTypes { release { - minifyEnabled true - shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } @@ -42,7 +40,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "androidx.core:core-ktx:1.3.1" implementation "androidx.appcompat:appcompat:1.2.0" - implementation "androidx.constraintlayout:constraintlayout:1.1.3" + implementation "androidx.constraintlayout:constraintlayout:2.0.0" implementation "androidx.sqlite:sqlite:2.1.0" implementation "androidx.preference:preference:1.1.1" diff --git a/app/src/main/java/sushi/hardcore/droidfs/explorers/BaseExplorerActivity.kt b/app/src/main/java/sushi/hardcore/droidfs/explorers/BaseExplorerActivity.kt index c9e90f2..9ad1aff 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/explorers/BaseExplorerActivity.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/explorers/BaseExplorerActivity.kt @@ -193,8 +193,8 @@ open class BaseExplorerActivity : BaseActivity() { totalSize += element.size } } - total_size_text.text = getString(R.string.total_size, PathUtils.formatSize(totalSize)) runOnUiThread { + total_size_text.text = getString(R.string.total_size, PathUtils.formatSize(totalSize)) explorerAdapter.notifyDataSetChanged() } }.start()