Adding comments and removes unnecessary parameter

Bug: 227538244
Test: atest ActivityVisibilityTests
Change-Id: I90c7f82decbed75bccc5c750ba2c84e948cc33c3
This commit is contained in:
Louis Chang
2022-08-16 02:20:57 +00:00
parent 8b1aeaa2c2
commit 25bcc875ca
3 changed files with 4 additions and 3 deletions

View File

@@ -5649,7 +5649,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
ProtoLog.v(WM_DEBUG_ADD_REMOVE, "notifyAppResumed: wasStopped=%b %s",
wasStopped, this);
mAppStopped = false;
// Allow the window to turn the screen on once the app is resumed again.
// Allow the window to turn the screen on once the app is started and resumed.
if (mAtmService.getActivityStartController().isInExecution()) {
setCurrentLaunchCanTurnScreenOn(true);
}

View File

@@ -94,6 +94,7 @@ public class ActivityStartController {
boolean mCheckedForSetup = false;
/** Whether an {@link ActivityStarter} is currently executing (starting an Activity). */
private boolean mInExecution = false;
/**
@@ -129,7 +130,7 @@ public class ActivityStartController {
return mFactory.obtain().setIntent(intent).setReason(reason);
}
void onExecutionStarted(ActivityStarter starter) {
void onExecutionStarted() {
mInExecution = true;
}

View File

@@ -1268,7 +1268,7 @@ class ActivityStarter {
}
private void onExecutionStarted() {
mController.onExecutionStarted(this);
mController.onExecutionStarted();
}
private boolean isHomeApp(int uid, @Nullable String packageName) {