OSDN Git Service

Skip the target activity when settings state to disallow sysui flags
authorWinson Chung <winsonc@google.com>
Thu, 21 Mar 2019 18:03:03 +0000 (11:03 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 21 Mar 2019 18:58:50 +0000 (18:58 +0000)
Bug: 128634828
Test: Swipe up with 2 button, ensure that the flags change
Change-Id: I70bdb03f002eb14f9ad00fc52559806b215e481c

services/core/java/com/android/server/wm/RecentsAnimationController.java

index 26df832..3813669 100644 (file)
@@ -208,7 +208,10 @@ public class RecentsAnimationController implements DeathRecipient {
             try {
                 synchronized (mService.getWindowManagerLock()) {
                     for (int i = mPendingAnimations.size() - 1; i >= 0; i--) {
-                        mPendingAnimations.get(i).mTask.setCanAffectSystemUiFlags(behindSystemBars);
+                        final Task task = mPendingAnimations.get(i).mTask;
+                        if (task.getActivityType() != mTargetActivityType) {
+                            task.setCanAffectSystemUiFlags(behindSystemBars);
+                        }
                     }
                     mService.mWindowPlacerLocked.requestTraversal();
                 }