Removing the other hide methods in trackbottomsheet

This commit is contained in:
Jay 2020-05-06 20:28:05 -04:00
parent 149ecaa592
commit 8fe80a0ff9

View File

@ -15,7 +15,6 @@ import eu.kanade.tachiyomi.ui.manga.MangaDetailsController
import eu.kanade.tachiyomi.util.system.dpToPx
import eu.kanade.tachiyomi.util.system.toast
import eu.kanade.tachiyomi.util.view.RecyclerWindowInsetsListener
import eu.kanade.tachiyomi.util.view.hide
import eu.kanade.tachiyomi.util.view.setEdgeToEdge
import kotlinx.android.synthetic.main.tracking_bottom_sheet.*
import timber.log.Timber
@ -110,7 +109,7 @@ class TrackingBottomSheet(private val controller: MangaDetailsController) : Bott
override fun onLogoClick(position: Int) {
val track = adapter?.getItem(position)?.track ?: return
if (controller.isNotOnline()) {
sheetBehavior.hide()
dismiss()
return
}
@ -125,7 +124,7 @@ class TrackingBottomSheet(private val controller: MangaDetailsController) : Bott
override fun onSetClick(position: Int) {
val item = adapter?.getItem(position) ?: return
if (controller.isNotOnline()) {
sheetBehavior.hide()
dismiss()
return
}