pull/43/head
kunfei 5 years ago
parent d7b4444e3e
commit fac568bdba
  1. 6
      app/src/main/java/io/legado/app/ui/explore/ExploreShowActivity.kt
  2. 1
      app/src/main/res/values/strings.xml

@ -66,17 +66,17 @@ class ExploreShowActivity : VMBaseActivity<ExploreShowViewModel>(R.layout.activi
if (books.isEmpty() && adapter.isEmpty()) { if (books.isEmpty() && adapter.isEmpty()) {
hasMore = false hasMore = false
loadMoreView.rotate_loading.hide(View.INVISIBLE) loadMoreView.rotate_loading.hide(View.INVISIBLE)
loadMoreView.tv_text.text = "" loadMoreView.tv_text.setText(R.string.empty)
loadMoreView.tv_text.visible() loadMoreView.tv_text.visible()
} else if (books.isEmpty()) { } else if (books.isEmpty()) {
hasMore = false hasMore = false
loadMoreView.rotate_loading.hide(View.INVISIBLE) loadMoreView.rotate_loading.hide(View.INVISIBLE)
loadMoreView.tv_text.text = "我是有底线的" loadMoreView.tv_text.setText(R.string.bottom_line)
loadMoreView.tv_text.visible() loadMoreView.tv_text.visible()
} else if (adapter.getItems().contains(books.first()) && adapter.getItems().contains(books.last())) { } else if (adapter.getItems().contains(books.first()) && adapter.getItems().contains(books.last())) {
hasMore = false hasMore = false
loadMoreView.rotate_loading.hide(View.INVISIBLE) loadMoreView.rotate_loading.hide(View.INVISIBLE)
loadMoreView.tv_text.text = "我是有底线的" loadMoreView.tv_text.setText(R.string.bottom_line)
loadMoreView.tv_text.visible() loadMoreView.tv_text.visible()
} else { } else {
adapter.addItems(books) adapter.addItems(books)

@ -538,5 +538,6 @@
<string name="empty"></string> <string name="empty"></string>
<string name="file_chooser">文件选择</string> <string name="file_chooser">文件选择</string>
<string name="folder_chooser">文件夹选择</string> <string name="folder_chooser">文件夹选择</string>
<string name="bottom_line">我是有底线的</string>
</resources> </resources>

Loading…
Cancel
Save