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

Commit 8d0c7cd9 authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 2ee9e11b: Merge "Fix crash when starring the user\'s profile" into klp-dev

* commit '2ee9e11b':
  Fix crash when starring the user's profile
parents 897879a4 2ee9e11b
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -819,10 +819,14 @@ public class ContactSaveService extends IntentService {
        try {
            if (c.moveToFirst()) {
                final long id = c.getLong(0);

                // Don't bother undemoting if this contact is the user's profile.
                if (id < Profile.MIN_ID) {
                    values.clear();
                    values.put(String.valueOf(id), PinnedPositions.UNDEMOTE);
                    getContentResolver().update(PinnedPositions.UPDATE_URI, values, null, null);
                }
            }
        } finally {
            c.close();
        }