Use logo (white) for generic track (replaces similar a png with gradient).

This commit is contained in:
Dennis Guse
2019-09-13 22:48:45 +02:00
parent 7f4d47d7b5
commit e610b70590
10 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ limitations under the License.
android:name=".Startup"
android:allowBackup="false"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_logo"
android:icon="@drawable/ic_logo_color_24dp"
android:label="@string/app_name"
android:theme="@style/ThemeCustom">
@@ -133,7 +133,7 @@ limitations under the License.
android:name=".services.TrackRecordingService"
android:enabled="true"
android:exported="false"
android:icon="@drawable/ic_logo"
android:icon="@drawable/ic_logo_color_24dp"
android:label="@string/recording_service" />
</application>
<supports-screens
@@ -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;
}
/**
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

+9
View File
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="100"
android:viewportHeight="100">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M82.489,12.834C83.196,10.418 82.043,9.556 79.926,10.917L10.087,55.828c-2.117,1.361 -1.795,2.628 0.714,2.815L39.806,60.807c2.51,0.188 5.291,2.267 6.18,4.621l10.282,27.208c0.89,2.354 2.195,2.304 2.902,-0.111z" />
</vector>
+1 -1
View File
@@ -9,7 +9,7 @@
android:layout_width="match_parent"
android:layout_height="239dp"
android:scaleType="fitCenter"
android:src="@drawable/ic_logo" />
android:src="@drawable/ic_logo_color_24dp" />
<TextView
style="@style/TextLarge"