diff options
author | 2025-03-11 11:05:33 -0700 | |
---|---|---|
committer | 2025-03-11 11:05:33 -0700 | |
commit | b0d729f4abd7256f75ff88ebc77a585726422122 (patch) | |
tree | ec41c6bd3198d7a7514255fdd70e9ad20e8ef4d1 | |
parent | 9dd1b5f01d11a00e52f3484ecf901df760b148d7 (diff) |
Adding Dark or Transparent theme for the splash screen of Credential Manager
BUG: 379815309
Test: manual
After: http://b/379815309#attachment63533070
(cherry picked from https://partner-android-review.googlesource.com/q/commit:9ad18b8a967cac8ae1c081f93ed605249bc9c78d)
Merged-In: Ie0ede038228b2c30d65e8a5e7fa80369487261ed
Change-Id: Ie0ede038228b2c30d65e8a5e7fa80369487261ed
-rw-r--r-- | packages/CredentialManager/wear/AndroidManifest.xml | 6 | ||||
-rw-r--r-- | packages/CredentialManager/wear/res/values/themes.xml | 24 |
2 files changed, 28 insertions, 2 deletions
diff --git a/packages/CredentialManager/wear/AndroidManifest.xml b/packages/CredentialManager/wear/AndroidManifest.xml index b480ac30d2cb..c91bf13bf98e 100644 --- a/packages/CredentialManager/wear/AndroidManifest.xml +++ b/packages/CredentialManager/wear/AndroidManifest.xml @@ -32,7 +32,8 @@ android:dataExtractionRules="@xml/data_extraction_rules" android:fullBackupContent="@xml/backup_rules" android:label="@string/app_name" - android:supportsRtl="true"> + android:supportsRtl="true" + android:theme="@style/Theme.CredentialSelector"> <!-- Activity called by GMS has to be exactly: com.android.credentialmanager.CredentialSelectorActivity --> @@ -42,7 +43,8 @@ android:exported="true" android:label="@string/app_name" android:launchMode="singleTop" - android:permission="android.permission.LAUNCH_CREDENTIAL_SELECTOR" /> + android:permission="android.permission.LAUNCH_CREDENTIAL_SELECTOR" + android:theme="@style/Theme.CredentialSelector"/> </application> </manifest> diff --git a/packages/CredentialManager/wear/res/values/themes.xml b/packages/CredentialManager/wear/res/values/themes.xml new file mode 100644 index 000000000000..22329e9ff2ce --- /dev/null +++ b/packages/CredentialManager/wear/res/values/themes.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2023 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. + --> +<resources> + <style name="Theme.CredentialSelector" parent="@*android:style/ThemeOverlay.DeviceDefault.Accent.DayNight"> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowNoTitle">true</item> + <item name="android:windowBackground">@android:color/transparent</item> + <item name="android:windowIsTranslucent">true</item> + </style> +</resources>
\ No newline at end of file |