mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix app crashing when opening ReaderActivity with FAB (#6535)
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user