Loading services/core/java/com/android/server/wm/ActivityRecord.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -4934,6 +4934,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_STOPPED); mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_STOPPED); break; break; case DESTROYED: case DESTROYED: if (app != null && (mVisible || mVisibleRequested)) { // The app may be died while visible (no PAUSED state). mAtmService.updateBatteryStats(this, false); } mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_DESTROYED); mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_DESTROYED); // Fall through. // Fall through. case DESTROYING: case DESTROYING: Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -4934,6 +4934,10 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_STOPPED); mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_STOPPED); break; break; case DESTROYED: case DESTROYED: if (app != null && (mVisible || mVisibleRequested)) { // The app may be died while visible (no PAUSED state). mAtmService.updateBatteryStats(this, false); } mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_DESTROYED); mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_DESTROYED); // Fall through. // Fall through. case DESTROYING: case DESTROYING: Loading