diff --git a/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt b/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt index 1d2b6dd4b..ed29d2692 100644 --- a/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt +++ b/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt @@ -129,7 +129,7 @@ class ReadActivity : VMBaseActivity(R.layout.activity_read) { } override fun toast(id: Int) { - toast(id) + this@ReadActivity.toast(id) } override fun dismiss() { 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 b46f53098..196d86e9d 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 @@ -9,7 +9,6 @@ import io.legado.app.utils.gone import io.legado.app.utils.visible import kotlinx.android.synthetic.main.view_read_bottom_menu.view.* import org.jetbrains.anko.sdk27.listeners.onClick -import org.jetbrains.anko.sdk27.listeners.onLongClick class ReadBottomMenu : FrameLayout { @@ -76,24 +75,12 @@ class ReadBottomMenu : FrameLayout { //自动翻页 fabAutoPage.onClick { callback?.autoPage() } - fabAutoPage.onLongClick { - callback?.toast(R.string.auto_next_page) - true - } //替换 fabReplaceRule.onClick { callback?.openReplaceRule() } - fabReplaceRule.onLongClick { - callback?.toast(R.string.replace_rule_title) - true - } //夜间模式 fabNightTheme.onClick { callback?.setNightTheme() } - fabNightTheme.onLongClick { - callback?.toast(R.string.night_theme) - true - } //上一章 tv_pre.onClick { callback?.skipPreChapter() } diff --git a/app/src/main/res/layout/view_read_bottom_menu.xml b/app/src/main/res/layout/view_read_bottom_menu.xml index c7f3aa4a2..7dc266d02 100644 --- a/app/src/main/res/layout/view_read_bottom_menu.xml +++ b/app/src/main/res/layout/view_read_bottom_menu.xml @@ -23,10 +23,12 @@ android:contentDescription="@string/set_timer" android:src="@drawable/ic_timer_black_24dp" android:tint="@color/tv_text_default" + android:tooltipText="@string/set_timer" app:backgroundTint="@color/background_menu" app:elevation="2dp" app:fabSize="mini" - app:pressedTranslationZ="2dp" /> + app:pressedTranslationZ="2dp" + tools:ignore="UnusedAttribute" /> + app:pressedTranslationZ="2dp" + tools:ignore="UnusedAttribute" /> + app:pressedTranslationZ="2dp" + tools:ignore="UnusedAttribute" /> + app:pressedTranslationZ="2dp" + tools:ignore="UnusedAttribute" /> + app:pressedTranslationZ="2dp" + tools:ignore="UnusedAttribute" />