diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt index 0d4eec250..1a3067f5c 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt @@ -247,16 +247,22 @@ class ReadMenu @JvmOverloads constructor( //搜索 fabSearch.setOnClickListener { - runMenuOut { + if(AppConfig.isEInkMode) callBack.openSearchActivity(null) - } + else + runMenuOut { + callBack.openSearchActivity(null) + } } //自动翻页 fabAutoPage.setOnClickListener { - runMenuOut { + if(AppConfig.isEInkMode) callBack.autoPage() - } + else + runMenuOut { + callBack.autoPage() + } } //替换 @@ -276,32 +282,47 @@ class ReadMenu @JvmOverloads constructor( //目录 llCatalog.setOnClickListener { - runMenuOut { + if(AppConfig.isEInkMode) callBack.openChapterList() - } + else + runMenuOut { + callBack.openChapterList() + } } //朗读 llReadAloud.setOnClickListener { - runMenuOut { + if(AppConfig.isEInkMode) callBack.onClickReadAloud() - } + else + runMenuOut { + callBack.onClickReadAloud() + } } llReadAloud.onLongClick { - runMenuOut { callBack.showReadAloudDialog() } + if(AppConfig.isEInkMode) + callBack.showReadAloudDialog() + else + runMenuOut { callBack.showReadAloudDialog() } } //界面 llFont.setOnClickListener { - runMenuOut { + if(AppConfig.isEInkMode) callBack.showReadStyle() - } + else + runMenuOut { + callBack.showReadStyle() + } } //设置 llSetting.setOnClickListener { - runMenuOut { + if(AppConfig.isEInkMode) callBack.showMoreSetting() - } + else + runMenuOut { + callBack.showMoreSetting() + } } }