Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7efcc0c1 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Skip reporting resumes due to config change.

This gives us matching pause/resume calls to updateUsageStats(),
since configuration changes never report the pause event.

Change-Id: I5c8afc28766cd90d4bd793980265ce7988750cae
parent 007d4d70
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2529,7 +2529,6 @@ public final class ActivityManagerService extends ActivityManagerNative
    }
    void reportResumedActivityLocked(ActivityRecord r) {
        //Slog.i(TAG, "**** REPORT RESUME: " + r);
        updateUsageStats(r, true);
    }
+0 −3
Original line number Diff line number Diff line
@@ -3349,9 +3349,6 @@ final class ActivityStack {
        if (andResume) {
            r.results = null;
            r.newIntents = null;
            if (mStackSupervisor.isFrontStack(this)) {
                mService.reportResumedActivityLocked(r);
            }
            r.state = ActivityState.RESUMED;
        } else {
            mHandler.removeMessages(PAUSE_TIMEOUT_MSG, r);