Merge "Avoid unexpected turning screen on when top activity finishes" into udc-qpr-dev am: f89046ffab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23577396 Change-Id: If9f4efb25310e356099429f2aabd56d4c19585b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -898,6 +898,11 @@ class ActivityStarter {
|
||||
}
|
||||
mLastStartReason = request.reason;
|
||||
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;
|
||||
|
||||
final IApplicationThread caller = request.caller;
|
||||
|
||||
Reference in New Issue
Block a user