mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
fix crash in ReaderActivity (#6439)
This commit is contained in:
parent
938339690e
commit
2e1572d7cc
1 changed files with 1 additions and 1 deletions
|
@ -159,8 +159,8 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
||||||
applyAppTheme(preferences)
|
applyAppTheme(preferences)
|
||||||
|
|
||||||
// Setup shared element transitions
|
// Setup shared element transitions
|
||||||
|
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
|
||||||
findViewById<View>(android.R.id.content)?.let { contentView ->
|
findViewById<View>(android.R.id.content)?.let { contentView ->
|
||||||
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
|
|
||||||
contentView.transitionName = SHARED_ELEMENT_NAME
|
contentView.transitionName = SHARED_ELEMENT_NAME
|
||||||
setEnterSharedElementCallback(MaterialContainerTransformSharedElementCallback())
|
setEnterSharedElementCallback(MaterialContainerTransformSharedElementCallback())
|
||||||
window.sharedElementEnterTransition = buildContainerTransform(true)
|
window.sharedElementEnterTransition = buildContainerTransform(true)
|
||||||
|
|
Loading…
Reference in a new issue