Fix icons
This commit is contained in:
parent
44baab2109
commit
4d0107bd74
99 changed files with 999 additions and 789 deletions
|
@ -16,11 +16,33 @@ package code.name.monkey.retromusic.model;
|
|||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import code.name.monkey.retromusic.R;
|
||||
|
||||
|
||||
public class CategoryInfo implements Parcelable {
|
||||
|
||||
public enum Category {
|
||||
HOME(R.id.action_home, R.string.home, R.drawable.ic_home_white_24dp),
|
||||
SONGS(R.id.action_song, R.string.songs, R.drawable.ic_audiotrack_white_24dp),
|
||||
ALBUMS(R.id.action_album, R.string.albums, R.drawable.ic_album_white_24dp),
|
||||
ARTISTS(R.id.action_artist, R.string.artists, R.drawable.ic_artist_white_24dp),
|
||||
PLAYLISTS(R.id.action_playlist, R.string.playlists, R.drawable.ic_playlist_play_white_24dp),
|
||||
GENRES(R.id.action_genre, R.string.genres, R.drawable.ic_guitar_white_24dp),
|
||||
QUEUE(R.id.action_playing_queue, R.string.queue, R.drawable.ic_queue_music_white_24dp);
|
||||
|
||||
public final int icon;
|
||||
|
||||
public final int id;
|
||||
|
||||
public final int stringRes;
|
||||
|
||||
Category(int id, int stringRes, int icon) {
|
||||
this.stringRes = stringRes;
|
||||
this.id = id;
|
||||
this.icon = icon;
|
||||
}
|
||||
}
|
||||
|
||||
public static final Creator<CategoryInfo> CREATOR = new Creator<CategoryInfo>() {
|
||||
public CategoryInfo createFromParcel(Parcel source) {
|
||||
return new CategoryInfo(source);
|
||||
|
@ -30,15 +52,17 @@ public class CategoryInfo implements Parcelable {
|
|||
return new CategoryInfo[size];
|
||||
}
|
||||
};
|
||||
|
||||
public Category category;
|
||||
|
||||
public boolean visible;
|
||||
|
||||
|
||||
public CategoryInfo(Category category, boolean visible) {
|
||||
this.category = category;
|
||||
this.visible = visible;
|
||||
}
|
||||
|
||||
|
||||
private CategoryInfo(Parcel source) {
|
||||
category = (Category) source.readSerializable();
|
||||
visible = source.readInt() == 1;
|
||||
|
@ -53,24 +77,4 @@ public class CategoryInfo implements Parcelable {
|
|||
dest.writeSerializable(category);
|
||||
dest.writeInt(visible ? 1 : 0);
|
||||
}
|
||||
|
||||
public enum Category {
|
||||
HOME(R.id.action_home, R.string.home, R.drawable.toggle_home),
|
||||
SONGS(R.id.action_song, R.string.songs, R.drawable.toggle_audiotrack),
|
||||
ALBUMS(R.id.action_album, R.string.albums, R.drawable.toggle_album),
|
||||
ARTISTS(R.id.action_artist, R.string.artists, R.drawable.toggle_artist),
|
||||
PLAYLISTS(R.id.action_playlist, R.string.playlists, R.drawable.toggle_playlist),
|
||||
GENRES(R.id.action_genre, R.string.genres, R.drawable.toggle_guitar),
|
||||
QUEUE(R.id.action_playing_queue, R.string.queue, R.drawable.toggle_queue_music);
|
||||
|
||||
public final int stringRes;
|
||||
public final int id;
|
||||
public final int icon;
|
||||
|
||||
Category(int id, int stringRes, int icon) {
|
||||
this.stringRes = stringRes;
|
||||
this.id = id;
|
||||
this.icon = icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue