Compare commits

..

2 Commits

Author SHA1 Message Date
84f1ab12cf Finally fixed issue with crash on launch. 2019-05-17 20:28:21 +02:00
f48f6ed788 Trying to fix crashes. 2019-05-17 19:05:11 +02:00
3 changed files with 9 additions and 5 deletions

View File

@ -622,10 +622,14 @@ 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)
item.withIcon(R.mipmap.ic_launcher)
}
drawer.addItem(item)

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