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 {
|
CoroutineScope(Dispatchers.IO).launch {
|
||||||
addToCache(context.resources, icon)
|
addToCache(context.resources, icon)
|
||||||
withContext(Dispatchers.Main) {
|
withContext(Dispatchers.Main) {
|
||||||
IconPackChooser.getSelectedIconPack(context)?.let { selectedIconPack ->
|
|
||||||
val superDrawable = getIconSuperDrawable(context,
|
val superDrawable = getIconSuperDrawable(context,
|
||||||
icon,
|
icon,
|
||||||
imageView.width,
|
imageView.width,
|
||||||
tintColor)
|
tintColor)
|
||||||
imageView.setImageDrawable(superDrawable.drawable)
|
imageView.setImageDrawable(superDrawable.drawable)
|
||||||
if (superDrawable.tintable && selectedIconPack.tintable()) {
|
if (superDrawable.tintable) {
|
||||||
ImageViewCompat.setImageTintList(imageView, ColorStateList.valueOf(tintColor))
|
ImageViewCompat.setImageTintList(imageView, ColorStateList.valueOf(tintColor))
|
||||||
} else {
|
} else {
|
||||||
ImageViewCompat.setImageTintList(imageView, null)
|
ImageViewCompat.setImageTintList(imageView, null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(ImageView::class.java.name, "Unable to assign icon in image view", e)
|
Log.e(ImageView::class.java.name, "Unable to assign icon in image view", e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user