From bb2d3854604a4d938894dbda6a4cd59a05017aa7 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 12 Dec 2013 12:49:50 +0100 Subject: [PATCH] Fixed RouteFragment to show correct empty view when showing playlist on start. --- src/com/github/nutomic/controldlna/gui/RouteFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/gui/RouteFragment.java b/src/com/github/nutomic/controldlna/gui/RouteFragment.java index b400977..67d735e 100644 --- a/src/com/github/nutomic/controldlna/gui/RouteFragment.java +++ b/src/com/github/nutomic/controldlna/gui/RouteFragment.java @@ -183,7 +183,9 @@ public class RouteFragment extends MediaRouteDiscoveryFragment implements mSelectedRoute = MediaRouter.getInstance(getActivity()) .getSelectedRoute(); mListView.setAdapter(mPlaylistAdapter); - mControls.setVisibility(View.VISIBLE); + mControls.setVisibility(View.VISIBLE); + TextView emptyView = (TextView) mListView.getEmptyView(); + emptyView.setText(R.string.playlist_empty); } } }