Merge "Apply pending-intent op before blanket locktask check" into udc-dev am: 0e87524937
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23396338 Change-Id: I4ce59a1525964f2bbee7f4131ae5bbe92ff0ea47 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user