ConfigList: Denote the primary config with bold text

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-08-16 04:29:04 -05:00
parent a5e2c1c1b3
commit 4ac1a2fafc

View File

@ -3,6 +3,8 @@
<data>
<import type="android.graphics.Typeface" />
<import type="com.wireguard.android.VpnService" />
<variable
@ -23,7 +25,8 @@
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/config_switch"
android:text="@{item.name}" />
android:text="@{item.name}"
android:textStyle="@{item.primary ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT}" />
<TextView
android:id="@+id/config_switch"