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

Commit cd8877e6 authored by Sam Blitzstein's avatar Sam Blitzstein
Browse files

Send the delete timer broadcast immediately after deleting

Instead of delaying until after the animation, because if the activity
is null when the animation is done we can't as easily have a context
available to send the broadcast.

Bug: 9313826
Change-Id: I659dd7dd89779c7ee15e291e9537187dc2dbe411
parent 217d1019
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -734,16 +734,16 @@ public class TimerFragment extends DeskClockFragment
                                        mOnEmptyListListener.onEmptyList();
                                    }
                                }
                                // Tell receiver the timer was deleted.
                                // It will stop all activity related to the
                                // timer
                                updateTimersState(t, Timers.DELETE_TIMER);
                            }
                        });
                        b.start();
                    }
                });
                a.start();
                // Tell receiver the timer was deleted.
                // It will stop all activity related to the
                // timer
                updateTimersState(t, Timers.DELETE_TIMER);
                break;
            case ClickAction.ACTION_PLUS_ONE:
                onPlusOneButtonPressed(clickAction.mTimer);