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

Commit 917e9b24 authored by blong's avatar blong Committed by Linux Build Service Account
Browse files

Fix no remove photo function for profile

- Correct the account type judge which cause profile contacts
  as multi contacts and hide the remove photo item

Change-Id: I2b8891402ec45260728842e73e69ad715b45b461
CRs-Fixed: 1055340
parent e7c126c8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1296,7 +1296,9 @@ abstract public class ContactEditorBaseFragment extends Fragment implements
                // For profile contacts, we need a different query URI
                rawContactDelta.setProfileQueryUri();
                // Try to find a local profile contact
                if (rawContactDelta.getValues().getAsString(RawContacts.ACCOUNT_TYPE) == null) {
                if (rawContactDelta.getValues().getAsString(RawContacts.ACCOUNT_TYPE) == null
                        || rawContactDelta.getValues().getAsString(RawContacts.ACCOUNT_TYPE)
                            .equals(SimContactsConstants.ACCOUNT_TYPE_PHONE)) {
                    localProfileExists = true;
                }
            }