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

Commit 80ebff21 authored by Annie Chin's avatar Annie Chin
Browse files

Update stopwatch circle on RESET_AND_LAUNCH intent.

Bug: 22551300

Stopwatch circle only updated when app was open (notification
not showing). Expand that to include when app is being reset
and launched.

Change-Id: I4f48d3f9454fd088218076f50aef0b5ab2876291
parent 9da3a43b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -63,7 +63,9 @@ public class StopwatchService extends Service {
        String actionType = intent.getAction();
        long actionTime = intent.getLongExtra(Stopwatches.MESSAGE_TIME, Utils.getTimeNow());
        boolean showNotif = intent.getBooleanExtra(Stopwatches.SHOW_NOTIF, true);
        boolean updateCircle = !showNotif; // Update the stopwatch circle when the app is open.
        // Update the stopwatch circle when the app is open or is being opened.
        boolean updateCircle = !showNotif
                || intent.getAction().equals(Stopwatches.RESET_AND_LAUNCH_STOPWATCH);
        switch(actionType) {
            case HandleDeskClockApiCalls.ACTION_START_STOPWATCH:
                SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this) ;