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

Commit 064357bb authored by android-build-team Robot's avatar android-build-team Robot
Browse files

release-request-319cd093-b0d8-4b32-b6ef-e921d10edf73-for-git_oc-dr1-release-40...

release-request-319cd093-b0d8-4b32-b6ef-e921d10edf73-for-git_oc-dr1-release-4012016 snap-temp-L54300000064339674

Change-Id: I8d13278fd7a42f172dca15eceefc91cb9a54f5fc
parents 53bc848d d471fa67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@
    <string name="name_suffix" msgid="3855278445375651441">"敬称(名前の後)"</string>
    <string name="name_phonetic" msgid="4259595234312430484">"よみがな"</string>
    <string name="name_phonetic_given" msgid="8723179018384187631">"フリガナ(名)"</string>
    <string name="name_phonetic_middle" msgid="8643721493320405200">"ミドルネームのよみがな"</string>
    <string name="name_phonetic_middle" msgid="8643721493320405200">"フリガナ(ミドルネーム"</string>
    <string name="name_phonetic_family" msgid="2640133663656011626">"フリガナ(姓)"</string>
    <string name="phoneLabelsGroup" msgid="6468091477851199285">"電話番号"</string>
    <string name="emailLabelsGroup" msgid="8389931313045344406">"メール"</string>
+20 −10
Original line number Diff line number Diff line
@@ -250,6 +250,8 @@ public class QuickContactActivity extends ContactsActivity {

    public static final String MIMETYPE_TACHYON =
            "vnd.android.cursor.item/com.google.android.apps.tachyon.phone";
    private static final String TACHYON_CALL_ACTION =
            "com.google.android.apps.tachyon.action.CALL";
    private static final String MIMETYPE_GPLUS_PROFILE =
            "vnd.android.cursor.item/vnd.googleplus.profile";
    private static final String GPLUS_PROFILE_DATA_5_VIEW_PROFILE = "view";
@@ -443,7 +445,13 @@ public class QuickContactActivity extends ContactsActivity {
                final String thirdPartyAction = intent.getStringExtra(EXTRA_THIRD_PARTY_ACTION);
                Logger.logQuickContactEvent(mReferrer, mContactType,
                        CardType.UNKNOWN_CARD, actionType, thirdPartyAction);
                ImplicitIntentsUtil.startActivityInAppIfPossible(QuickContactActivity.this, intent);
                // For the tachyon call action, we need to use startActivityForResult.
                if (TACHYON_CALL_ACTION.equals(intent.getAction())) {
                    QuickContactActivity.this.startActivityForResult(intent, /* requestCode */ 0);
                } else {
                    ImplicitIntentsUtil.startActivityInAppIfPossible(QuickContactActivity.this,
                            intent);
                }
            } catch (SecurityException ex) {
                Toast.makeText(QuickContactActivity.this, R.string.missing_app,
                        Toast.LENGTH_SHORT).show();
@@ -1457,6 +1465,7 @@ public class QuickContactActivity extends ContactsActivity {
                final String mimeType = dataItem.getMimeType();
                if (mimeType == null) continue;

                if (!MIMETYPE_TACHYON.equals(mimeType)) {
                    final AccountType accountType = rawContact.getAccountType(this);
                    final DataKind dataKind = AccountTypeManager.getInstance(this)
                            .getKindOrFallback(accountType, mimeType);
@@ -1468,6 +1477,7 @@ public class QuickContactActivity extends ContactsActivity {
                            dataKind));

                    if (isMimeExcluded(mimeType) || !hasData) continue;
                }

                List<DataItem> dataItemListByType = dataItemsMap.get(mimeType);
                if (dataItemListByType == null) {
@@ -1814,7 +1824,7 @@ public class QuickContactActivity extends ContactsActivity {
                        && ((PhoneDataItem) dataItem).isTachyonReachable()) {
                    thirdIcon = res.getDrawable(R.drawable.quantum_ic_videocam_vd_theme_24);
                    thirdAction = Entry.ACTION_INTENT;
                    thirdIntent = new Intent("com.google.android.apps.tachyon.action.CALL");
                    thirdIntent = new Intent(TACHYON_CALL_ACTION);
                    thirdIntent.setData(
                            Uri.fromParts(PhoneAccount.SCHEME_TEL, phone.getNumber(), null));
                    thirdContentDescription = ((PhoneDataItem) dataItem).getReachableDataItem()