diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/display/LibraryDisplayView.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/display/LibraryDisplayView.kt index 01bbdf6df4..7bb2668848 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/display/LibraryDisplayView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/display/LibraryDisplayView.kt @@ -2,9 +2,6 @@ package eu.kanade.tachiyomi.ui.library.display import android.animation.ValueAnimator import android.content.Context -import android.text.Spannable -import android.text.SpannableStringBuilder -import android.text.style.ForegroundColorSpan import android.util.AttributeSet import android.view.ViewTreeObserver import android.widget.SeekBar @@ -15,7 +12,6 @@ import eu.kanade.tachiyomi.databinding.LibraryDisplayLayoutBinding import eu.kanade.tachiyomi.util.bindToPreference import eu.kanade.tachiyomi.util.lang.withSubtitle import eu.kanade.tachiyomi.util.system.dpToPx -import eu.kanade.tachiyomi.util.system.getResourceColor import eu.kanade.tachiyomi.util.view.rowsForValue import eu.kanade.tachiyomi.widget.BaseLibraryDisplayView import eu.kanade.tachiyomi.widget.EndAnimatorListener diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsOptionsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsOptionsSheet.kt index 342a4e5fe3..d67990fa86 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsOptionsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsOptionsSheet.kt @@ -1,9 +1,6 @@ package eu.kanade.tachiyomi.ui.recents import android.app.Activity -import android.text.Spannable -import android.text.SpannableStringBuilder -import android.text.style.ForegroundColorSpan import android.view.ViewGroup import androidx.core.text.set import com.google.android.material.bottomsheet.BottomSheetBehavior @@ -13,7 +10,6 @@ import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.databinding.RecentsOptionsSheetBinding import eu.kanade.tachiyomi.util.bindToPreference import eu.kanade.tachiyomi.util.lang.withSubtitle -import eu.kanade.tachiyomi.util.system.getResourceColor import eu.kanade.tachiyomi.util.view.RecyclerWindowInsetsListener import eu.kanade.tachiyomi.util.view.setEdgeToEdge import uy.kohesive.injekt.injectLazy diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsMainController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsMainController.kt index 9c18107e8a..78d72c49dd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsMainController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsMainController.kt @@ -10,7 +10,6 @@ import com.bluelinelabs.conductor.RouterTransaction import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.ui.setting.search.SettingsSearchController import eu.kanade.tachiyomi.util.system.getResourceColor -import eu.kanade.tachiyomi.util.system.openInBrowser import eu.kanade.tachiyomi.util.view.withFadeTransaction class SettingsMainController : SettingsController() { @@ -78,12 +77,6 @@ class SettingsMainController : SettingsController() { titleRes = R.string.advanced onClick { navigateTo(SettingsAdvancedController()) } } - preference { - iconRes = R.drawable.ic_info_24dp - iconTint = tintColor - titleRes = R.string.about - onClick { navigateTo(AboutController()) } - } this } override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { @@ -114,14 +107,6 @@ class SettingsMainController : SettingsController() { ) } - override fun onOptionsItemSelected(item: MenuItem): Boolean { - when (item.itemId) { - R.id.action_help -> activity?.openInBrowser(URL_HELP) - else -> return super.onOptionsItemSelected(item) - } - return true - } - private fun navigateTo(controller: Controller) { router.pushController(controller.withFadeTransaction()) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/search/SettingsSearchController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/search/SettingsSearchController.kt index 802fc7c447..362b929742 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/search/SettingsSearchController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/search/SettingsSearchController.kt @@ -59,7 +59,6 @@ class SettingsSearchController : inflater.inflate(R.menu.settings_main, menu) // Initialize search menu - menu.findItem(R.id.action_help).isVisible = false val searchItem = menu.findItem(R.id.action_search) searchView = searchItem.actionView as SearchView searchView.maxWidth = Int.MAX_VALUE diff --git a/app/src/main/res/menu/settings_main.xml b/app/src/main/res/menu/settings_main.xml index 61803ec38d..826e5457f3 100644 --- a/app/src/main/res/menu/settings_main.xml +++ b/app/src/main/res/menu/settings_main.xml @@ -8,10 +8,4 @@ android:title="@string/search" app:actionViewClass="androidx.appcompat.widget.SearchView" app:showAsAction="collapseActionView|ifRoom" /> - - \ No newline at end of file