enable headlines list empty view
This commit is contained in:
parent
7ba2e5b28d
commit
06c6921dc2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user