|
|
@ -11,7 +11,6 @@ import com.google.android.material.tabs.TabLayout |
|
|
|
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel |
|
|
|
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.base.VMBaseActivity |
|
|
|
import io.legado.app.base.VMBaseActivity |
|
|
|
import io.legado.app.constant.AppConst |
|
|
|
|
|
|
|
import io.legado.app.constant.BookType |
|
|
|
import io.legado.app.constant.BookType |
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.data.entities.BookSource |
|
|
|
import io.legado.app.data.entities.rule.* |
|
|
|
import io.legado.app.data.entities.rule.* |
|
|
@ -26,6 +25,7 @@ import io.legado.app.ui.document.HandleFileContract |
|
|
|
import io.legado.app.ui.login.SourceLoginActivity |
|
|
|
import io.legado.app.ui.login.SourceLoginActivity |
|
|
|
import io.legado.app.ui.qrcode.QrCodeResult |
|
|
|
import io.legado.app.ui.qrcode.QrCodeResult |
|
|
|
import io.legado.app.ui.widget.dialog.TextDialog |
|
|
|
import io.legado.app.ui.widget.dialog.TextDialog |
|
|
|
|
|
|
|
import io.legado.app.ui.widget.dialog.UrlOptionDialog |
|
|
|
import io.legado.app.ui.widget.keyboard.KeyboardToolPop |
|
|
|
import io.legado.app.ui.widget.keyboard.KeyboardToolPop |
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding |
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding |
|
|
@ -447,7 +447,9 @@ class BookSourceEditActivity : |
|
|
|
|
|
|
|
|
|
|
|
override fun onHelpActionSelect(action: String) { |
|
|
|
override fun onHelpActionSelect(action: String) { |
|
|
|
when (action) { |
|
|
|
when (action) { |
|
|
|
"urlOption" -> sendText(AppConst.urlOption) |
|
|
|
"urlOption" -> UrlOptionDialog(this) { |
|
|
|
|
|
|
|
sendText(it) |
|
|
|
|
|
|
|
}.show() |
|
|
|
"ruleHelp" -> showHelp("ruleHelp") |
|
|
|
"ruleHelp" -> showHelp("ruleHelp") |
|
|
|
"jsHelp" -> showHelp("jsHelp") |
|
|
|
"jsHelp" -> showHelp("jsHelp") |
|
|
|
"regexHelp" -> showHelp("regexHelp") |
|
|
|
"regexHelp" -> showHelp("regexHelp") |
|
|
|