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

Commit 033cd75d authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

QuickSettings: UserTile: Open full contact page

QuickContact popup can only be used for phoning/messaging/emailing,
which doesn't make sense when you're opening your own contact.

Opening the full contact directly makes it easier to beam or share
with other (one less click)

Change-Id: I6b6002fd7ecccaf16f1e410c0c863989bf877711
parent ffeb56c9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -51,10 +51,8 @@ public class UserTile extends QuickSettingsTile {
                        Log.e(TAG, "Couldn't show user switcher", e);
                    }
                } else {
                    Intent intent = ContactsContract.QuickContact.composeQuickContactsIntent(
                            mContext, v, ContactsContract.Profile.CONTENT_URI,
                            ContactsContract.QuickContact.MODE_LARGE, null);
                    mContext.startActivityAsUser(intent, new UserHandle(UserHandle.USER_CURRENT));
                    Intent intent = new Intent(Intent.ACTION_VIEW, ContactsContract.Profile.CONTENT_URI);
                    startSettingsActivity(intent);
                }
            }
        };