forked from upstream-mirrors/OpenTracks
add generic track activity icon
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -100,10 +100,10 @@ public class TrackIconUtils {
|
|||||||
*/
|
*/
|
||||||
public static int getIconDrawable(String iconValue) {
|
public static int getIconDrawable(String iconValue) {
|
||||||
if (iconValue == null || iconValue.equals("")) {
|
if (iconValue == null || iconValue.equals("")) {
|
||||||
return R.drawable.ic_track_walk;
|
return R.drawable.ic_track_generic;
|
||||||
}
|
}
|
||||||
Pair<Integer, Integer> pair = map.get(iconValue);
|
Pair<Integer, Integer> pair = map.get(iconValue);
|
||||||
return pair == null ? R.drawable.ic_track_walk : pair.second;
|
return pair == null ? R.drawable.ic_track_generic : pair.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user