mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 16:09:16 +01:00
Added Local Source icon (#2961)
This commit is contained in:
parent
9d22a9e664
commit
64ba127e7d
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.ui.source
|
|||||||
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
|
import eu.kanade.tachiyomi.source.LocalSource
|
||||||
import eu.kanade.tachiyomi.source.icon
|
import eu.kanade.tachiyomi.source.icon
|
||||||
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
||||||
import eu.kanade.tachiyomi.ui.base.holder.SlicedHolder
|
import eu.kanade.tachiyomi.ui.base.holder.SlicedHolder
|
||||||
@ -46,8 +47,11 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) :
|
|||||||
// Set circle letter image.
|
// Set circle letter image.
|
||||||
itemView.post {
|
itemView.post {
|
||||||
val icon = source.icon()
|
val icon = source.icon()
|
||||||
if (icon != null) image.setImageDrawable(icon)
|
when {
|
||||||
else image.roundTextIcon(source.name)
|
icon != null -> image.setImageDrawable(icon)
|
||||||
|
item.source.id == LocalSource.ID -> image.setImageResource(R.mipmap.ic_local_source)
|
||||||
|
else -> image.roundTextIcon(source.name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
source_browse.setText(R.string.browse)
|
source_browse.setText(R.string.browse)
|
||||||
|
BIN
app/src/main/res/mipmap-hdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-hdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 882 B |
BIN
app/src/main/res/mipmap-mdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-mdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 674 B |
BIN
app/src/main/res/mipmap-xhdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-xhdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_local_source.webp
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_local_source.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user