Commit 5a6cd66d authored by Varun Patil's avatar Varun Patil

Handle errored logins

parent 69e13b31
......@@ -94,6 +94,7 @@ public class LoginActivity extends AppCompatActivity {
Uri query = Uri.parse(data);
authCode = query.getQueryParameter("code");
if (authCode != null) {
/* Show progress dialog */
progressDialog.setMessage("Logging In");
progressDialog.setCancelable(false);
......@@ -101,9 +102,11 @@ public class LoginActivity extends AppCompatActivity {
if (!progressDialog.isShowing()) {
progressDialog.show();
}
/* Perform the login */
login(authCode, redirectUri);
} else {
Toast.makeText(this, "Login Failed!", Toast.LENGTH_SHORT).show();
}
}
// Setup web view placeholder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment