1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-02-05 11:07:36 +01:00

added toast when no account in selector

This commit is contained in:
Mariotaku Lee 2016-04-05 10:42:36 +08:00
parent 27e81f0b39
commit 269138a26a

View File

@ -151,6 +151,9 @@ public class AccountSelectorActivity extends BaseActivity implements
} }
if (mAdapter.getCount() == 1 && shouldSelectOnlyItem()) { if (mAdapter.getCount() == 1 && shouldSelectOnlyItem()) {
selectSingleAccount(0); selectSingleAccount(0);
} else if (mAdapter.isEmpty()) {
Toast.makeText(this, R.string.no_account, Toast.LENGTH_SHORT).show();
finish();
} }
} }