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

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