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

Commit bbc692cd authored by Adnan's avatar Adnan
Browse files

Contacts: Remove ability to star local profile in quickcontact.

  Since the default behavior is that the local profile cannot be
  starred within the ContactDetailFragment, this should also
  extend to the QuickContactActivity.

Change-Id: Ib3803328161bf547730a609e407c46ec5c5b7b26
parent 26e3e544
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -389,8 +389,9 @@ public class QuickContactActivity extends Activity {
        }
        final Uri lookupUri = data.getLookupUri();

        // If this is a json encoded URI, there is no local contact to star
        if (UriUtils.isEncodedContactUri(lookupUri)) {
        // If this is a json encoded URI or it is the user profile
        // there is no local contact to star
        if (UriUtils.isEncodedContactUri(lookupUri) || mContactData.isUserProfile()) {
            mStarImage.setVisibility(View.GONE);

            // If directory export support is not allowed, then don't allow the user to add