Crash fixes

This commit is contained in:
Hardcore Sushi 2020-08-25 16:36:48 +02:00
parent defdd4d36f
commit 4593fb5ea1
2 changed files with 2 additions and 4 deletions

View File

@ -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"

View File

@ -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()