Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
user was changing after opening some different user page
  • Loading branch information
Vlad committed Nov 21, 2016
1 parent 1096853 commit c2f660e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/android/project/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public int hashCode() {
@Override
public String toString() {
return "User{" +
", username='" + username + '\'' +
"username='" + username + '\'' +
", password='" + password + '\'' +
", avatar='" + avatar + '\'' +
", background='" + background + '\'' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public HomeWallPresenterImpl(RequestService requestService, DatabaseManager data

@Override
public void loadLastRecords(String requestedUsername, String targetUsername) {
Log.i(TAG, "loadLastRecords: requestedUsername - " + requestedUsername);
Log.i(TAG, "loadLastRecords: requestedUsername - " + requestedUsername + " targetUsername - " + targetUsername);

Subscription subscription =
mRequestService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public void showUserInfo(User user) {

@Override
public void updateAvatar(User user) {
WhichOneApp.createUserComponent(user);

Glide.with(this)
.load(ImageManager.IMAGE_URL + user.getAvatar())
.asBitmap()
Expand All @@ -86,8 +84,6 @@ public void updateAvatar(User user) {

@Override
public void updateBackground(User user) {
WhichOneApp.createUserComponent(user);

Glide.with(this)
.load(ImageManager.IMAGE_URL + user.getBackground())
.placeholder(R.mipmap.ic_background)
Expand Down

0 comments on commit c2f660e

Please sign in to comment.