Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb26565a authored by Matthew DeVore's avatar Matthew DeVore
Browse files

ScrollableToolbarItemLayout: increase MAX_ITEMS

It should be safe to increase this, as scrolling horizontally when the
toolbar is too narrow for all items also works.

Flag: EXEMPT bug fix
Bug: b/409354332
Test: Create toolbar with 5 items and scroll in it, select each item
Change-Id: Ie9965ee92cb9281736ce809749b53961da12617c
parent 2169c0c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ class ScrollableToolbarItemLayout(context: Context, attrs: AttributeSet?) :
    }

    companion object {
        private const val MAX_ITEMS = 2
        private const val MAX_ITEMS = 5
        private val SELECTED_TEXT_APPEARANCE =
            com.android.settingslib.widget.theme.R.style.TextAppearance_SettingsLib_TitleSmall_Emphasized
        private val UNSELECTED_TEXT_APPEARANCE =