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

Commit 534162f8 authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Clean up unused code used to use for...." into jb-mr1-dev

parents db92b750 095e2fae
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -26,12 +26,4 @@
    android:searchSuggestIntentData="content://com.android.contacts/contacts/lookup"
    android:searchSettingsDescription="@string/search_settings_description"
>

    <!-- allow green action key for search-bar and per-suggestion clicks -->
    <actionkey
        android:keycode="KEYCODE_CALL"
        android:queryActionMsg="call"
        android:suggestActionMsg="call"
    />

</searchable>
+0 −3
Original line number Diff line number Diff line
@@ -52,10 +52,7 @@
        <item>ACTION_SEARCH: contact</item>
        <item>ACTION_SEARCH: email</item>
        <item>ACTION_SEARCH: phone</item>
        <item>SEARCH_SUGGESTION_CLICKED (call button)</item>
        <item>SEARCH_SUGGESTION_CLICKED: contact</item>
        <item>SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED</item>
        <item>SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED</item>
        <item>TODO: JOIN_CONTACT</item>

        <!-- Edit Contact -->
+0 −26
Original line number Diff line number Diff line
@@ -96,10 +96,7 @@ public class AllIntentsActivity extends ListActivity
        ACTION_SEARCH_CONTACT,
        ACTION_SEARCH_EMAIL,
        ACTION_SEARCH_PHONE,
        SEARCH_SUGGESTION_CLICKED_CALL_BUTTON,
        SEARCH_SUGGESTION_CLICKED_CONTACT,
        SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED,
        SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED,
        JOIN_CONTACT,
        EDIT_CONTACT,
        EDIT_CONTACT_LOOKUP,
@@ -317,17 +314,6 @@ public class AllIntentsActivity extends ListActivity
                startSearchResultActivity(intent);
                break;
            }
            case SEARCH_SUGGESTION_CLICKED_CALL_BUTTON: {
                long contactId = findArbitraryContactWithPhoneNumber();
                if (contactId != -1) {
                    Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
                    Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED);
                    intent.setData(contactUri);
                    intent.putExtra(SearchManager.ACTION_MSG, "call");
                    startContactListActivity(intent);
                }
                break;
            }
            case SEARCH_SUGGESTION_CLICKED_CONTACT: {
                long contactId = findArbitraryContactWithPhoneNumber();
                if (contactId != -1) {
@@ -338,18 +324,6 @@ public class AllIntentsActivity extends ListActivity
                }
                break;
            }
            case SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED: {
                Intent intent = new Intent(Intents.SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED);
                intent.setData(Uri.parse("tel:800-4664411"));
                startContactListActivity(intent);
                break;
            }
            case SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED: {
                Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED);
                intent.setData(Uri.parse("tel:800-4664411"));
                startContactListActivity(intent);
                break;
            }
            case JOIN_CONTACT: {
                // TODO
                break;