Fixed issue with displaying onboarding when user registers with facebook from the login screen

This commit is contained in:
Keith Holliday 2016-07-24 17:33:20 -05:00
parent fdf00b66aa
commit bc0fbc8f78
2 changed files with 11 additions and 1 deletions

View file

@ -363,7 +363,8 @@ public class LoginActivity extends BaseActivity
} catch (Exception e) {
e.printStackTrace();
}
if (this.isRegistering) {
if (this.isRegistering || userAuthResponse.getNewUser()) {
this.startSetupActivity();
} else {
JSONObject eventProperties = new JSONObject();

View file

@ -7,6 +7,7 @@ public class UserAuthResponse {
//we need apiToken and token, as both are possible returns
private String apiToken;
private String token;
private Boolean newUser = false;
private String id;
public String getToken() {
@ -36,4 +37,12 @@ public class UserAuthResponse {
public void setId(String id) {
this.id = id;
}
public Boolean getNewUser() {
return newUser;
}
public void setNewUser(Boolean newUser) {
this.newUser = newUser;
}
}