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

Commit e64da9e6 authored by Nick Ning's avatar Nick Ning
Browse files

Fixed Dream complication display cut short.

The solution is to add padding left and right of a complication to provide space for the shadow drawing.

Bug: 223639624
Test: manual
Change-Id: I14b82cf2d8cd2e8f227a4fc90ece234856eca722
parent bc08ff04
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
    android:id="@+id/date_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingHorizontal="@dimen/dream_overlay_complication_shadow_padding"
    android:gravity="center_horizontal"
    android:textColor="@android:color/white"
    android:shadowColor="@color/keyguard_shadow_color"
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
    android:id="@+id/weather_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingHorizontal="@dimen/dream_overlay_complication_shadow_padding"
    android:textColor="@android:color/white"
    android:shadowColor="@color/keyguard_shadow_color"
    android:shadowRadius="?attr/shadowRadius"
+1 −0
Original line number Diff line number Diff line
@@ -1379,6 +1379,7 @@
    <dimen name="dream_overlay_complication_weather_text_size">18sp</dimen>
    <dimen name="dream_overlay_complication_preview_text_size">36sp</dimen>
    <dimen name="dream_overlay_complication_preview_icon_padding">28dp</dimen>
    <dimen name="dream_overlay_complication_shadow_padding">2dp</dimen>

    <!-- The position of the end guide, which dream overlay complications can align their start with
         if their end is aligned with the parent end. Represented as the percentage over from the