|
@@ -66,6 +66,7 @@ import eu.kanade.tachiyomi.ui.reader.viewer.ReaderProgressIndicator
|
|
|
import eu.kanade.tachiyomi.ui.reader.viewer.pager.R2LPagerViewer
|
|
|
import eu.kanade.tachiyomi.util.storage.getUriCompat
|
|
|
import eu.kanade.tachiyomi.util.system.GLUtil
|
|
|
+import eu.kanade.tachiyomi.util.system.applySystemAnimatorScale
|
|
|
import eu.kanade.tachiyomi.util.system.createReaderThemeContext
|
|
|
import eu.kanade.tachiyomi.util.system.getThemeColor
|
|
|
import eu.kanade.tachiyomi.util.system.hasDisplayCutout
|
|
@@ -528,6 +529,7 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|
|
|
|
|
if (animate) {
|
|
|
val toolbarAnimation = AnimationUtils.loadAnimation(this, R.anim.enter_from_top)
|
|
|
+ toolbarAnimation.applySystemAnimatorScale(this)
|
|
|
toolbarAnimation.setAnimationListener(
|
|
|
object : SimpleAnimationListener() {
|
|
|
override fun onAnimationStart(animation: Animation) {
|
|
@@ -539,6 +541,7 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|
|
binding.toolbar.startAnimation(toolbarAnimation)
|
|
|
|
|
|
val bottomAnimation = AnimationUtils.loadAnimation(this, R.anim.enter_from_bottom)
|
|
|
+ bottomAnimation.applySystemAnimatorScale(this)
|
|
|
binding.readerMenuBottom.startAnimation(bottomAnimation)
|
|
|
}
|
|
|
|
|
@@ -553,6 +556,7 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|
|
|
|
|
if (animate) {
|
|
|
val toolbarAnimation = AnimationUtils.loadAnimation(this, R.anim.exit_to_top)
|
|
|
+ toolbarAnimation.applySystemAnimatorScale(this)
|
|
|
toolbarAnimation.setAnimationListener(
|
|
|
object : SimpleAnimationListener() {
|
|
|
override fun onAnimationEnd(animation: Animation) {
|
|
@@ -563,6 +567,7 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
|
|
binding.toolbar.startAnimation(toolbarAnimation)
|
|
|
|
|
|
val bottomAnimation = AnimationUtils.loadAnimation(this, R.anim.exit_to_bottom)
|
|
|
+ bottomAnimation.applySystemAnimatorScale(this)
|
|
|
binding.readerMenuBottom.startAnimation(bottomAnimation)
|
|
|
}
|
|
|
|