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

Unverified Commit a184e27c authored by Michael Bestas's avatar Michael Bestas
Browse files

Merge branch 'android16-security-release' of...

Merge branch 'android16-security-release' of https://android.googlesource.com/platform/packages/apps/Contacts into lineage-23.0

* 'android16-security-release' of https://android.googlesource.com/platform/packages/apps/Contacts:
  Show account selection dialog when a single account exists.

Change-Id: I1e5f7601ef5b30301a371edb712dd41e6a8a86dd
parents 48ca04e2 1dc140c0
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -65,15 +65,6 @@ public class SelectAccountActivity extends Activity {
            Log.w(LOG_TAG, "Account does not exist");
            finish();
            return;
        } else if (accountList.size() == 1) {
            final AccountWithDataSet account = accountList.get(0);
            final Intent intent = new Intent();
            intent.putExtra(ACCOUNT_NAME, account.name);
            intent.putExtra(ACCOUNT_TYPE, account.type);
            intent.putExtra(DATA_SET, account.dataSet);
            setResult(RESULT_OK, intent);
            finish();
            return;
        }

        Log.i(LOG_TAG, "The number of available accounts: " + accountList.size());