diff options
| author | 2023-05-24 15:46:10 +0000 | |
|---|---|---|
| committer | 2023-05-24 15:46:10 +0000 | |
| commit | 0e87524937e53346c64ab8ae585f996b9483354f (patch) | |
| tree | 441fb38010e2f5343d1fd930c227e5292027ddf8 | |
| parent | 65281547ea3358e6fe48f3279027360fc54b1b58 (diff) | |
| parent | 834b63af32dedef458ddaf9b13bc394013149560 (diff) | |
Merge "Apply pending-intent op before blanket locktask check" into udc-dev
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowOrganizerController.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/services/core/java/com/android/server/wm/WindowOrganizerController.java b/services/core/java/com/android/server/wm/WindowOrganizerController.java index 7e34d15ddcfc..8e85e5bca240 100644 --- a/services/core/java/com/android/server/wm/WindowOrganizerController.java +++ b/services/core/java/com/android/server/wm/WindowOrganizerController.java @@ -960,20 +960,6 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub errorCallbackToken, organizer); break; } - default: { - // The other operations may change task order so they are skipped while in lock - // task mode. The above operations are still allowed because they don't move - // tasks. And it may be necessary such as clearing launch root after entering - // lock task mode. - if (isInLockTaskMode) { - Slog.w(TAG, "Skip applying hierarchy operation " + hop - + " while in lock task mode"); - return effects; - } - } - } - - switch (type) { case HIERARCHY_OP_TYPE_PENDING_INTENT: { final Bundle launchOpts = hop.getLaunchOptions(); ActivityOptions activityOptions = launchOpts != null @@ -1012,6 +998,20 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub } break; } + default: { + // The other operations may change task order so they are skipped while in lock + // task mode. The above operations are still allowed because they don't move + // tasks. And it may be necessary such as clearing launch root after entering + // lock task mode. + if (isInLockTaskMode) { + Slog.w(TAG, "Skip applying hierarchy operation " + hop + + " while in lock task mode"); + return effects; + } + } + } + + switch (type) { case HIERARCHY_OP_TYPE_START_SHORTCUT: { final Bundle launchOpts = hop.getLaunchOptions(); final String callingPackage = launchOpts.getString( |