Merge "Fix swipe up show-when-locked activity" into udc-dev
This commit is contained in:
@@ -1107,12 +1107,13 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
|||||||
// needs to be updated for STATE_ABORT.
|
// needs to be updated for STATE_ABORT.
|
||||||
commitVisibleActivities(transaction);
|
commitVisibleActivities(transaction);
|
||||||
|
|
||||||
|
// Fall-back to the default display if there isn't one participating.
|
||||||
|
final DisplayContent primaryDisplay = !mTargetDisplays.isEmpty() ? mTargetDisplays.get(0)
|
||||||
|
: mController.mAtm.mRootWindowContainer.getDefaultDisplay();
|
||||||
|
|
||||||
if (mState == STATE_ABORT) {
|
if (mState == STATE_ABORT) {
|
||||||
mController.abort(this);
|
mController.abort(this);
|
||||||
// Fall-back to the default display if there isn't one participating.
|
primaryDisplay.getPendingTransaction().merge(transaction);
|
||||||
final DisplayContent dc = !mTargetDisplays.isEmpty() ? mTargetDisplays.get(0)
|
|
||||||
: mController.mAtm.mRootWindowContainer.getDefaultDisplay();
|
|
||||||
dc.getPendingTransaction().merge(transaction);
|
|
||||||
mSyncId = -1;
|
mSyncId = -1;
|
||||||
mOverrideOptions = null;
|
mOverrideOptions = null;
|
||||||
cleanUpInternal();
|
cleanUpInternal();
|
||||||
@@ -1124,6 +1125,10 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
|||||||
mFinishTransaction = mController.mAtm.mWindowManager.mTransactionFactory.get();
|
mFinishTransaction = mController.mAtm.mWindowManager.mTransactionFactory.get();
|
||||||
mController.moveToPlaying(this);
|
mController.moveToPlaying(this);
|
||||||
|
|
||||||
|
// Flags must be assigned before calculateTransitionInfo. Otherwise it won't take effect.
|
||||||
|
if (primaryDisplay.isKeyguardLocked()) {
|
||||||
|
mFlags |= TRANSIT_FLAG_KEYGUARD_LOCKED;
|
||||||
|
}
|
||||||
// Check whether the participants were animated from back navigation.
|
// Check whether the participants were animated from back navigation.
|
||||||
final boolean markBackAnimated = mController.mAtm.mBackNavigationController
|
final boolean markBackAnimated = mController.mAtm.mBackNavigationController
|
||||||
.containsBackAnimationTargets(this);
|
.containsBackAnimationTargets(this);
|
||||||
@@ -1137,9 +1142,6 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
|||||||
final DisplayContent dc = mController.mAtm.mRootWindowContainer.getDisplayContent(
|
final DisplayContent dc = mController.mAtm.mRootWindowContainer.getDisplayContent(
|
||||||
info.getRoot(i).getDisplayId());
|
info.getRoot(i).getDisplayId());
|
||||||
mTargetDisplays.add(dc);
|
mTargetDisplays.add(dc);
|
||||||
if (dc.isKeyguardLocked()) {
|
|
||||||
mFlags |= TRANSIT_FLAG_KEYGUARD_LOCKED;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (markBackAnimated) {
|
if (markBackAnimated) {
|
||||||
|
|||||||
Reference in New Issue
Block a user