@Override public View getHeader(Activity activity) { LayoutInflater inflater = LayoutInflater.from(activity); header = inflater.inflate(R.layout.view_browse_peer_header, null); updateHeader(); return header; }
@Override public void onLoadFinished(Loader<Object> loader, Object data) { if (data == null) { LOG.warn("Something wrong, data is null"); return; } if (loader.getId() == LOADER_FILES_ID) { updateFiles((Object[]) data); } updateHeader(); }