Merge "Call with Shell transition for TRANSIT_KEYGUARD_OCCLUDE/UNOCCLUDE" into sc-v2-dev
This commit is contained in:
@@ -4984,10 +4984,18 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated new transition should use {@link #requestTransitionAndLegacyPrepare(int, int)}
|
||||
*/
|
||||
@Deprecated
|
||||
void prepareAppTransition(@WindowManager.TransitionType int transit) {
|
||||
prepareAppTransition(transit, 0 /* flags */);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated new transition should use {@link #requestTransitionAndLegacyPrepare(int, int)}
|
||||
*/
|
||||
@Deprecated
|
||||
void prepareAppTransition(@WindowManager.TransitionType int transit,
|
||||
@WindowManager.TransitionFlags int flags) {
|
||||
final boolean prepared = mAppTransition.prepareAppTransition(transit, flags);
|
||||
@@ -5000,7 +5008,8 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
||||
* Helper that both requests a transition (using the new transition system) and prepares
|
||||
* the legacy transition system. Use this when both systems have the same start-point.
|
||||
*
|
||||
* @see TransitionController#requestTransitionIfNeeded(int, int, WindowContainer)
|
||||
* @see TransitionController#requestTransitionIfNeeded(int, int, WindowContainer,
|
||||
* WindowContainer)
|
||||
* @see AppTransition#prepareAppTransition
|
||||
*/
|
||||
void requestTransitionAndLegacyPrepare(@WindowManager.TransitionType int transit,
|
||||
|
||||
@@ -378,10 +378,10 @@ class KeyguardController {
|
||||
mService.deferWindowLayout();
|
||||
try {
|
||||
mRootWindowContainer.getDefaultDisplay()
|
||||
.prepareAppTransition(
|
||||
.requestTransitionAndLegacyPrepare(
|
||||
isDisplayOccluded(DEFAULT_DISPLAY)
|
||||
? TRANSIT_KEYGUARD_OCCLUDE
|
||||
: TRANSIT_KEYGUARD_UNOCCLUDE);
|
||||
: TRANSIT_KEYGUARD_UNOCCLUDE, 0 /* flags */);
|
||||
// When the occluding activity also turns on the display, visibility of the activity
|
||||
// can be committed before KEYGUARD_OCCLUDE transition is handled.
|
||||
// Set mRequestForceTransition flag to make sure that the app transition animation
|
||||
|
||||
@@ -2811,7 +2811,6 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
|
||||
Slog.w(TAG, " Force finishing activity "
|
||||
+ r.intent.getComponent().flattenToShortString());
|
||||
r.detachFromProcess();
|
||||
r.mDisplayContent.prepareAppTransition(TRANSIT_CLOSE, TRANSIT_FLAG_APP_CRASHED);
|
||||
r.mDisplayContent.requestTransitionAndLegacyPrepare(TRANSIT_CLOSE,
|
||||
TRANSIT_FLAG_APP_CRASHED);
|
||||
r.destroyIfPossible("handleAppCrashed");
|
||||
|
||||
@@ -5266,7 +5266,6 @@ class Task extends TaskFragment {
|
||||
Slog.w(TAG, " Force finishing activity "
|
||||
+ r.intent.getComponent().flattenToShortString());
|
||||
Task finishedTask = r.getTask();
|
||||
mDisplayContent.prepareAppTransition(TRANSIT_CLOSE, TRANSIT_FLAG_APP_CRASHED);
|
||||
mDisplayContent.requestTransitionAndLegacyPrepare(TRANSIT_CLOSE, TRANSIT_FLAG_APP_CRASHED);
|
||||
r.finishIfPossible(reason, false /* oomAdj */);
|
||||
|
||||
@@ -5646,7 +5645,6 @@ class Task extends TaskFragment {
|
||||
|
||||
// Skip the transition for pinned task.
|
||||
if (!inPinnedWindowingMode()) {
|
||||
mDisplayContent.prepareAppTransition(TRANSIT_TO_BACK);
|
||||
mDisplayContent.requestTransitionAndLegacyPrepare(TRANSIT_TO_BACK, tr);
|
||||
}
|
||||
moveToBack("moveTaskToBackLocked", tr);
|
||||
|
||||
Reference in New Issue
Block a user