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

Commit 095e2fae authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Clean up unused code used to use for....

SEARCH_SUGGESTION_CLICKED and SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED

Bug 6909811

Change-Id: I656e37d4e913742025da79d3e3fe95d3b094e8dc
parent c8af761f
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;