enable headlines list empty view

This commit is contained in:
Andrew Dolgov 2013-02-10 11:33:32 +04:00
parent 7ba2e5b28d
commit 06c6921dc2

View File

@ -355,6 +355,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
protected void onPostExecute(JsonElement result) {
if (isDetached()) return;
ListView list = (ListView)getView().findViewById(R.id.headlines);
if (list != null) {
list.setEmptyView(getView().findViewById(R.id.no_headlines));
}
m_activity.setProgressBarVisibility(false);
super.onPostExecute(result);