Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Dismiss dialog after signing in Dev Auth Backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kunall17 committed Aug 23, 2016
1 parent e9b3926 commit f21827d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ public void onItemClick(String email) {
AsyncLogin asyncLogin = new AsyncLogin(DevAuthActivity.this, email, null, realmName, startedFromAddRealm, serverURL, true);
asyncLogin.execute();
connectionProgressDialog.show();
asyncLogin.setCallback(new ZulipAsyncPushTask.AsyncTaskCompleteListener() {
@Override
public void onTaskComplete(String result, JSONObject jsonObject) {
connectionProgressDialog.dismiss();
}

@Override
public void onTaskFailure(String result) {
connectionProgressDialog.dismiss();
}
});
}
});
recyclerView.setLayoutManager(new LinearLayoutManager(DevAuthActivity.this) {
Expand Down

0 comments on commit f21827d

Please sign in to comment.