Skip to content

Commit 2b4c082

Browse files
committed
remove unused Chargeprice icons
1 parent 8e9d9d1 commit 2b4c082

9 files changed

Lines changed: 1 addition & 217 deletions

File tree

app/src/main/java/net/vonforst/evmap/auto/ChargerDetailScreen.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,6 @@ class ChargerDetailScreen(
141141
if (ChargepriceApi.isChargerSupported(charger)) {
142142
addAction(
143143
Action.Builder()
144-
.setIcon(
145-
CarIcon.Builder(
146-
IconCompat.createWithResource(
147-
carContext,
148-
R.drawable.ic_chargeprice
149-
)
150-
).build()
151-
)
152144
.setTitle(carContext.getString(R.string.auto_prices))
153145
.setOnClickListener {
154146
if (!prefs.chargepriceRemoval2025DialogShown) {

app/src/main/java/net/vonforst/evmap/ui/BindingAdapters.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -254,19 +254,6 @@ fun setChargepriceTagColor(view: TextView, kind: String) {
254254
)
255255
}
256256

257-
@BindingAdapter("chargepriceTagIcon")
258-
fun setChargepriceTagIcon(view: TextView, kind: String) {
259-
view.setCompoundDrawablesRelativeWithIntrinsicBounds(
260-
when (kind) {
261-
"star" -> R.drawable.ic_chargeprice_star
262-
"alert" -> R.drawable.ic_chargeprice_alert
263-
"info" -> R.drawable.ic_chargeprice_info
264-
"lock" -> R.drawable.ic_chargeprice_lock
265-
else -> 0
266-
}, 0, 0, 0
267-
)
268-
}
269-
270257
private fun availabilityColor(
271258
status: List<ChargepointStatus>?,
272259
context: Context

app/src/main/res/drawable/ic_chargeprice.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/src/main/res/drawable/ic_chargeprice_alert.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/src/main/res/drawable/ic_chargeprice_info.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/src/main/res/drawable/ic_chargeprice_lock.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/src/main/res/drawable/ic_chargeprice_star.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/src/main/res/drawable/ic_powered_by_chargeprice.xml

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)