summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dan Sandler <dsandler@android.com> 2023-07-12 20:09:41 -0400
committer Daniel Sandler <dsandler@android.com> 2023-08-21 18:28:01 +0000
commiteeacd7d3f11f204057da54a8229eab3b18a08a93 (patch)
treeb960268b135c7335095816513f0c58836afcc550
parent7db9c570db9d42fe3e0e72c3c92e6f20b2e51d61 (diff)
Fix back gesture / keycode for the PlatLogoActivity
By overriding onKeyUp on the Activity itself, without calling super, I broke legacy back handling. Fortunately, there is now a better way to handle back! (Also fix the theme to avoid wallpaper showing through display cutout insets.) Test: adb shell input keyevent --longpress KEYCODE_BACK Test: swipe from edge Fixes: 289648693 Fixes: 290989795 Change-Id: I4fd4975421d204f06dbd8acda1a0d2a5a99f3465 (cherry picked from commit 5bbab52e0062877e17579bec48031f06ded79963)
-rw-r--r--core/res/AndroidManifest.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 2f9f6ae3f3c4..4dbc54fa2481 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -7752,8 +7752,9 @@
android:process=":ui">
</activity>
<activity android:name="com.android.internal.app.PlatLogoActivity"
- android:theme="@style/Theme.Wallpaper.NoTitleBar.Fullscreen"
+ android:theme="@style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
+ android:enableOnBackInvokedCallback="true"
android:icon="@drawable/platlogo"
android:process=":ui">
</activity>