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

Commit baf4ca1b authored by Tom Taylor's avatar Tom Taylor Committed by Android Git Automerger
Browse files

am 246978b8: Add a method to clear info about a contact

Merge commit '246978b8' into eclair-mr2

* commit '246978b8':
  Add a method to clear info about a contact
parents d9f3d60d 246978b8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -408,6 +408,17 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList
                PHONE_LOOKUP_PROJECTION, null, null, null);
    }

    /**
     * Method to force this widget to forget everything it knows about the contact.
     * The widget isn't automatically updated or redrawn.
     *
     */
    public void wipeClean() {
        setPhoto(null);
        mContactUri = null;
        mExcludeMimes = null;
    }

    private void startContactQuery(Uri contactUri) {
        mQueryHandler.startQuery(TOKEN_CONTACT_INFO, null, contactUri, ContactQuery.COLUMNS,
                null, null, null);