Skip to content

Commit

Permalink
check if getMe command was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
andresth committed Aug 13, 2017
1 parent 0c28972 commit c96ccc1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/src/main/java/in/andres/kandroid/ui/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,15 @@ public void onError(KanboardError error) {
private OnGetMeListener getMeListener = new OnGetMeListener() {
@Override
public void onGetMe(boolean success, KanboardUserInfo result) {
Me = result;
if (!showProgress(false)) {
if (mode == 0)
combineDashboard();
else
combineProject();
boolean prog = !showProgress(false);
if (success) {
Me = result;
if (prog) {
if (mode == 0)
combineDashboard();
else
combineProject();
}
}
}
};
Expand Down

0 comments on commit c96ccc1

Please sign in to comment.