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

Commit 62ee470a authored by Kelly Ng's avatar Kelly Ng Committed by Automerger Merge Worker
Browse files

Show account selection dialog when a single account exists. am: fd931e48

parents 2ec75b47 fd931e48
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());