From f48f6ed788cdc6cea9d37aacb9f7fd137f5fca54 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Fri, 17 May 2019 19:05:11 +0200 Subject: [PATCH] Trying to fix crashes. --- app/build.gradle | 4 ++-- .../java/apps/amine/bou/readerforselfoss/HomeActivity.kt | 6 +++++- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 86990b5..51c58fc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt index 3fc09e2..3e5ab7b 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -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) diff --git a/build.gradle b/build.gradle index 0ce1753..e53bfa5 100644 --- a/build.gradle +++ b/build.gradle @@ -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" } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 2d88e3e..7eb8bea 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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