Skip to content

Commit

Permalink
Fix favorite button in 0.13.z
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed May 9, 2022
1 parent f97db46 commit 0501109
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.PopupMenu;
Expand Down Expand Up @@ -622,7 +623,7 @@ public void onClick(final View v) {
@Override
public void onResponse(UserItemDataDto response) {
mBaseItem.setUserData(response);
((TextUnderButton)v).setImageResource(response.getIsFavorite() ? R.drawable.ic_heart_red : R.drawable.ic_heart);
((ImageButton)v).setImageResource(response.getIsFavorite() ? R.drawable.ic_heart_red : R.drawable.ic_heart);
dataRefreshService.getValue().setLastFavoriteUpdate(System.currentTimeMillis());
}
});
Expand Down

0 comments on commit 0501109

Please sign in to comment.