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

Commit bec0e126 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Remove unused callback

Bug 5143491

Change-Id: I20b82551329f1beb05dc4039cf0d501fe9a9e676
parent 96a051e2
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -205,12 +205,6 @@
    <!-- Menu item to indicate you want to stop editing a contact and NOT save the changes you've made [CHAR LIMIT=12] -->
    <string name="menu_discard">Discard</string>

    <!-- The title of the activity that edits and existing contact -->
    <string name="editContact_title_edit">Edit contact</string>

    <!-- The title of the activity that creates a new contact -->
    <string name="editContact_title_insert">New contact</string>

    <!-- The label describing the phonetic pronunciation/reading of a contact name [CHAR LIMIT=20] -->
    <string name="label_phonetic_name">Phonetic</string>

@@ -1603,12 +1597,6 @@
    <!-- Label to instruct the user to type in a contact's name to add the contact as a member of the current group. [CHAR LIMIT=64] -->
    <string name="enter_contact_name">Enter contact\'s name</string>

    <!-- The title of the activity that creates a new group [CHAR LIMIT=NONE] -->
    <string name="editGroup_title_insert">New group</string>

    <!-- The title of the activity that edits an existing group [CHAR LIMIT=NONE] -->
    <string name="editGroup_title_edit">Edit group</string>

    <!-- Button to view the updates from the current group on the group detail page [CHAR LIMIT=20] -->
    <string name="view_updates_from_group">View updates</string>

+0 −5
Original line number Diff line number Diff line
@@ -170,11 +170,6 @@ public class ContactEditorActivity extends ContactsActivity
            finish();
        }

        @Override
        public void setTitleTo(int resourceId) {
            setTitle(resourceId);
        }

        @Override
        public void onEditOtherContactRequested(
                Uri contactLookupUri, ArrayList<ContentValues> values) {
+0 −5
Original line number Diff line number Diff line
@@ -163,11 +163,6 @@ public class GroupEditorActivity extends ContactsActivity
            }
            finish();
        }

        @Override
        public void onTitleLoaded(int resourceId) {
            setTitle(resourceId);
        }
    };

    @Override
+0 −8
Original line number Diff line number Diff line
@@ -317,11 +317,8 @@ public class ContactEditorFragment extends Fragment implements

        if (!hasIncomingState) {
            if (Intent.ACTION_EDIT.equals(mAction)) {
                if (mListener != null) mListener.setTitleTo(R.string.editContact_title_edit);
                getLoaderManager().initLoader(LOADER_DATA, null, mDataLoaderListener);
            } else if (Intent.ACTION_INSERT.equals(mAction)) {
                if (mListener != null) mListener.setTitleTo(R.string.editContact_title_insert);

                final Account account = mIntentExtras == null ? null :
                        (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT);
                final String dataSet = mIntentExtras == null ? null :
@@ -1118,11 +1115,6 @@ public class ContactEditorFragment extends Fragment implements
         */
        void onReverted();

        /**
         * Set the Title (e.g. of the Activity)
         */
        void setTitleTo(int resourceId);

        /**
         * Contact was saved and the Fragment can now be closed safely.
         */
+0 −14
Original line number Diff line number Diff line
@@ -103,13 +103,6 @@ public class GroupEditorFragment extends Fragment implements SelectAccountDialog
         */
        void onReverted();

        /**
         * Title has been determined.
         *
         * TODO Remove this.  No longer needed with the latest visual spec.
         */
        void onTitleLoaded(int resourceId);

        /**
         * Contact was saved and the Fragment can now be closed safely.
         */
@@ -257,13 +250,6 @@ public class GroupEditorFragment extends Fragment implements SelectAccountDialog
            throw new IllegalArgumentException("Unknown Action String " + mAction +
                    ". Only support " + Intent.ACTION_EDIT + " or " + Intent.ACTION_INSERT);
        }

        // Let the activity update the title.
        if (mListener != null) {
            mListener.onTitleLoaded(Intent.ACTION_EDIT.equals(mAction)
                    ? R.string.editGroup_title_edit
                    : R.string.editGroup_title_insert);
        }
    }

    private void startGroupMetaDataLoader() {