Convert drawables to vectors
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
|
@ -61,7 +61,7 @@ public class SongView extends UpdateView implements Checkable
|
|||
private static final String TAG = SongView.class.getSimpleName();
|
||||
private static Drawable starHollowDrawable;
|
||||
private static Drawable starDrawable;
|
||||
private static Drawable unpinImage;
|
||||
private static Drawable pinImage;
|
||||
private static Drawable downloadedImage;
|
||||
private static Drawable downloadingImage;
|
||||
private static Drawable playingImage;
|
||||
|
@ -108,9 +108,9 @@ public class SongView extends UpdateView implements Checkable
|
|||
starDrawable = Util.getDrawableFromAttribute(context, R.attr.star_full);
|
||||
}
|
||||
|
||||
if (unpinImage == null || !themesMatch)
|
||||
if (pinImage == null || !themesMatch)
|
||||
{
|
||||
unpinImage = Util.getDrawableFromAttribute(context, R.attr.unpin);
|
||||
pinImage = Util.getDrawableFromAttribute(context, R.attr.pin);
|
||||
}
|
||||
|
||||
if (downloadedImage == null || !themesMatch)
|
||||
|
@ -323,11 +323,11 @@ public class SongView extends UpdateView implements Checkable
|
|||
|
||||
if (downloadFile.isWorkDone())
|
||||
{
|
||||
ImageType newLeftImageType = downloadFile.isSaved() ? ImageType.unpin : ImageType.downloaded;
|
||||
ImageType newLeftImageType = downloadFile.isSaved() ? ImageType.pin : ImageType.downloaded;
|
||||
|
||||
if (this.leftImageType != newLeftImageType)
|
||||
{
|
||||
this.leftImage = downloadFile.isSaved() ? unpinImage : downloadedImage;
|
||||
this.leftImage = downloadFile.isSaved() ? pinImage : downloadedImage;
|
||||
this.leftImageType = newLeftImageType;
|
||||
}
|
||||
}
|
||||
|
@ -469,7 +469,7 @@ public class SongView extends UpdateView implements Checkable
|
|||
public enum ImageType
|
||||
{
|
||||
none,
|
||||
unpin,
|
||||
pin,
|
||||
downloaded,
|
||||
downloading
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 725 B |
Before Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 609 B |
Before Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 687 B |
Before Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 428 B |
Before Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 625 B |
Before Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 455 B |
Before Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 846 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 762 B |
Before Width: | Height: | Size: 719 B |
Before Width: | Height: | Size: 569 B |
Before Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 899 B |
Before Width: | Height: | Size: 857 B |
Before Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 548 B |
Before Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 599 B |
Before Width: | Height: | Size: 668 B |
Before Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 917 B |
Before Width: | Height: | Size: 888 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 673 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 791 B |
Before Width: | Height: | Size: 768 B |
Before Width: | Height: | Size: 815 B |
Before Width: | Height: | Size: 772 B |
Before Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.4 KiB |