Fix rotate device at face unlock detailed page, device will display
redundant face unlock header.
In AndroidManifest.xml to apply Theme.Settings.NoActionBar theme
attribute to avoid action_bar appears accidentally.
Bug: 293978245
Test: manually check UI with reproducible steps:
Pre-Condition:
1) enroll face
2) enable auto rotate
Procedure:
1) go to settings > security > face & fingerprint unlock
2) enter screen lock
3) click face unlock
4) rotate device into landscape mode and then back to portrait mode
5) check the UI
Change-Id: I065ff5821a91eb8060dd98b373fce34cae769c66
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index fa4b27a..3529b0b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -659,6 +659,7 @@
<activity android:name="Settings$FaceSettingsActivity"
android:label="@string/security_settings_face_preference_title"
android:exported="true"
+ android:theme="@style/Theme.Settings.NoActionBar"
android:icon="@drawable/ic_face_header">
<intent-filter>
<action android:name="android.settings.FACE_SETTINGS" />
@@ -673,6 +674,7 @@
<activity android:name="Settings$FaceSettingsInternalActivity"
android:label="@string/security_settings_face_preference_title"
android:exported="false"
+ android:theme="@style/Theme.Settings.NoActionBar"
android:icon="@drawable/ic_face_header"
android:taskAffinity="com.android.settings.root">
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"