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

Unverified Commit 23107f7f authored by cynagenautes's avatar cynagenautes Committed by LuK1337
Browse files

DeskClock: Fix bottom navigation label clipping in landscape

The Material 3 Expressive migration in f4e0e040 updated the portrait
BottomNavigationView to wrap_content (letting the library size each item
via its M3 tokens, with an 80dp item minimum) but only refreshed the
background attribute in res/layout-land/desk_clock.xml, leaving the
M2-era android:layout_height="72dp" in place.

Since the M3 NavigationBarItemView's default minimum height (~80dp)
exceeds 72dp, each item's label TextView is clipped at the parent
boundary, cutting off the lower half of "Alarm/Clock/Timer/Stopwatch"
labels on the landscape layout.

Apply the same wrap_content fix that portrait already received, so both
layouts defer sizing to the Material library.

Change-Id: Ica7263bcaa95c32244e52d654d5e6196d24694e3
parent 59bbbdc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@
    <com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bottom_view"
        android:layout_width="match_parent"
        android:layout_height="72dp"
        android:layout_height="wrap_content"
        android:background="?attr/colorSurfaceVariant"
        app:menu="@menu/bottom_navigation_menu"
        app:itemIconTint="@color/tab_tint_color"