Removing the other hide methods in trackbottomsheet
This commit is contained in:
parent
149ecaa592
commit
8fe80a0ff9
@ -15,7 +15,6 @@ import eu.kanade.tachiyomi.ui.manga.MangaDetailsController
|
|||||||
import eu.kanade.tachiyomi.util.system.dpToPx
|
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||||
import eu.kanade.tachiyomi.util.system.toast
|
import eu.kanade.tachiyomi.util.system.toast
|
||||||
import eu.kanade.tachiyomi.util.view.RecyclerWindowInsetsListener
|
import eu.kanade.tachiyomi.util.view.RecyclerWindowInsetsListener
|
||||||
import eu.kanade.tachiyomi.util.view.hide
|
|
||||||
import eu.kanade.tachiyomi.util.view.setEdgeToEdge
|
import eu.kanade.tachiyomi.util.view.setEdgeToEdge
|
||||||
import kotlinx.android.synthetic.main.tracking_bottom_sheet.*
|
import kotlinx.android.synthetic.main.tracking_bottom_sheet.*
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
@ -110,7 +109,7 @@ class TrackingBottomSheet(private val controller: MangaDetailsController) : Bott
|
|||||||
override fun onLogoClick(position: Int) {
|
override fun onLogoClick(position: Int) {
|
||||||
val track = adapter?.getItem(position)?.track ?: return
|
val track = adapter?.getItem(position)?.track ?: return
|
||||||
if (controller.isNotOnline()) {
|
if (controller.isNotOnline()) {
|
||||||
sheetBehavior.hide()
|
dismiss()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,7 +124,7 @@ class TrackingBottomSheet(private val controller: MangaDetailsController) : Bott
|
|||||||
override fun onSetClick(position: Int) {
|
override fun onSetClick(position: Int) {
|
||||||
val item = adapter?.getItem(position) ?: return
|
val item = adapter?.getItem(position) ?: return
|
||||||
if (controller.isNotOnline()) {
|
if (controller.isNotOnline()) {
|
||||||
sheetBehavior.hide()
|
dismiss()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user