diff options
Diffstat (limited to 'src/github/daneren2005/dsub/view/SongView.java')
-rw-r--r-- | src/github/daneren2005/dsub/view/SongView.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java index 8d986090..73efc9b9 100644 --- a/src/github/daneren2005/dsub/view/SongView.java +++ b/src/github/daneren2005/dsub/view/SongView.java @@ -66,8 +66,6 @@ public class SongView extends UpdateView implements Checkable { private boolean loaded = false; private boolean isBookmarked = false; private boolean bookmarked = false; - private int isRated = 0; - private int rating = 0; public SongView(Context context) { super(context); @@ -260,10 +258,7 @@ public class SongView extends UpdateView implements Checkable { if(isRated != rating) { // Color the entire row based on rating - if(isRated > 3) { - this.setBackgroundColor(Color.GREEN); - this.getBackground().setAlpha(5 * (isRated - 3)); - } else if(isRated < 3 && isRated > 0) { + if(isRated < 3 && isRated > 0) { this.setBackgroundColor(Color.RED); // Use darker colors the lower the rating goes this.getBackground().setAlpha(10 * (3 - isRated)); |