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

Unverified Commit b4597b4f authored by LuK1337's avatar LuK1337 Committed by Michael Bestas
Browse files

Contacts: Pass correct account for `cancel` action

Test: On device without GMS, open contacts, click `+` and press cancel
      then repeat, notice that with this change, the dialog informing
      you about Google backup doesn't show up anymore.
Change-Id: I577d9c2aea88dffa56ec5c11b2b827c6c31efd84
parent 0bcea941
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -190,7 +190,8 @@ public class ContactEditorAccountsChangedActivity extends Activity
                public void onClick(View v) {
                public void onClick(View v) {
                    // Remember that the user wants to create local contacts, so the user is not
                    // Remember that the user wants to create local contacts, so the user is not
                    // prompted again with this activity.
                    // prompted again with this activity.
                    saveAccountAndReturnResult(AccountWithDataSet.getNullAccount());
                    saveAccountAndReturnResult(AccountWithDataSet.getLocalAccount(
                            ContactEditorAccountsChangedActivity.this));
                    finish();
                    finish();
                }
                }
            });
            });