From 0ce5938f5b68fab87a40e3906f9cbcbe668acb16 Mon Sep 17 00:00:00 2001 From: johan12345 Date: Sun, 9 May 2021 14:38:57 +0200 Subject: [PATCH] Chargeprice: show provider name only if tariff name doesn't start with it --- app/src/main/res/layout/item_chargeprice.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/item_chargeprice.xml b/app/src/main/res/layout/item_chargeprice.xml index af08fbf6..4bf9898c 100644 --- a/app/src/main/res/layout/item_chargeprice.xml +++ b/app/src/main/res/layout/item_chargeprice.xml @@ -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"