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

Commit a91e74a3 authored by Katherine Kuan's avatar Katherine Kuan Committed by Android (Google) Code Review
Browse files

Merge "Fix for contact deletion on tablet" into ics-mr1

parents 8f63a1b9 db90ba16
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -142,12 +142,13 @@ public abstract class ContactBrowseListFragment extends
        @Override
        protected void onPostExecute(Uri uri) {
            // Make sure the {@link Fragment} is at least still attached to the {@link Activity}
            // before continuing.
            if (mIsCancelled || !isAdded() || uri == null) {
            // before continuing. Null URIs should still be allowed so that the list can be
            // refreshed and a default contact can be selected (i.e. the case of deleted
            // contacts).
            if (mIsCancelled || !isAdded()) {
                return;
            }
            mSelectedContactUri = uri;
            onContactUriQueryFinished(mSelectedContactUri);
            onContactUriQueryFinished(uri);
        }
    }