mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01: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,8 +28,13 @@ abstract class SettingViewHolder(itemView: View, protected val adapter: Settings
|
|||||||
val overridden = settingsItem.isOverridden
|
val overridden = settingsItem.isOverridden
|
||||||
textView.setTypeface(null, if (overridden) Typeface.BOLD else Typeface.NORMAL)
|
textView.setTypeface(null, if (overridden) Typeface.BOLD else Typeface.NORMAL)
|
||||||
|
|
||||||
if (!settingsItem.isEditable) textView.paintFlags =
|
if (settingsItem.isEditable) {
|
||||||
textView.paintFlags or Paint.STRIKE_THRU_TEXT_FLAG
|
textView.paintFlags =
|
||||||
|
textView.paintFlags and Paint.STRIKE_THRU_TEXT_FLAG.inv()
|
||||||
|
} else {
|
||||||
|
textView.paintFlags =
|
||||||
|
textView.paintFlags or Paint.STRIKE_THRU_TEXT_FLAG
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user