mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
commit
274c1a3891
@ -24,7 +24,8 @@ class IconsSheetAdapter : RecyclerView.Adapter<IconsSheetViewHolder>() {
|
|||||||
|
|
||||||
override fun onBindViewHolder(holder: IconsSheetViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: IconsSheetViewHolder, position: Int) {
|
||||||
val appIcon = availableIcons[position]
|
val appIcon = availableIcons[position]
|
||||||
holder.binding.apply { iconIV.setImageResource(appIcon.iconResource)
|
holder.binding.apply {
|
||||||
|
iconIV.setImageResource(appIcon.iconResource)
|
||||||
iconName.text = root.context.getString(appIcon.nameResource)
|
iconName.text = root.context.getString(appIcon.nameResource)
|
||||||
root.setOnClickListener {
|
root.setOnClickListener {
|
||||||
PreferenceHelper.putString(PreferenceKeys.APP_ICON, appIcon.activityAlias)
|
PreferenceHelper.putString(PreferenceKeys.APP_ICON, appIcon.activityAlias)
|
||||||
|
Loading…
Reference in New Issue
Block a user