Small playlist optimization
This commit is contained in:
parent
2722585f14
commit
e19e0c6752
|
@ -513,6 +513,8 @@ public class PlaylistFragment extends Fragment
|
|||
* The playlist items
|
||||
*/
|
||||
List<ListType.ItemsAll> playlistItems;
|
||||
int artWidth = getResources().getDimensionPixelSize(R.dimen.playlist_art_width);
|
||||
int artHeight = getResources().getDimensionPixelSize(R.dimen.playlist_art_heigth);
|
||||
|
||||
public PlayListAdapter(List<ListType.ItemsAll> playlistItems) {
|
||||
super();
|
||||
|
@ -520,8 +522,7 @@ public class PlaylistFragment extends Fragment
|
|||
}
|
||||
|
||||
public PlayListAdapter() {
|
||||
super();
|
||||
this.playlistItems = null;
|
||||
this(null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -628,9 +629,6 @@ public class PlaylistFragment extends Fragment
|
|||
viewHolder.duration.setText((duration > 0) ? UIUtils.formatTime(duration) : "");
|
||||
viewHolder.position = position;
|
||||
|
||||
int artWidth = getResources().getDimensionPixelSize(R.dimen.playlist_art_width);
|
||||
int artHeight = getResources().getDimensionPixelSize(R.dimen.playlist_art_heigth);
|
||||
|
||||
// If not video, change aspect ration of poster to a square
|
||||
boolean isVideo = (item.type.equals(ListType.ItemsAll.TYPE_MOVIE)) ||
|
||||
(item.type.equals(ListType.ItemsAll.TYPE_EPISODE));
|
||||
|
|
Loading…
Reference in New Issue