mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 14:51:48 +01:00
Fix jumping on recycler on some views when moving to a new screen
This commit is contained in:
parent
b18ea3a929
commit
0ca9418cd9
@ -18,6 +18,7 @@ import com.bluelinelabs.conductor.ControllerChangeType
|
||||
import com.bluelinelabs.conductor.RouterTransaction
|
||||
import com.bluelinelabs.conductor.changehandler.FadeChangeHandler
|
||||
import eu.kanade.tachiyomi.ui.main.BottomSheetController
|
||||
import eu.kanade.tachiyomi.ui.manga.MangaDetailsController
|
||||
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||
import kotlinx.android.synthetic.main.main_activity.*
|
||||
import kotlin.math.abs
|
||||
@ -135,7 +136,9 @@ fun Controller.scrollViewWith(
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!customPadding && lastY == 0f) {
|
||||
if (!customPadding && lastY == 0f &&
|
||||
router.backstack.lastOrNull()?.controller() is MangaDetailsController
|
||||
) {
|
||||
recycler.updatePaddingRelative(
|
||||
top = 0
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user