Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Reload webview first init when Atarashii failed to get AL details
Browse files Browse the repository at this point in the history
  • Loading branch information
ratan12 committed Jul 18, 2016
1 parent dd6eb0a commit 4bddffd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Atarashii/src/net/somethingdreadful/MAL/FirstTimeInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ public void onAuthenticationCheckFinished(boolean result) {
finish();
} else {
dialog.dismiss();
if (APIHelper.isNetworkAvailable(this))
if (APIHelper.isNetworkAvailable(this)) {
Theme.Snackbar(this, R.string.toast_error_VerifyProblem);
else
webview.loadUrl(ALApi.getAnilistURL());
} else {
Theme.Snackbar(this, R.string.toast_error_noConnectivity);
}
}
} catch (Exception e) {
Theme.logTaskCrash("FirstTimeInit", "onAuthenticationCheckFinished()", e);
Expand Down

0 comments on commit 4bddffd

Please sign in to comment.