diff --git a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt index 3d131fbd1..ea182f6dc 100644 --- a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt @@ -17,6 +17,7 @@ import io.legado.app.R import io.legado.app.base.BaseFragment import io.legado.app.data.entities.BookSource import io.legado.app.help.ItemTouchCallback +import io.legado.app.ui.qrcode.QrCodeActivity import io.legado.app.ui.sourceedit.SourceEditActivity import kotlinx.android.synthetic.main.fragment_book_source.* import kotlinx.android.synthetic.main.view_title_bar.* @@ -46,6 +47,9 @@ class BookSourceFragment : BaseFragment(R.layout.fragment_book_source), BookSour R.id.action_add_book_source -> { context?.startActivity() } + R.id.action_import_book_source_qr -> { + context?.startActivity() + } } } diff --git a/app/src/main/res/layout/activity_qrcode_capture.xml b/app/src/main/res/layout/activity_qrcode_capture.xml index 71df5842b..0bdc89c35 100644 --- a/app/src/main/res/layout/activity_qrcode_capture.xml +++ b/app/src/main/res/layout/activity_qrcode_capture.xml @@ -2,8 +2,7 @@ + android:layout_height="match_parent"> diff --git a/app/src/main/res/menu/book_source.xml b/app/src/main/res/menu/book_source.xml index f5fe9609c..bbae899ff 100644 --- a/app/src/main/res/menu/book_source.xml +++ b/app/src/main/res/menu/book_source.xml @@ -72,7 +72,7 @@ app:showAsAction="never" />