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 // Hide toolbar title on enter
if (type.isEnter) { if (type.isEnter) {
updateToolbarTitleAlpha() updateToolbarTitleAlpha()
} else { } else if (!type.isPush) {
// Cancel listeners early // Cancel listeners early
viewScope.cancel() viewScope.cancel()
updateToolbarTitleAlpha(1F) updateToolbarTitleAlpha(1F)