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 6, 2016
1 parent f507de6 commit 4b4de40
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.zulip.android.R;
import com.zulip.android.networking.AsyncDevGetEmails;
import com.zulip.android.networking.AsyncLogin;
import com.zulip.android.networking.ZulipAsyncPushTask;
import com.zulip.android.util.AuthClickListener;
import com.zulip.android.util.ZLog;

Expand Down Expand Up @@ -61,6 +62,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 4b4de40

Please sign in to comment.