Fix app crashing when opening ReaderActivity with FAB (#6535)

This commit is contained in:
Andreas 2022-02-01 16:30:17 +01:00 committed by GitHub
parent 5348154c42
commit 271253fd0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.drawable.BitmapDrawable
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
@ -892,7 +893,7 @@ class MangaController :
val activity = activity ?: return
val intent = ReaderActivity.newIntent(activity, presenter.manga, chapter)
activity.apply {
if (sharedElement != null) {
if (sharedElement != null && Build.VERSION.SDK_INT != Build.VERSION_CODES.O) {
val activityOptions = ActivityOptions.makeSceneTransitionAnimation(
activity,
sharedElement,