Skip to content

Commit

Permalink
core: legacy toasts deserve rounded corners too
Browse files Browse the repository at this point in the history
Fixes regression caused by 2de4846

Change-Id: Ib113ecb5270c0732b0cd550717308f775e3c8914
  • Loading branch information
nift4 authored and basamaryan committed Sep 14, 2023
1 parent 853e0c3 commit 19e03d5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions core/res/res/drawable/toast_frame_legacy.xml
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* Copyright 2017, 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">
<solid android:color="?android:attr/colorBackground" />
<corners android:radius="28dp" />
</shape>

2 changes: 1 addition & 1 deletion core/res/res/layout/transient_notification.xml
Expand Up @@ -25,7 +25,7 @@
android:orientation="horizontal"
android:gravity="center_vertical"
android:maxWidth="@dimen/toast_width"
android:background="?android:attr/colorBackground"
android:background="@drawable/toast_frame_legacy"
android:elevation="@dimen/toast_elevation"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
Expand Down
2 changes: 1 addition & 1 deletion core/res/res/layout/transient_notification_with_icon.xml
Expand Up @@ -22,7 +22,7 @@
android:orientation="horizontal"
android:gravity="center_vertical"
android:maxWidth="@dimen/toast_width"
android:background="?android:attr/colorBackground"
android:background="@drawable/toast_frame_legacy"
android:elevation="@dimen/toast_elevation"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
Expand Down

0 comments on commit 19e03d5

Please sign in to comment.