mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #12686 from JosJuice/android-remove-strikeout
Android: Unset STRIKE_THRU_TEXT_FLAG for editable settings
This commit is contained in:
commit
a46ffc5d08
@ -28,9 +28,14 @@ abstract class SettingViewHolder(itemView: View, protected val adapter: Settings
|
||||
val overridden = settingsItem.isOverridden
|
||||
textView.setTypeface(null, if (overridden) Typeface.BOLD else Typeface.NORMAL)
|
||||
|
||||
if (!settingsItem.isEditable) textView.paintFlags =
|
||||
if (settingsItem.isEditable) {
|
||||
textView.paintFlags =
|
||||
textView.paintFlags and Paint.STRIKE_THRU_TEXT_FLAG.inv()
|
||||
} else {
|
||||
textView.paintFlags =
|
||||
textView.paintFlags or Paint.STRIKE_THRU_TEXT_FLAG
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called by the adapter to set this ViewHolder's child views to display the list item
|
||||
|
Loading…
Reference in New Issue
Block a user