Update activity display when download fails

This commit is contained in:
vvb2060
2020-10-15 02:10:17 +08:00
committed by topjohnwu
parent 4e0a3f5e72
commit 1ad7a6fe93
3 changed files with 20 additions and 1 deletions
@@ -306,6 +306,23 @@
</LinearLayout>
<LinearLayout
goneUnless="@{viewModel.loadFailed}"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/download_file_error"
android:textAppearance="@style/AppearanceFoundation.Title" />
</LinearLayout>
</FrameLayout>
</androidx.core.widget.NestedScrollView>