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

Commit e50cd83d authored by Gary Mai's avatar Gary Mai
Browse files

Use generic video icon for tachyon calls

Test: Manually verified video reachable phones use the right colored
generic video icon but will intent the correct method of calling.

Bug: 36874501
Change-Id: I985ac8a4798a92948631793cb78bfb301b6d9115
parent 48ea6852
Loading
Loading
Loading
Loading
+8 −16
Original line number Diff line number Diff line
@@ -1812,15 +1812,7 @@ public class QuickContactActivity extends ContactsActivity {
                            res.getString(R.string.description_video_call);
                } else if (Flags.getInstance().getBoolean(Experiments.QUICK_CONTACT_VIDEO_CALL)
                        && ((PhoneDataItem) dataItem).isTachyonReachable()) {
                    final Intent tachyonIntent = new Intent(Intent.ACTION_VIEW);
                    final Uri uri = ContentUris.withAppendedId(Data.CONTENT_URI,
                            ((PhoneDataItem) dataItem).getReachableDataItem().getId());
                    tachyonIntent.setDataAndType(uri, MIMETYPE_TACHYON);
                    tachyonIntent.putExtra(EXTRA_ACTION_TYPE, ActionType.THIRD_PARTY);
                    tachyonIntent.putExtra(EXTRA_THIRD_PARTY_ACTION, MIMETYPE_TACHYON);
                    thirdIcon = ResolveCache.getInstance(context).getIcon(MIMETYPE_TACHYON,
                            tachyonIntent);
                    shouldApplyThirdIconColor = false;
                    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.setData(