Rename view ids

This commit is contained in:
Florian Renaud 2022-11-29 14:32:05 +01:00
parent 42b3ecc0b6
commit 1415504f84
3 changed files with 6 additions and 7 deletions

View File

@ -37,9 +37,9 @@ class VoiceBroadcastMetadataView @JvmOverloads constructor(
)
var value: String
get() = views.metadataValue.text.toString()
get() = views.metadataText.text.toString()
set(newValue) {
views.metadataValue.text = newValue
views.metadataText.text = newValue
}
init {
@ -61,6 +61,6 @@ class VoiceBroadcastMetadataView @JvmOverloads constructor(
private fun setValue(typedArray: TypedArray) {
val value = typedArray.getString(R.styleable.VoiceBroadcastMetadataView_metadataValue)
views.metadataValue.text = value
views.metadataText.text = value
}
}

View File

@ -8,17 +8,16 @@
tools:parentTag="android.widget.LinearLayout">
<ProgressBar
android:id="@+id/metadataIcon"
android:id="@+id/bufferingIcon"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginEnd="4dp"
android:contentDescription="@string/a11y_voice_broadcast_buffering"
android:indeterminate="true"
android:indeterminateTint="?vctr_content_secondary"
tools:src="@drawable/ic_voice_broadcast" />
<TextView
android:id="@+id/metadata_value"
android:id="@+id/bufferingText"
style="@style/Widget.Vector.TextView.Caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -18,7 +18,7 @@
tools:src="@drawable/ic_voice_broadcast" />
<TextView
android:id="@+id/metadata_value"
android:id="@+id/metadataText"
style="@style/Widget.Vector.TextView.Caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"