Merge "Avoid unexpected turning screen on when top activity finishes" into udc-qpr-dev
This commit is contained in:
@@ -898,6 +898,11 @@ class ActivityStarter {
|
|||||||
}
|
}
|
||||||
mLastStartReason = request.reason;
|
mLastStartReason = request.reason;
|
||||||
mLastStartActivityTimeMs = System.currentTimeMillis();
|
mLastStartActivityTimeMs = System.currentTimeMillis();
|
||||||
|
// Reset the ActivityRecord#mCurrentLaunchCanTurnScreenOn state of last start activity in
|
||||||
|
// case the state is not yet consumed during rapid activity launch.
|
||||||
|
if (mLastStartActivityRecord != null) {
|
||||||
|
mLastStartActivityRecord.setCurrentLaunchCanTurnScreenOn(false);
|
||||||
|
}
|
||||||
mLastStartActivityRecord = null;
|
mLastStartActivityRecord = null;
|
||||||
|
|
||||||
final IApplicationThread caller = request.caller;
|
final IApplicationThread caller = request.caller;
|
||||||
|
|||||||
Reference in New Issue
Block a user