From df00a3bc6904b6a0df2637a5f5eae524b7335f5e Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Wed, 23 Jun 2021 17:53:59 +0800 Subject: [PATCH] Consistent color between status bar and app bar In Android S, we add the transparent color to navigation bar and status bar for consistent color between status bar and app bar. So, we should add this change for oveall setting theme since most pages should apply new app bar now. Thus, we don't need to override the subsetting style for different activities one by one. Homepage doesn't have new Android S tool bar, so we shouldn't adopt it. Test: Try to launch all the pages as many as possible. Fix: 190797935 Change-Id: Ic4083de5477371f1d0eea2d66f020e4469fa3f86 --- AndroidManifest.xml | 19 +------------------ res/values-night/themes.xml | 3 +++ res/values/themes.xml | 7 +++++++ 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6f6482daeb5..d554dd8f57b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -141,7 +141,6 @@ @@ -182,7 +181,6 @@ @@ -419,7 +417,6 @@ android:label="@string/apn_settings" android:launchMode="singleTask" android:exported="true" - android:theme="@style/Theme.SubSettings" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -474,7 +471,6 @@ @@ -499,7 +495,6 @@ @@ -507,7 +502,6 @@ @@ -713,8 +707,7 @@ + android:label="@string/assist_and_voice_input_title"> @@ -1154,7 +1147,6 @@ @@ -1332,7 +1324,6 @@ @@ -1495,7 +1486,6 @@ @@ -1528,7 +1518,6 @@ @@ -2084,7 +2073,6 @@ @@ -2455,7 +2443,6 @@ @@ -2469,7 +2456,6 @@ @@ -3030,7 +3016,6 @@ @@ -3720,7 +3705,6 @@ android:name="Settings$GestureNavigationSettingsActivity" android:label="@string/gesture_settings_activity_title" android:exported="true" - android:theme="@style/Theme.SubSettings" android:enabled="true"> @@ -3804,7 +3788,6 @@ android:permission="android.permission.BIND_JOB_SERVICE" /> diff --git a/res/values-night/themes.xml b/res/values-night/themes.xml index b95a5a0f87f..a77bb066e8d 100644 --- a/res/values-night/themes.xml +++ b/res/values-night/themes.xml @@ -22,6 +22,9 @@ @*android:color/primary_device_default_settings @*android:color/primary_dark_device_default_settings ?android:attr/colorPrimaryDark + + @android:color/black + ?attr/colorPrimaryDark