Fixed fast scroll button being visible when log is empty

This commit is contained in:
Viktor De Pasquale 2019-06-16 09:00:28 +02:00 committed by John Wu
parent 5c7f69acaa
commit 70cb52b2c7

View File

@ -38,7 +38,7 @@
</HorizontalScrollView> </HorizontalScrollView>
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
hide="@{viewModel.scrollPosition == item.items.size - 1}" hide="@{viewModel.scrollPosition == item.items.size - 1 || item.items.size == 0}"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"