forked from upstream-mirrors/OpenTracks
Use logo (white) for generic track (replaces similar a png with gradient).
This commit is contained in:
@@ -191,7 +191,7 @@ public class ChartView extends View {
|
||||
markerPaint.setColor(context.getResources().getColor(android.R.color.darker_gray));
|
||||
markerPaint.setAntiAlias(false);
|
||||
|
||||
pointer = context.getResources().getDrawable(R.drawable.ic_logo);
|
||||
pointer = context.getResources().getDrawable(R.drawable.ic_logo_color_24dp);
|
||||
pointer.setBounds(0, 0, pointer.getIntrinsicWidth(), pointer.getIntrinsicHeight());
|
||||
|
||||
Drawable statisticsMarker = getResources().getDrawable(R.drawable.ic_marker_yellow_pushpin);
|
||||
|
||||
@@ -425,7 +425,7 @@ public class TrackRecordingService extends Service {
|
||||
.setContentText(getString(messageId))
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setOngoing(true)
|
||||
.setSmallIcon(R.drawable.ic_logo)
|
||||
.setSmallIcon(R.drawable.ic_logo_color_24dp)
|
||||
.setCategory(Notification.CATEGORY_SERVICE)
|
||||
.setWhen(System.currentTimeMillis());
|
||||
startForeground(1, builder.build());
|
||||
|
||||
@@ -79,10 +79,10 @@ public class TrackIconUtils {
|
||||
*/
|
||||
public static int getIconDrawable(String iconValue) {
|
||||
if (iconValue == null || iconValue.equals("")) {
|
||||
return R.drawable.ic_track_generic;
|
||||
return R.drawable.ic_logo_24dp;
|
||||
}
|
||||
Pair<Integer, Integer> pair = MAP.get(iconValue);
|
||||
return pair == null ? R.drawable.ic_track_generic : pair.second;
|
||||
return pair == null ? R.drawable.ic_logo_24dp : pair.second;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user