Center crop and clip notification image.

Test: manual
Change-Id: If57b62761622a46496a9491d577694c32c956ae9
This commit is contained in:
Flavio Fiszman
2020-12-17 15:00:48 +00:00
parent 2e344a1e00
commit 9b53150b5f
3 changed files with 5 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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>

View File

@@ -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(