Commit e991f2a4 authored by Varun Patil's avatar Varun Patil

Reuse progressDialog if showing

parent 0c07fd6c
......@@ -76,13 +76,12 @@ public class LoginActivity extends AppCompatActivity {
/* Capture redirect */
if (url.startsWith(redirectUri)) {
/* Show progress dialog */
if (progressDialog.isShowing()) {
progressDialog.dismiss();
}
progressDialog.setMessage("Logging In");
progressDialog.setCancelable(false);
progressDialog.setIndeterminate(true);
progressDialog.show();
if (!progressDialog.isShowing()) {
progressDialog.show();
}
/* Get auth code from query */
String query = Uri.parse(url).getQuery();
......
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