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

Commit 8a0554d5 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Round corners of BigPicture

Bug: 163626038
Test: manual
Change-Id: I71383c42b6b76d04dcc74551bf994ce1307a873f
parent b5839a11
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners android:radius="16dp" />
    <solid android:color="#00000000" />
</shape>
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@
            android:layout_marginTop="13dp"
            android:layout_marginStart="@dimen/notification_content_margin_start"
            android:layout_marginEnd="@dimen/notification_content_margin_end"
            android:background="@drawable/notification_big_picture_outline"
            android:scaleType="centerCrop"
            />

+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ 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) {