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

Commit 1dc140c0 authored by Kelly Ng's avatar Kelly Ng Committed by Cherrypicker Worker
Browse files

Show account selection dialog when a single account exists.

- Recommended fix by security team to prevent auto-importing when there is a single account (see b/388032224#comment4)

FIX: 388032224
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:615666035723ff1828ff24674209012f30082de9)
Merged-In: I83f046c24d45e076aa783e5551b42dcbaacd0ad6
Change-Id: I83f046c24d45e076aa783e5551b42dcbaacd0ad6
parent 7f98a802
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());