From baa59815d8aff1c757989b3b30a853f7ac2136a5 Mon Sep 17 00:00:00 2001 From: danielwbhuang Date: Fri, 1 Apr 2022 20:48:11 +0800 Subject: [PATCH] Warnings at top of per-app settings page 1. Check getInstallPackageName() and isSystemApp() 2. Link to play store Bug: 221164159 Test: local Change-Id: I5727a4b99d945ae5c1b517020026654796a34d98 --- res/drawable/ic_error_outline.xml | 28 +++++++ res/values/strings.xml | 9 +++ res/xml/app_locale_details.xml | 6 ++ .../appinfo/AppLocaleDetails.java | 73 +++++++++++++++---- 4 files changed, 102 insertions(+), 14 deletions(-) create mode 100644 res/drawable/ic_error_outline.xml diff --git a/res/drawable/ic_error_outline.xml b/res/drawable/ic_error_outline.xml new file mode 100644 index 00000000000..2ddc6d4d501 --- /dev/null +++ b/res/drawable/ic_error_outline.xml @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index c371a041d4e..3b59ce40c1a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -500,6 +500,15 @@ App Language + + Update the app + + + You need to update the app for the latest available languages + + + Update now + Suggested languages diff --git a/res/xml/app_locale_details.xml b/res/xml/app_locale_details.xml index 05e72ee7c9c..7ded8d71510 100644 --- a/res/xml/app_locale_details.xml +++ b/res/xml/app_locale_details.xml @@ -19,6 +19,12 @@ xmlns:settings="http://schemas.android.com/apk/res-auto" android:title="@string/app_locale_picker_title"> + +