Chargeprice: show provider name only if tariff name doesn't start with it

This commit is contained in:
johan12345
2021-05-09 14:38:57 +02:00
parent 5ab50e04ae
commit 0ce5938f5b

View File

@@ -50,7 +50,7 @@
android:layout_marginEnd="4dp"
android:text="@{item.provider}"
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
app:goneUnless="@{!item.provider.equals(item.tariffName)}"
app:goneUnless="@{!item.tariffName.startsWith(item.provider)}"
app:layout_constraintBottom_toTopOf="@+id/rvTags"
app:layout_constraintEnd_toStartOf="@+id/guideline5"
app:layout_constraintStart_toStartOf="@+id/txtTariff"