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

Commit fa850403 authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Add support of long press to delete alarms

Bug: 7308745

Added support for "long press to delete" to alarm list.

Change-Id: I67ac27de106c87ab8b7cd139db08197c5d7e9538
parent feabb7a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,8 +32,8 @@

    <com.android.deskclock.widget.ActionableToastBar
        android:id="@+id/undo_bar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:layout_height="64dip"
        android:layout_gravity="bottom"
        android:layout_marginBottom="40dp"
        android:layout_marginLeft="8dp"
+24 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 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.
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/menu_item_delete_alarm"
        android:title="@string/delete_alarm"
        android:icon="@android:drawable/ic_menu_delete"
        android:showAsAction="always"/>
</menu>

+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
    <color name="clock_gray">#80ffffff</color>
    <color name="clock_blue">#ff33b5e5</color>
    <color name="notification_bg">#ff15444F</color>
    <color name="alarm_selected_color">#aa0099cc</color>

    <drawable name="notification_template_icon_bg">#3333B5E5</drawable>
    <drawable name="notification_template_icon_low_bg">#0cffffff</drawable>
+3 −0
Original line number Diff line number Diff line
@@ -707,5 +707,8 @@
    <string name="next_alarm_description">Next alarm: <xliff:g id="alarm_time" example="Wed 8:00am">%s</xliff:g></string>
    <string name="label_unlabeled"></string>

    <!-- Displays the number of alarms selected from the list of alarms. -->
    <string name="alarms_selected"><xliff:g id="alarms">%d</xliff:g> selected</string>

</resources>
+286 −10

File changed.

Preview size limit exceeded, changes collapsed.