mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add check for null dialog
This commit is contained in:
parent
b081e1206f
commit
8617347927
1 changed files with 4 additions and 1 deletions
|
|
@ -69,7 +69,10 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
|||
.log();
|
||||
|
||||
if (result.equals("Success")) {
|
||||
dialog.dismiss();
|
||||
//dialog.dismiss();
|
||||
if (dialog != null && dialog.isShowing()) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
Toast successToast = Toast.makeText(context, R.string.login_success, Toast.LENGTH_SHORT);
|
||||
successToast.show();
|
||||
Account account = new Account(username, WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue