Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70260203 authored by Chong Zhang's avatar Chong Zhang
Browse files

don't select default track if subtitle controller is not present

subtitle controller won't be there if app is not using VideoView.

Bug: 15470448
Change-Id: If6724928220a8906bd2199ebc0916a4493092abb
parent 3b6e53fc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2335,7 +2335,9 @@ public class MediaPlayer implements SubtitleController.Listener
                case MEDIA_INFO_EXTERNAL_METADATA_UPDATE:
                    msg.arg1 = MEDIA_INFO_METADATA_UPDATE;
                    // update default track selection
                    if (mSubtitleController != null) {
                        mSubtitleController.selectDefaultTrack();
                    }
                    break;
                }