Add app shortcut icons
|
|
@ -22,7 +22,7 @@ public final class LastAddedShortcutType extends BaseShortcutType {
|
||||||
return new ShortcutInfo.Builder(mContext, ID_PREFIX + "last_added")
|
return new ShortcutInfo.Builder(mContext, ID_PREFIX + "last_added")
|
||||||
.setShortLabel(mContext.getString(R.string.appshortcut_lastadded_short))
|
.setShortLabel(mContext.getString(R.string.appshortcut_lastadded_short))
|
||||||
.setLongLabel(mContext.getString(R.string.appshortcut_lastadded_long))
|
.setLongLabel(mContext.getString(R.string.appshortcut_lastadded_long))
|
||||||
.setIcon(Icon.createWithResource(mContext, R.drawable.ic_library_add_white_24dp))
|
.setIcon(Icon.createWithResource(mContext, R.drawable.ic_app_shortcut_last_added))
|
||||||
.setIntent(getPlaySongsIntent(AppShortcutLauncherActivity.ShortcutType.LAST_ADDED))
|
.setIntent(getPlaySongsIntent(AppShortcutLauncherActivity.ShortcutType.LAST_ADDED))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ public final class ShuffleAllShortcutType extends BaseShortcutType {
|
||||||
return new ShortcutInfo.Builder(mContext, ID_PREFIX + "shuffle_all")
|
return new ShortcutInfo.Builder(mContext, ID_PREFIX + "shuffle_all")
|
||||||
.setShortLabel(mContext.getString(R.string.appshortcut_shuffleall_short))
|
.setShortLabel(mContext.getString(R.string.appshortcut_shuffleall_short))
|
||||||
.setLongLabel(mContext.getString(R.string.appshortcut_shuffleall_long))
|
.setLongLabel(mContext.getString(R.string.appshortcut_shuffleall_long))
|
||||||
.setIcon(Icon.createWithResource(mContext, R.drawable.ic_shuffle_white_24dp))
|
.setIcon(Icon.createWithResource(mContext, R.drawable.ic_app_shortcut_shuffle_all))
|
||||||
.setIntent(getPlaySongsIntent(AppShortcutLauncherActivity.ShortcutType.SHUFFLE_ALL))
|
.setIntent(getPlaySongsIntent(AppShortcutLauncherActivity.ShortcutType.SHUFFLE_ALL))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ public final class TopTracksShortcutType extends BaseShortcutType {
|
||||||
return new ShortcutInfo.Builder(mContext, ID_PREFIX + "top_tracks")
|
return new ShortcutInfo.Builder(mContext, ID_PREFIX + "top_tracks")
|
||||||
.setShortLabel(mContext.getString(R.string.appshortcut_toptracks_short))
|
.setShortLabel(mContext.getString(R.string.appshortcut_toptracks_short))
|
||||||
.setLongLabel(mContext.getString(R.string.appshortcut_toptracks_long))
|
.setLongLabel(mContext.getString(R.string.appshortcut_toptracks_long))
|
||||||
.setIcon(Icon.createWithResource(mContext, R.drawable.ic_trending_up_white_24dp))
|
.setIcon(Icon.createWithResource(mContext, R.drawable.ic_app_shortcut_top_tracks))
|
||||||
.setIntent(getPlaySongsIntent(AppShortcutLauncherActivity.ShortcutType.TOP_TRACKS))
|
.setIntent(getPlaySongsIntent(AppShortcutLauncherActivity.ShortcutType.TOP_TRACKS))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
app/src/main/res/drawable-hdpi/ic_app_shortcut_last_added.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-hdpi/ic_app_shortcut_shuffle_all.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-hdpi/ic_app_shortcut_top_tracks.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-ldpi/ic_app_shortcut_last_added.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-ldpi/ic_app_shortcut_shuffle_all.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-ldpi/ic_app_shortcut_top_tracks.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_app_shortcut_last_added.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_app_shortcut_shuffle_all.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_app_shortcut_top_tracks.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_app_shortcut_last_added.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_app_shortcut_shuffle_all.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_app_shortcut_top_tracks.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_app_shortcut_last_added.png
Normal file
|
After Width: | Height: | Size: 2 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_app_shortcut_shuffle_all.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_app_shortcut_top_tracks.png
Normal file
|
After Width: | Height: | Size: 2 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_app_shortcut_last_added.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_app_shortcut_top_tracks.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |