From d1b58a918778806fdc19971299272e4827bc318b Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 10 Mar 2020 00:20:04 -0700 Subject: [PATCH] Remove long tap setting from reader settings sheet --- .../kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt | 5 ++--- app/src/main/res/layout/reader_settings_sheet.xml | 11 +---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt index bbc8e6a470..31375df7dd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt @@ -5,12 +5,12 @@ import android.os.Build import android.os.Bundle import android.view.View import android.view.ViewGroup -import com.google.android.material.bottomsheet.BottomSheetDialog -import androidx.core.widget.NestedScrollView import android.widget.CompoundButton import android.widget.Spinner +import androidx.core.widget.NestedScrollView import com.f2prateek.rx.preferences.Preference import com.google.android.material.bottomsheet.BottomSheetBehavior +import com.google.android.material.bottomsheet.BottomSheetDialog import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.data.preference.getOrDefault @@ -115,7 +115,6 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDia show_page_number.bindToPreference(preferences.showPageNumber()) fullscreen.bindToPreference(preferences.fullscreen()) keepscreen.bindToPreference(preferences.keepScreenOn()) - long_tap.bindToPreference(preferences.readWithLongTap()) always_show_chapter_transition.bindToPreference(preferences.alwaysShowChapterTransition()) } diff --git a/app/src/main/res/layout/reader_settings_sheet.xml b/app/src/main/res/layout/reader_settings_sheet.xml index e58541c7c7..7023658b3a 100644 --- a/app/src/main/res/layout/reader_settings_sheet.xml +++ b/app/src/main/res/layout/reader_settings_sheet.xml @@ -140,22 +140,13 @@ android:textColor="?android:attr/textColorSecondary" app:layout_constraintTop_toBottomOf="@id/fullscreen" /> - - + app:layout_constraintTop_toBottomOf="@id/keepscreen" />