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

Commit eaa387ce authored by Yining Liu's avatar Yining Liu Committed by Automerger Merge Worker
Browse files

Merge "Fix text clipping of EmphasizedNotificationButton, when the system font...

Merge "Fix text clipping of EmphasizedNotificationButton, when the system font size is at maximum" into udc-dev am: 8f1476e7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22238862



Change-Id: I7db9fa2300ebb005e7c8eb91ad7b185fb3b18411
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 1c0cc597 8f1476e7
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -361,13 +361,15 @@ public class NotificationActionListLayout extends LinearLayout {
            // same padding on bottom and at end
            // same padding on bottom and at end
            int paddingBottom = getResources().getDimensionPixelSize(
            int paddingBottom = getResources().getDimensionPixelSize(
                    com.android.internal.R.dimen.notification_content_margin_end);
                    com.android.internal.R.dimen.notification_content_margin_end);
            height = mEmphasizedHeight;
            int buttonPaddingInternal = getResources().getDimensionPixelSize(
            int buttonPaddingInternal = getResources().getDimensionPixelSize(
                    com.android.internal.R.dimen.button_inset_vertical_material);
                    com.android.internal.R.dimen.button_inset_vertical_material);
            setPaddingRelative(getPaddingStart(),
            setPaddingRelative(getPaddingStart(),
                    paddingTop - buttonPaddingInternal,
                    paddingTop - buttonPaddingInternal,
                    getPaddingEnd(),
                    getPaddingEnd(),
                    paddingBottom - buttonPaddingInternal);
                    paddingBottom - buttonPaddingInternal);

            setMinimumHeight(mEmphasizedHeight);
            height = ViewGroup.LayoutParams.WRAP_CONTENT;
        } else {
        } else {
            setPaddingRelative(getPaddingStart(),
            setPaddingRelative(getPaddingStart(),
                    mDefaultPaddingTop,
                    mDefaultPaddingTop,
+2 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,8 @@
    style="@style/NotificationEmphasizedAction"
    style="@style/NotificationEmphasizedAction"
    android:id="@+id/action0"
    android:id="@+id/action0"
    android:layout_width="wrap_content"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_height="wrap_content"
    android:minHeight="@dimen/notification_action_emphasized_height"
    android:layout_marginStart="12dp"
    android:layout_marginStart="12dp"
    android:drawablePadding="6dp"
    android:drawablePadding="6dp"
    android:gravity="center"
    android:gravity="center"
+2 −1
Original line number Original line Diff line number Diff line
@@ -20,7 +20,8 @@
    style="@style/NotificationEmphasizedAction"
    style="@style/NotificationEmphasizedAction"
    android:id="@+id/action0"
    android:id="@+id/action0"
    android:layout_width="wrap_content"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_height="wrap_content"
    android:minHeight="@dimen/notification_action_emphasized_height"
    android:layout_marginStart="12dp"
    android:layout_marginStart="12dp"
    android:drawablePadding="6dp"
    android:drawablePadding="6dp"
    android:enabled="false"
    android:enabled="false"