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

Commit a6372471 authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Merge "Use android:clipToOutline in notification templates." into sc-dev am: 42a0d2ef

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I780fb6630686741da6b82fc65fe500184fd5ee22
parents 343e3f8b 42a0d2ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
        android:layout_gravity="center_vertical|start"
        android:layout_marginStart="@dimen/notification_left_icon_start"
        android:background="@drawable/notification_large_icon_outline"
        android:clipToOutline="true"
        android:importantForAccessibility="no"
        android:scaleType="centerCrop"
        android:visibility="gone"
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
        android:layout_gravity="center_vertical|start"
        android:layout_marginStart="@dimen/notification_left_icon_start"
        android:background="@drawable/notification_large_icon_outline"
        android:clipToOutline="true"
        android:importantForAccessibility="no"
        android:scaleType="centerCrop"
        android:visibility="gone"
@@ -54,6 +55,7 @@
        android:layout_marginBottom="@dimen/notification_right_icon_headerless_margin"
        android:layout_marginEnd="@dimen/notification_header_expand_icon_size"
        android:background="@drawable/notification_large_icon_outline"
        android:clipToOutline="true"
        android:importantForAccessibility="no"
        android:scaleType="centerCrop"
        />
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:background="@drawable/notification_big_picture_outline"
            android:clipToOutline="true"
            android:scaleType="centerCrop"
            />

+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
    android:layout_marginEnd="@dimen/notification_header_expand_icon_size"
    android:layout_marginTop="@dimen/notification_right_icon_big_margin_top"
    android:background="@drawable/notification_large_icon_outline"
    android:clipToOutline="true"
    android:importantForAccessibility="no"
    android:scaleType="centerCrop"
    />
+0 −2
Original line number Diff line number Diff line
@@ -40,8 +40,6 @@ public class NotificationBigPictureTemplateViewWrapper extends NotificationTempl
    public void onContentUpdated(ExpandableNotificationRow row) {
        super.onContentUpdated(row);
        updateImageTag(row.getEntry().getSbn());
        // Round the corners of the big picture content
        mView.findViewById(com.android.internal.R.id.big_picture).setClipToOutline(true);
    }

    private void updateImageTag(StatusBarNotification notification) {
Loading