|
@ -605,10 +605,12 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe |
|
|
} |
|
|
} |
|
|
if (TextUtils.isEmpty(usernameTemp)) { |
|
|
if (TextUtils.isEmpty(usernameTemp)) { |
|
|
profileModel = appStateViewModel.getCurrentUser(); |
|
|
profileModel = appStateViewModel.getCurrentUser(); |
|
|
|
|
|
if (profileModel != null) { |
|
|
username = profileModel.getUsername(); |
|
|
username = profileModel.getUsername(); |
|
|
setUsernameDelayed(); |
|
|
setUsernameDelayed(); |
|
|
setProfileDetails(); |
|
|
setProfileDetails(); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
else if (isLoggedIn) { |
|
|
else if (isLoggedIn) { |
|
|
userService.getUsernameInfo(usernameTemp, new ServiceCallback<User>() { |
|
|
userService.getUsernameInfo(usernameTemp, new ServiceCallback<User>() { |
|
|
@Override |
|
|
@Override |
|
|