Fix exception

This commit is contained in:
Victor Shcherb 2012-08-30 23:58:45 +02:00
parent 9fa5cf5ea6
commit 182ee5fea3
2 changed files with 5 additions and 2 deletions

View file

@ -114,7 +114,7 @@ public abstract class BidForFixActivity extends ListActivity {
super.onPostExecute(result); super.onPostExecute(result);
//set the adapter (clear,set) //set the adapter (clear,set)
setListAdapter(new BFFIssueArrayAdapter(BidForFixActivity.this, getHelper().getList())); setListAdapter(new BFFIssueArrayAdapter(BidForFixActivity.this, getHelper().getList()));
dismissDialog(LOAD_ITEMS); dialog.dismiss();
} }
} }

View file

@ -602,7 +602,10 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity {
mainView.setKeepScreenOn(false); mainView.setKeepScreenOn(false);
} }
updateLoadedFiles(); updateLoadedFiles();
((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetInvalidated(); DownloadIndexAdapter adapter = ((DownloadIndexAdapter) getExpandableListAdapter());
if (adapter != null) {
adapter.notifyDataSetInvalidated();
}
} }
@Override @Override