make exoplayer default player

This commit is contained in:
Christian Schabesberger 2017-03-29 09:17:03 +02:00
parent c3c3a94593
commit e804647a65
4 changed files with 11 additions and 7 deletions

View file

@ -791,7 +791,11 @@ public class VideoItemDetailFragment extends Fragment {
}
} else {
Intent intent;
if (PreferenceManager.getDefaultSharedPreferences(activity).getBoolean(activity.getString(R.string.use_exoplayer_key), false)) {
boolean useOldPlayer = PreferenceManager
.getDefaultSharedPreferences(activity)
.getBoolean(activity.getString(R.string.use_old_player_key), false)
|| (Build.VERSION.SDK_INT < 16);
if (!useOldPlayer) {
// ExoPlayer
if (streamThumbnail != null) ActivityCommunicator.getCommunicator().backgroundPlayerThumbnail = streamThumbnail;
intent = new Intent(activity, ExoPlayerActivity.class)