mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Remove unused code
This commit is contained in:
@@ -159,20 +159,18 @@ class IconDrawableFactory(private val retrieveCipherKey : () -> Database.LoadedK
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
addToCache(context.resources, icon)
|
||||
withContext(Dispatchers.Main) {
|
||||
IconPackChooser.getSelectedIconPack(context)?.let { selectedIconPack ->
|
||||
val superDrawable = getIconSuperDrawable(context,
|
||||
icon,
|
||||
imageView.width,
|
||||
tintColor)
|
||||
imageView.setImageDrawable(superDrawable.drawable)
|
||||
if (superDrawable.tintable && selectedIconPack.tintable()) {
|
||||
if (superDrawable.tintable) {
|
||||
ImageViewCompat.setImageTintList(imageView, ColorStateList.valueOf(tintColor))
|
||||
} else {
|
||||
ImageViewCompat.setImageTintList(imageView, null)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e(ImageView::class.java.name, "Unable to assign icon in image view", e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user