Trying to fix crashes.

This commit is contained in:
aminecmi 2019-05-17 19:05:11 +02:00
parent e517803bd8
commit f48f6ed788
4 changed files with 10 additions and 6 deletions

View File

@ -107,7 +107,7 @@ dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
// About
implementation('com.mikepenz:aboutlibraries:6.2.0@aar') {
implementation('com.mikepenz:aboutlibraries:6.0.0@aar') {
transitive = true
}
@ -127,7 +127,7 @@ dependencies {
implementation 'com.github.bumptech.glide:okhttp3-integration:4.1.1'
// Drawer
implementation 'co.zsmb:materialdrawer-kt:2.0.2'
implementation 'co.zsmb:materialdrawer-kt:2.0.1'
// Themes
implementation 'com.52inc:scoops:1.0.0'

View File

@ -622,7 +622,11 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
}
if (tag.getIcon(this@HomeActivity).isNotBlank()) {
thread {
item.withIcon(BitmapDrawable(resources, Glide.with(this@HomeActivity).asBitmap().load(tag.getIcon(this@HomeActivity)).submit(100, 100).get()))
try {
item.withIcon(BitmapDrawable(resources, Glide.with(this@HomeActivity).asBitmap().load(tag.getIcon(this@HomeActivity)).submit(100, 100).get()))
} catch (e: Exception) {
ACRA.getErrorReporter().maybeHandleSilentException(e, this@HomeActivity)
}
}
} else {
item.withIcon(R.mipmap.ic_launcher_round)

View File

@ -17,7 +17,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

View File

@ -1,6 +1,6 @@
#Mon Jan 14 20:50:06 CET 2019
#Fri May 17 18:15:21 CEST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip