Skip to content

Commit

Permalink
Add brand specific icons for the Vehicle Info app (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
superwofy authored Jul 29, 2024
1 parent 5cafcfc commit 4b4e58a
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 3 deletions.
118 changes: 118 additions & 0 deletions app/src/main/assets/drawable/carinfo_common.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ class ReadoutApp(val iDriveConnectionStatus: IDriveConnectionStatus, val securit
fun createAmApp() {
val name = L.CARINFO_TITLE
val carAppImage = try {
Utils.convertPngToGrayscale(resources.openRawResource(R.drawable.ic_carinfo).readBytes())
if (iDriveConnectionStatus.brand == "mini") {
Utils.convertPngToGrayscale(resources.openRawResource(R.drawable.ic_carinfo_mini).readBytes())
} else {
Utils.convertPngToGrayscale(resources.openRawResource(R.drawable.ic_carinfo_common).readBytes())
}
} catch (e: NotFoundException) { "" }

val amInfo = mutableMapOf<Int, Any>(
Expand Down
Binary file added app/src/main/res/drawable/ic_carinfo_common.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 4b4e58a

Please sign in to comment.