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

Commit 7a09c70a authored by yaolu's avatar yaolu
Browse files

Update QuickContactEvent field names to match proto file (1/2)

Follow up cl for ag/1370511 and ag/1370459.
The proto change: cl/131608869

Bug: 30979088
Test: Manually started QuickContact from Contacts, home screen shortcut,
and Dialer, edited contact, perform actions, then observed from logcat
for log messages.

Change-Id: Id0f268796d2e31fd149f424b1750735476753522
parent 86e99c5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ public final class QuickContactEvent {
        public static final int UNSTAR = 3;
        public static final int EDIT = 4;
        public static final int ADD = 5;
        public static final int DELETE = 6;
        public static final int REMOVE = 6;
        public static final int SHARE = 7;
        public static final int SHORTCUT = 8;
        public static final int HELP = 9;
@@ -71,7 +71,7 @@ public final class QuickContactEvent {
        public static final int VIDEOCALL = 12;
        public static final int EMAIL = 13;
        public static final int SIPCALL = 14;
        public static final int MAP = 15;
        public static final int ADDRESS = 15;
        public static final int DIRECTIONS = 16;
        public static final int THIRD_PARTY = 17;
    }
+4 −4
Original line number Diff line number Diff line
@@ -977,7 +977,7 @@ public class QuickContactActivity extends ContactsActivity
            return;
        }

        mIsRecreatedInstance = (savedInstanceState != null);
        mIsRecreatedInstance = savedInstanceState != null;
        mShouldLog = true;

        // There're 3 states for each permission:
@@ -2121,7 +2121,7 @@ public class QuickContactActivity extends ContactsActivity
            if (!TextUtils.isEmpty(postalAddress)) {
                primaryContentDescription.append(res.getString(R.string.map_other)).append(" ");
                intent = StructuredPostalUtils.getViewPostalAddressIntent(postalAddress);
                intent.putExtra(EXTRA_ACTION_TYPE, ActionType.MAP);
                intent.putExtra(EXTRA_ACTION_TYPE, ActionType.ADDRESS);
                header = postal.getFormattedAddress();
                entryContextMenuInfo = new EntryContextMenuInfo(header,
                        res.getString(R.string.postalLabelsGroup), dataItem.getMimeType(),
@@ -3121,7 +3121,7 @@ public class QuickContactActivity extends ContactsActivity
                return true;
            case R.id.menu_delete:
                Logger.logQuickContactEvent(mReferrer, mContactType, CardType.UNKNOWN_CARD,
                        ActionType.DELETE, /* thirdPartyAction */ null);
                        ActionType.REMOVE, /* thirdPartyAction */ null);
                if (isContactEditable()) {
                    deleteContact();
                }