mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 03:31:52 +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.RouterTransaction
|
||||||
import com.bluelinelabs.conductor.changehandler.FadeChangeHandler
|
import com.bluelinelabs.conductor.changehandler.FadeChangeHandler
|
||||||
import eu.kanade.tachiyomi.ui.main.BottomSheetController
|
import eu.kanade.tachiyomi.ui.main.BottomSheetController
|
||||||
|
import eu.kanade.tachiyomi.ui.manga.MangaDetailsController
|
||||||
import eu.kanade.tachiyomi.util.system.dpToPx
|
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||||
import kotlinx.android.synthetic.main.main_activity.*
|
import kotlinx.android.synthetic.main.main_activity.*
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
@ -135,7 +136,9 @@ fun Controller.scrollViewWith(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!customPadding && lastY == 0f) {
|
if (!customPadding && lastY == 0f &&
|
||||||
|
router.backstack.lastOrNull()?.controller() is MangaDetailsController
|
||||||
|
) {
|
||||||
recycler.updatePaddingRelative(
|
recycler.updatePaddingRelative(
|
||||||
top = 0
|
top = 0
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user