Merge "Skip the target activity when settings state to disallow sysui flags"

This commit is contained in:
TreeHugger Robot
2019-03-22 15:36:23 +00:00
committed by Android (Google) Code Review

View 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();
}