mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-18 03:39:00 +00:00
Fixed issue with displaying onboarding when user registers with facebook from the login screen
This commit is contained in:
parent
fdf00b66aa
commit
bc0fbc8f78
2 changed files with 11 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue