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

Commit 5e931977 authored by Yorke Lee's avatar Yorke Lee
Browse files

Add All contacts option to overflow menu

Bug: 10348659
Change-Id: I354fc56fdcb63d0b03f6d66cfb4d85b7700e3545
parent a394f116
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -21,8 +21,11 @@
        android:id="@+id/menu_clear_frequents"
        android:title="@string/menu_clear_frequents" />
    <item
        android:id="@+id/add_contact"
        android:id="@+id/menu_add_contact"
        android:title="@string/menu_newContact"/>
    <item
        android:id="@+id/menu_all_contacts"
        android:title="@string/menu_allContacts"/>
    <item
        android:id="@+id/menu_call_settings"
        android:title="@string/call_settings"
+0 −28
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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_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" />
</menu>
+3 −0
Original line number Diff line number Diff line
@@ -338,6 +338,9 @@
    <!-- Menu item to create a new contact -->
    <string name="menu_newContact">New contact</string>

    <!-- Menu item to display all contacts -->
    <string name="menu_allContacts">All contacts</string>

    <!-- Title bar for call detail screen -->
    <string name="callDetailTitle">Call details</string>

+5 −1
Original line number Diff line number Diff line
@@ -347,7 +347,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
            case R.id.menu_clear_frequents:
                ClearFrequentsDialog.show(getFragmentManager());
                return true;
            case R.id.add_contact:
            case R.id.menu_add_contact:
                try {
                    startActivity(new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI));
                } catch (ActivityNotFoundException e) {
@@ -360,6 +360,10 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
            case R.id.menu_call_settings:
                final Intent settingsIntent = DialtactsActivity.getCallSettingsIntent();
                startActivity(settingsIntent);
                return true;
            case R.id.menu_all_contacts:
                onShowAllContacts();
                return true;
        }
        return false;
    }