diff options
author | ByteHamster <info@bytehamster.com> | 2018-01-06 12:33:33 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-01-06 12:33:38 +0100 |
commit | 2e98119d47dffaadd7bee82e082c80d0f3914841 (patch) | |
tree | dcb71aa64f539216b411d6f4111ed1779c666ce6 /app | |
parent | 8b84b7003273c7dad7a17fa37b78fd6d17af056c (diff) | |
download | AntennaPod-2e98119d47dffaadd7bee82e082c80d0f3914841.zip |
Fixed video view
Bug was introduced in #2457, shared element does not exist in video view
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java index ebdb658d5..5bb8e0a2d 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java @@ -17,6 +17,7 @@ import android.widget.TextView; import com.bumptech.glide.Glide; import de.danoeh.antennapod.R; +import de.danoeh.antennapod.core.feed.MediaType; import de.danoeh.antennapod.core.glide.ApGlideSettings; import de.danoeh.antennapod.core.service.playback.PlaybackService; import de.danoeh.antennapod.core.util.Converter; @@ -61,7 +62,7 @@ public class ExternalPlayerFragment extends Fragment { if (controller != null && controller.getMedia() != null) { Intent intent = PlaybackService.getPlayerActivityIntent(getActivity(), controller.getMedia()); - if (Build.VERSION.SDK_INT >= 16) { + if (Build.VERSION.SDK_INT >= 16 && controller.getMedia().getMediaType() == MediaType.AUDIO) { ActivityOptionsCompat options = ActivityOptionsCompat. makeSceneTransitionAnimation(getActivity(), imgvCover, "coverTransition"); startActivity(intent, options.toBundle()); |