Merge pull request #1930 from justmara/fix/historybrowser-menu
#1929: fix menu in historybrowser
This commit is contained in:
commit
80427d4ddb
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ class OverviewMenus @Inject constructor(
|
||||||
val item = popup.menu.add(Menu.NONE, m.ordinal + 100 * (g + 1), Menu.NONE, rh.gs(m.nameId))
|
val item = popup.menu.add(Menu.NONE, m.ordinal + 100 * (g + 1), Menu.NONE, rh.gs(m.nameId))
|
||||||
val title = item.title
|
val title = item.title
|
||||||
val s = SpannableString(" $title ")
|
val s = SpannableString(" $title ")
|
||||||
s.setSpan(ForegroundColorSpan(rh.gac(context, m.attrTextId)), 0, s.length, 0)
|
s.setSpan(ForegroundColorSpan(rh.gac(m.attrTextId)), 0, s.length, 0)
|
||||||
s.setSpan(BackgroundColorSpan(rh.gac(context, m.attrId)), 0, s.length, 0)
|
s.setSpan(BackgroundColorSpan(rh.gac(m.attrId)), 0, s.length, 0)
|
||||||
item.title = s
|
item.title = s
|
||||||
item.isCheckable = true
|
item.isCheckable = true
|
||||||
item.isChecked = settingsCopy[g][m.ordinal]
|
item.isChecked = settingsCopy[g][m.ordinal]
|
||||||
|
|
Loading…
Reference in a new issue