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

Commit 362d490c authored by Amith Yamasani's avatar Amith Yamasani Committed by android-build-merger
Browse files

Don't inform usage stats of interaction for a toast am: 43caafa2 am: 0775c2e2

am: aa8e8c4f

Change-Id: I10014c6e43d0e45df66456836d768420e7c1d455
parents 9e4a6401 aa8e8c4f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -20697,8 +20697,10 @@ public final class ActivityManagerService extends ActivityManagerNative
                isInteraction = nowElapsed > app.fgInteractionTime + SERVICE_USAGE_INTERACTION_TIME;
            }
        } else {
            isInteraction = app.curProcState
                    <= ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND;
            // If the app was being forced to the foreground, by say a Toast, then
            // no need to treat it as an interaction
            isInteraction = app.forcingToForeground == null
                    && app.curProcState <= ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND;
            app.fgInteractionTime = 0;
        }
        if (isInteraction && (!app.reportedInteraction