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

Commit c00a0b53 authored by Zheng Fu's avatar Zheng Fu
Browse files

Fix star/unstar on empty contacts by stopping caching them

Bug:17157218
Change-Id: I7c43755b415125c42f14bc1faf21aed64fd34d4d
parent 9bb1a80e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1819,13 +1819,13 @@ public class QuickContactActivity extends ContactsActivity {

    private Intent getEditContactIntent() {
        final Intent intent = new Intent(Intent.ACTION_EDIT, mContactData.getLookupUri());
        mContactLoader.cacheResult();
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
        return intent;
    }

    private void editContact() {
        mHasIntentLaunched = true;
        mContactLoader.cacheResult();
        startActivityForResult(getEditContactIntent(), REQUEST_CODE_CONTACT_EDITOR_ACTIVITY);
    }