Changed the check to enable/disable audiostreams and subtitles options in the now playing screen: The previous check didn't cover all video types

This commit is contained in:
Synced Synapse 2015-03-06 18:31:21 +00:00
parent 8031251b36
commit 5f4c66ac9f

View File

@ -827,8 +827,12 @@ public class NowPlayingFragment extends Fragment
// UIUtils.loadImageIntoImageview(hostManager, art, mediaArt);
// Continue for videos
if (getItemResult.type.equals(ListType.ItemsAll.TYPE_EPISODE) ||
getItemResult.type.equals(ListType.ItemsAll.TYPE_MOVIE)) {
// if (getItemResult.type.equals(ListType.ItemsAll.TYPE_EPISODE) ||
// getItemResult.type.equals(ListType.ItemsAll.TYPE_MOVIE)) {
// TODO: change this check to the commeted out one when jsonrpc returns the correct type
// if (getPropertiesResult.type.equals(PlayerType.PropertyValue.TYPE_VIDEO)) {
if ((getPropertiesResult.audiostreams != null) &&
(getPropertiesResult.audiostreams.size() > 0)) {
overflowButton.setVisibility(View.VISIBLE);
videoCastList.setVisibility(View.VISIBLE);
videoAdditionalCastTitle.setVisibility(View.VISIBLE);