mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
only show selected navbar item by default
This commit is contained in:
parent
377aa06b2f
commit
d1351e0f67
@ -58,7 +58,7 @@ object NavBarHelper {
|
||||
*/
|
||||
fun applyNavBarStyle(bottomNav: BottomNavigationView): Int {
|
||||
val labelVisibilityMode = when (
|
||||
PreferenceHelper.getString(PreferenceKeys.LABEL_VISIBILITY, "always")
|
||||
PreferenceHelper.getString(PreferenceKeys.LABEL_VISIBILITY, "selected")
|
||||
) {
|
||||
"always" -> NavigationBarView.LABEL_VISIBILITY_LABELED
|
||||
"selected" -> NavigationBarView.LABEL_VISIBILITY_SELECTED
|
||||
|
@ -681,14 +681,14 @@
|
||||
</string-array>
|
||||
|
||||
<string-array name="labelVisibility">
|
||||
<item>@string/always</item>
|
||||
<item>@string/selected</item>
|
||||
<item>@string/always</item>
|
||||
<item>@string/never</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="labelVisibilityValues">
|
||||
<item>always</item>
|
||||
<item>selected</item>
|
||||
<item>always</item>
|
||||
<item>never</item>
|
||||
</string-array>
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
<ListPreference
|
||||
android:icon="@drawable/ic_label"
|
||||
app:defaultValue="always"
|
||||
app:defaultValue="selected"
|
||||
app:entries="@array/labelVisibility"
|
||||
app:entryValues="@array/labelVisibilityValues"
|
||||
app:key="label_visibility"
|
||||
|
Loading…
x
Reference in New Issue
Block a user