Merge "Size restrict right icon size in notification" into tm-dev am: 9ec047d918

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

Change-Id: Ib3cc8a44198865796df45ea6fb2dbc2b3fde88fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Lucas Dupin
2022-07-07 16:07:47 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 2 deletions

View File

@@ -138,7 +138,7 @@
</LinearLayout>
<ImageView
<com.android.internal.widget.CachingIconView
android:id="@+id/right_icon"
android:layout_width="@dimen/notification_right_icon_size"
android:layout_height="@dimen/notification_right_icon_size"
@@ -150,6 +150,8 @@
android:clipToOutline="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
android:maxDrawableWidth="@dimen/notification_right_icon_size"
android:maxDrawableHeight="@dimen/notification_right_icon_size"
/>
<FrameLayout

View File

@@ -13,7 +13,7 @@
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<ImageView
<com.android.internal.widget.CachingIconView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/right_icon"
android:layout_width="@dimen/notification_right_icon_size"
@@ -25,4 +25,6 @@
android:clipToOutline="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
android:maxDrawableWidth="@dimen/notification_right_icon_size"
android:maxDrawableHeight="@dimen/notification_right_icon_size"
/>