diff --git a/app/src/main/java/io/legado/app/ui/read/ReadBottomMenu.kt b/app/src/main/java/io/legado/app/ui/read/ReadBottomMenu.kt index 45ea48921..b46f53098 100644 --- a/app/src/main/java/io/legado/app/ui/read/ReadBottomMenu.kt +++ b/app/src/main/java/io/legado/app/ui/read/ReadBottomMenu.kt @@ -60,7 +60,7 @@ class ReadBottomMenu : FrameLayout { } override fun onStopTrackingTouch(seekBar: SeekBar) { - callback!!.skipToPage(seekBar.progress) + callback?.skipToPage(seekBar.progress) } }) @@ -84,7 +84,7 @@ class ReadBottomMenu : FrameLayout { //替换 fabReplaceRule.onClick { callback?.openReplaceRule() } fabReplaceRule.onLongClick { - callback!!.toast(R.string.replace_rule_title) + callback?.toast(R.string.replace_rule_title) true }