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 16, 2016
1 parent 354191b commit 58ec138
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,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 58ec138

Please sign in to comment.