pull/32/head
kunfei 5 years ago
parent d7f66b83e0
commit ce60781a3f
  1. 6
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt
  2. 1
      app/src/main/res/menu/book_info.xml

@ -67,6 +67,12 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo
} }
} }
} }
R.id.menu_refresh -> {
upLoading(true)
viewModel.bookData.value?.let {
viewModel.loadBookInfo(it)
}
}
} }
return super.onCompatOptionsItemSelected(item) return super.onCompatOptionsItemSelected(item)
} }

@ -10,7 +10,6 @@
<item <item
android:id="@+id/menu_refresh" android:id="@+id/menu_refresh"
android:icon="@drawable/ic_refresh_black_24dp"
android:title="@string/refresh" android:title="@string/refresh"
app:showAsAction="never" /> app:showAsAction="never" />

Loading…
Cancel
Save