|
|
@ -17,6 +17,7 @@ import io.legado.app.R |
|
|
|
import io.legado.app.base.BaseFragment |
|
|
|
import io.legado.app.base.BaseFragment |
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.help.ItemTouchCallback |
|
|
|
import io.legado.app.help.ItemTouchCallback |
|
|
|
|
|
|
|
import io.legado.app.ui.qrcode.QrCodeActivity |
|
|
|
import io.legado.app.ui.sourceedit.SourceEditActivity |
|
|
|
import io.legado.app.ui.sourceedit.SourceEditActivity |
|
|
|
import kotlinx.android.synthetic.main.fragment_book_source.* |
|
|
|
import kotlinx.android.synthetic.main.fragment_book_source.* |
|
|
|
import kotlinx.android.synthetic.main.view_title_bar.* |
|
|
|
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 -> { |
|
|
|
R.id.action_add_book_source -> { |
|
|
|
context?.startActivity<SourceEditActivity>() |
|
|
|
context?.startActivity<SourceEditActivity>() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
R.id.action_import_book_source_qr -> { |
|
|
|
|
|
|
|
context?.startActivity<QrCodeActivity>() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|