From d8c6dd4fe8d6115e5c529f4908e19eca924c1926 Mon Sep 17 00:00:00 2001 From: Ken Lin Date: Tue, 21 Mar 2023 07:29:50 +0000 Subject: [PATCH] Correct the resolution illustration at the setting page Replace xml with wrong description with correct one Bug: 272650243 Test: check Setting -> Display -> Screen resolution Change-Id: I878356800e965b19bb9064615d220212b35cca08 --- ...screen_resolution_1080p.xml => screen_resolution_full.xml} | 0 ...screen_resolution_1440p.xml => screen_resolution_high.xml} | 0 .../android/settings/display/ScreenResolutionFragment.java | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename res/drawable/{screen_resolution_1080p.xml => screen_resolution_full.xml} (100%) rename res/drawable/{screen_resolution_1440p.xml => screen_resolution_high.xml} (100%) diff --git a/res/drawable/screen_resolution_1080p.xml b/res/drawable/screen_resolution_full.xml similarity index 100% rename from res/drawable/screen_resolution_1080p.xml rename to res/drawable/screen_resolution_full.xml diff --git a/res/drawable/screen_resolution_1440p.xml b/res/drawable/screen_resolution_high.xml similarity index 100% rename from res/drawable/screen_resolution_1440p.xml rename to res/drawable/screen_resolution_high.xml diff --git a/src/com/android/settings/display/ScreenResolutionFragment.java b/src/com/android/settings/display/ScreenResolutionFragment.java index b40b48f246f..de7d25fefb9 100644 --- a/src/com/android/settings/display/ScreenResolutionFragment.java +++ b/src/com/android/settings/display/ScreenResolutionFragment.java @@ -251,10 +251,10 @@ public class ScreenResolutionFragment extends RadioButtonPickerFragment { if (TextUtils.equals( mScreenResolutionOptions[ScreenResolutionController.HIGHRESOLUTION_IDX], key)) { - preference.setLottieAnimationResId(R.drawable.screen_resolution_1080p); + preference.setLottieAnimationResId(R.drawable.screen_resolution_high); } else if (TextUtils.equals( mScreenResolutionOptions[ScreenResolutionController.FULLRESOLUTION_IDX], key)) { - preference.setLottieAnimationResId(R.drawable.screen_resolution_1440p); + preference.setLottieAnimationResId(R.drawable.screen_resolution_full); } }