MangaController: Fix listeners cancelled when pushing new controller within (#5883)

This commit is contained in:
Ivan Iskandar 2021-09-11 21:20:52 +07:00 committed by GitHub
parent 6151318ac1
commit f41bde5ee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ class MangaController :
// Hide toolbar title on enter
if (type.isEnter) {
updateToolbarTitleAlpha()
} else {
} else if (!type.isPush) {
// Cancel listeners early
viewScope.cancel()
updateToolbarTitleAlpha(1F)