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

Commit 2fc4de31 authored by Maurice Chu's avatar Maurice Chu
Browse files

Added menu option to clear frequents in favorites tab of Phone and People

The clear frequents menu option is only visible when there are items in
the frequently contacted list.  When the user selects the menu option, a
confirmation dialog is shown to verify whether to actually clear frequents.

New ClearFrequentsDialog class created in a new com.android.contacts.dialog
package that is shared by both Phone and People apps to show the
confirmation dialog of whether to clear frequents.

Bug:5475575
Change-Id: I876d3fe15f16635570f3ecb7cd8ed2a19227e316
parent dc75e5ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -42,6 +42,10 @@
        android:orderInCategory="2"
        android:title="@string/menu_import_export" />

    <item
        android:id="@+id/menu_clear_frequents"
        android:title="@string/menu_clear_frequents" />

    <item
        android:id="@+id/menu_accounts"
        android:orderInCategory="3"
+4 −0
Original line number Diff line number Diff line
@@ -45,6 +45,10 @@
        android:orderInCategory="2"
        android:title="@string/menu_import_export" />

    <item
        android:id="@+id/menu_clear_frequents"
        android:title="@string/menu_clear_frequents" />

    <item
        android:id="@+id/menu_accounts"
        android:orderInCategory="3"
+4 −0
Original line number Diff line number Diff line
@@ -40,6 +40,10 @@
        android:id="@+id/menu_import_export"
        android:title="@string/menu_import_export" />

    <item
        android:id="@+id/menu_clear_frequents"
        android:title="@string/menu_clear_frequents" />

    <item
        android:id="@+id/menu_accounts"
        android:title="@string/menu_accounts" />
+4 −0
Original line number Diff line number Diff line
@@ -18,6 +18,10 @@
        android:id="@+id/menu_import_export"
        android:title="@string/menu_import_export" />

    <item
        android:id="@+id/menu_clear_frequents"
        android:title="@string/menu_clear_frequents" />

    <item
        android:id="@+id/menu_accounts"
        android:title="@string/menu_accounts" />
+12 −0
Original line number Diff line number Diff line
@@ -430,6 +430,15 @@
    <!-- Title of the "Clearing call log" progress-dialog [CHAR LIMIT=35] -->
    <string name="clearCallLogProgress_title">Clearing call log\u2026</string>

    <!-- Title of the confirmation dialog for clearing frequents. [CHAR LIMIT=37] -->
    <string name="clearFrequentsConfirmation_title">Clear frequently contacted?</string>

    <!-- Confirmation dialog for clearing frequents. [CHAR LIMIT=NONE] -->
    <string name="clearFrequentsConfirmation">You\'ll clear the frequently contacted list in the People and Phone apps, and force email apps to learn your addressing preferences from scratch.</string>

    <!-- Title of the "Clearing frequently contacted" progress-dialog [CHAR LIMIT=35] -->
    <string name="clearFrequentsProgress_title">Clearing frequently contacted\u2026</string>

    <!-- The title of a dialog that displays the IMEI of the phone -->
    <string name="imei">IMEI</string>

@@ -999,6 +1008,9 @@
    <!-- The menu item to open the list of accounts -->
    <string name="menu_accounts">Accounts</string>

    <!--  The menu item to clear frequents [CHAR LIMIT=30] -->
    <string name="menu_clear_frequents">Clear frequents</string>

    <!-- The menu item to filter the list of contacts displayed -->
    <string name="menu_contacts_filter">Contacts to display</string>

Loading