DO NOT MERGE Do not update bar control target when application is starting am: 344efe80a9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13162916

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3fa0761d03b21b33bec09803b05b906b5dae69a1
This commit is contained in:
Heemin Seog
2021-01-25 18:05:34 +00:00
committed by Automerger Merge Worker

View File

@@ -27,6 +27,7 @@ import static android.view.InsetsState.ITYPE_STATUS_BAR;
import static android.view.SyncRtSurfaceTransactionApplier.applyParams;
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_SHOW_STATUS_BAR;
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION;
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_STARTING;
import android.annotation.Nullable;
import android.app.StatusBarManager;
@@ -128,6 +129,9 @@ class InsetsPolicy {
/** Updates the target which can control system bars. */
void updateBarControlTarget(@Nullable WindowState focusedWin) {
if (focusedWin != null && (focusedWin.mAttrs.type == TYPE_APPLICATION_STARTING)) {
return;
}
if (mFocusedWin != focusedWin){
abortTransient();
}