HTML-format quest text

Some quests use HTML, this will automatically format it.
This commit is contained in:
Dan Lew 2015-12-17 06:42:31 -06:00
parent 2b5567623a
commit 888e0b7cfa

View file

@ -7,6 +7,7 @@
<import type="com.magicmicky.habitrpgwrapper.lib.models.Group" />
<import type="com.magicmicky.habitrpgwrapper.lib.models.QuestContent" />
<import type="android.view.View" />
<import type="android.text.Html"/>
<variable
name="party"
@ -107,7 +108,7 @@
<TextView android:layout_margin="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{quest.notes}" />
android:text="@{quest.notes != null ? Html.fromHtml(quest.notes) : null}" />
</LinearLayout>
</GridLayout>