Bimba.git

commit 62b57985d6c036ff48ec92e700676ff422cfc442

Author: Adam <git@apiote.xyz>

add generic vehicle icon

 app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt | 2 +-
 app/src/main/res/drawable/ic_commute_black_24dp.xml | 5 +++++


diff --git a/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt b/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt
index f3f8729221329c304cfa34577e5f0c402b4351de..e03b3e160d1e6d22734b6ac95ae17f80ec9f235d 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt
@@ -262,7 +262,7 @@ 			), Paint().apply { color = colour.toInt() })
 		val iconID = when (type) {
 			LineType.BUS -> R.drawable.ic_bus_black_24dp
 			LineType.TRAM -> R.drawable.ic_tram_black_24dp
-			LineType.UNKNOWN -> R.drawable.ic_square_white_24dp // todo generic vehicle
+			LineType.UNKNOWN -> R.drawable.ic_commute_black_24dp
 		}
 		val icon = AppCompatResources.getDrawable(context, iconID)?.mutate()
 			?.apply {




diff --git a/app/src/main/res/drawable/ic_commute_black_24dp.xml b/app/src/main/res/drawable/ic_commute_black_24dp.xml
new file mode 100644
index 0000000000000000000000000000000000000000..5a564641966c51b347cffdc46b8967bc498796b8
--- /dev/null
+++ b/app/src/main/res/drawable/ic_commute_black_24dp.xml
@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#000000"
+    android:viewportHeight="24" android:viewportWidth="24"
+    android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="@android:color/white" android:pathData="M12,4L5,4C3.34,4 2,5.34 2,7v8c0,1.66 1.34,3 3,3l-1,1v1h1l2,-2.03L9,18v-5L4,13L4,5.98L13,6v2h2L15,7c0,-1.66 -1.34,-3 -3,-3zM5,14c0.55,0 1,0.45 1,1s-0.45,1 -1,1 -1,-0.45 -1,-1 0.45,-1 1,-1zM20.57,9.66c-0.14,-0.4 -0.52,-0.66 -0.97,-0.66h-7.19c-0.46,0 -0.83,0.26 -0.98,0.66L10,13.77l0.01,5.51c0,0.38 0.31,0.72 0.69,0.72h0.62c0.38,0 0.68,-0.38 0.68,-0.76L12,18h8v1.24c0,0.38 0.31,0.76 0.69,0.76h0.61c0.38,0 0.69,-0.34 0.69,-0.72l0.01,-1.37v-4.14l-1.43,-4.11zM12.41,10h7.19l1.03,3h-9.25l1.03,-3zM12,16c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM20,16c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1z"/>
+</vector>