Merge pull request #582 from TheHollidayInn/facebook-register-from-login-page-fix

Fixed issue with displaying onboarding when user registers with facebook from the login screen
This commit is contained in:
Phillip Thelen 2016-09-02 19:26:35 +02:00 committed by GitHub
commit be96d29c98
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;
}
}