From 0c4e271bd8aa3c8f130d777a2a0b6d04213076ff Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Tue, 31 Oct 2023 22:23:41 +0000 Subject: [PATCH] Fix 3 button mode issues in AllSetActivity - Set system bars appearance to light/dark depending on device theme to ensure visibility - Also fix issue where taskbar icons would appear partially offscreen and prevent pressing nav buttons if you rotated Fixes: 293438087 Test: adb shell am start -a android.intent.action.MAIN -n com.google.android.setupwizard/.SetupWizardTestActivity - Skip to the end (AllSetActivity), and ensure 3 buttons are visible - Rotate device and ensure 3 buttons are still visible and functional - Will also flash / wipe to the build once it's created Flag: None (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:286fc215e632280fe0b401bfd713621104861288) Merged-In: Ie2d9bf1e1d95a6ccbd1f9c592adb51390b21ad85 Change-Id: Ie2d9bf1e1d95a6ccbd1f9c592adb51390b21ad85 This cherry-picks from fa654851095890a092471af658dbbd4dbb751419. --- .../src/com/android/quickstep/interaction/AllSetActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java index 041825c50e..1a820a5c14 100644 --- a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java +++ b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java @@ -15,6 +15,9 @@ */ package com.android.quickstep.interaction; +import static android.view.WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS; +import static android.view.WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS; + import static com.android.app.animation.Interpolators.FAST_OUT_SLOW_IN; import static com.android.app.animation.Interpolators.LINEAR; import static com.android.launcher3.Utilities.mapBoundToRange;