fix crash in ReaderActivity

This commit is contained in:
jmir1 2022-01-05 03:17:58 +01:00
parent a3d060ff42
commit 6dd72b3d12

View file

@ -159,8 +159,8 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
applyAppTheme(preferences)
// Setup shared element transitions
findViewById<View>(android.R.id.content)?.let { contentView ->
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
findViewById<View>(android.R.id.content)?.let { contentView ->
contentView.transitionName = SHARED_ELEMENT_NAME
setEnterSharedElementCallback(MaterialContainerTransformSharedElementCallback())
window.sharedElementEnterTransition = buildContainerTransform(true)