summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matthew Ng <ngmatthew@google.com> 2018-07-23 15:12:57 -0700
committer Matthew Ng <ngmatthew@google.com> 2018-07-25 15:34:56 -0700
commit819daaa5e7bbdfa09dd1c918106c66546a54dd6c (patch)
treeabec695b774bc8a599a9d3b6c6ca96303ef50f1b
parentf8d5185665a9585707b3e992e45ed5bc9d67be06 (diff)
When quickstep resets, set the nav bar alpha back to 1f
When rotating the screen, the animation to animate the nav bar back from a quickscrub track would not finish animating to 1f because the reset sets the current nav to null and leaves it transparent. Force set the nav bar to 1f after will make sure it is opaque. Test: in landscape use portrait forced app and quick scrub to another app without forced orientation, and go back and forth Fixes: 111303134 Change-Id: I632657fec07d721e4ee3f41624de67e3e1b4de29
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java
index 2516a9b2ffec..6cc88bb4377c 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStepController.java
@@ -510,6 +510,9 @@ public class QuickStepController implements GestureHelper {
private void resetQuickScrub() {
mQuickScrubActive = false;
mAllowGestureDetection = false;
+ if (mCurrentNavigationBarView != null) {
+ mCurrentNavigationBarView.setAlpha(1f);
+ }
mCurrentNavigationBarView = null;
updateHighlight();
}