Commit a31befef authored by Mygod's avatar Mygod

Remove duplicated entryValues from BottomSheetPreferenceDialogFragment

parent 4d4d6ed1
...@@ -58,7 +58,7 @@ final class BottomSheetPreferenceDialogFragment extends PreferenceDialogFragment ...@@ -58,7 +58,7 @@ final class BottomSheetPreferenceDialogFragment extends PreferenceDialogFragment
val typeface = if (selected) Typeface.BOLD else Typeface.NORMAL val typeface = if (selected) Typeface.BOLD else Typeface.NORMAL
text1.setTypeface(null, typeface) text1.setTypeface(null, typeface)
text2.setTypeface(null, typeface) text2.setTypeface(null, typeface)
text2.setVisibility(if (entryValues(i).length > 0) View.VISIBLE else View.GONE) text2.setVisibility(if (entryValues(i).length > 0 && entries(i) != entryValues(i)) View.VISIBLE else View.GONE)
icon.setImageDrawable(entryIcons(i)) icon.setImageDrawable(entryIcons(i))
index = i index = i
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment