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:
parent
27e81f0b39
commit
269138a26a
@ -151,6 +151,9 @@ public class AccountSelectorActivity extends BaseActivity implements
|
||||
}
|
||||
if (mAdapter.getCount() == 1 && shouldSelectOnlyItem()) {
|
||||
selectSingleAccount(0);
|
||||
} else if (mAdapter.isEmpty()) {
|
||||
Toast.makeText(this, R.string.no_account, Toast.LENGTH_SHORT).show();
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user