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

Commit 3e71c69a authored by Annie Chin's avatar Annie Chin
Browse files

Allow user to interact with running timers from notifications.

Bug: 22376599

Timer in use collapsed notification now offers the following actions:
for single running timer: pause, +1
for single paused timer: resume, reset
for multiple timers (paused and/or running): reset all

Additionally, clicking the notification now scrolls the user to an
active timer in TimerFragment.

Change-Id: I9e2385c7601c80387bebc144f6fc281786e3b3f2
parent 480ecd1b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -341,6 +341,11 @@
                <action android:name="notif_times_up_plus_one" />
                <action android:name="notif_times_up_show" />
                <action android:name="notif_times_up_cancel" />
                <action android:name="notif_pause_timer" />
                <action android:name="notif_plus_one_timer" />
                <action android:name="notif_resume_timer" />
                <action android:name="notif_reset_timer" />
                <action android:name="notif_reset_all_timers" />
                <action android:name="notif_update" />
            </intent-filter>
        </receiver>
+105 B
Loading image diff...
+83 B
Loading image diff...
+18 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/ic_pause_white_24dp"
    android:tint="@color/black" />
+90 B
Loading image diff...
Loading