Skip to content

Commit

Permalink
✨ Add product type for taxi (#323)
Browse files Browse the repository at this point in the history
fixes #322
  • Loading branch information
jheubuch authored Feb 7, 2024
1 parent b092555 commit 4625a36
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ enum class ProductType {
override fun getIcon() = R.drawable.ic_ferry
override fun getString() = R.string.product_type_ferry
},
@SerializedName("taxi")
TAXI {
override fun getIcon() = R.drawable.ic_taxi
},
@SerializedName("bus")
BUS {
override fun getIcon() = R.drawable.ic_bus
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_taxi.xml
Original file line number Diff line number Diff line change
@@ -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="M18.92,6.01C18.72,5.42 18.16,5 17.5,5L15,5L15,3L9,3v2L6.5,5c-0.66,0 -1.21,0.42 -1.42,1.01L3,12v8c0,0.55 0.45,1 1,1h1c0.55,0 1,-0.45 1,-1v-1h12v1c0,0.55 0.45,1 1,1h1c0.55,0 1,-0.45 1,-1v-8l-2.08,-5.99zM6.5,16c-0.83,0 -1.5,-0.67 -1.5,-1.5S5.67,13 6.5,13s1.5,0.67 1.5,1.5S7.33,16 6.5,16zM17.5,16c-0.83,0 -1.5,-0.67 -1.5,-1.5s0.67,-1.5 1.5,-1.5 1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5zM5,11l1.5,-4.5h11L19,11L5,11z"/>
</vector>
1 change: 1 addition & 0 deletions app/src/main/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<string name="product_type_subway">U-Bahn</string>
<string name="product_type_tram">Tram</string>
<string name="product_type_ferry">Schiff</string>
<string name="product_type_taxi">Taxi</string>
<string name="product_type_regional_express">Interregio</string>
<string name="product_type_national_express">Fernverkehr (ICE/ECE)</string>
<string name="product_type_national">Fernverkehr (IC/EC)</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<string name="product_type_subway">Subway</string>
<string name="product_type_tram">Tram</string>
<string name="product_type_ferry">Ferry</string>
<string name="product_type_taxi">Taxi</string>
<string name="product_type_regional_express">Regional express</string>
<string name="product_type_national_express">National express</string>
<string name="product_type_national">Regional express</string>
Expand Down

0 comments on commit 4625a36

Please sign in to comment.