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

Commit 9b53150b authored by Flavio Fiszman's avatar Flavio Fiszman
Browse files

Center crop and clip notification image.

Test: manual
Change-Id: If57b62761622a46496a9491d577694c32c956ae9
parent 2e344a1e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17925,6 +17925,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * @see #setOutlineProvider(ViewOutlineProvider)
     * @see #getClipToOutline()
     */
    @RemotableViewMethod
    public void setClipToOutline(boolean clipToOutline) {
        damageInParent();
        if (getClipToOutline() != clipToOutline) {
+3 −1
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@
                </LinearLayout>
            </LinearLayout>
            <LinearLayout
                android:id="@+id/content_background"
                android:background="@drawable/people_space_content_background"
                android:layout_gravity="center"
                android:layout_width="match_parent"
@@ -187,7 +188,8 @@
                    android:id="@+id/image"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:visibility="gone"/>
                    android:visibility="gone"
                    android:scaleType="centerCrop"/>
            </LinearLayout>
        </LinearLayout>
    </RelativeLayout>
+1 −0
Original line number Diff line number Diff line
@@ -282,6 +282,7 @@ public class PeopleSpaceUtils {
                    )
            );
            views.setImageViewIcon(R.id.person_icon, tile.getUserIcon());
            views.setBoolean(R.id.content_background, "setClipToOutline", true);

            Intent activityIntent = new Intent(context, LaunchConversationActivity.class);
            activityIntent.addFlags(