Fix exception
This commit is contained in:
parent
9fa5cf5ea6
commit
182ee5fea3
2 changed files with 5 additions and 2 deletions
|
@ -114,7 +114,7 @@ public abstract class BidForFixActivity extends ListActivity {
|
|||
super.onPostExecute(result);
|
||||
//set the adapter (clear,set)
|
||||
setListAdapter(new BFFIssueArrayAdapter(BidForFixActivity.this, getHelper().getList()));
|
||||
dismissDialog(LOAD_ITEMS);
|
||||
dialog.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -602,7 +602,10 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity {
|
|||
mainView.setKeepScreenOn(false);
|
||||
}
|
||||
updateLoadedFiles();
|
||||
((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetInvalidated();
|
||||
DownloadIndexAdapter adapter = ((DownloadIndexAdapter) getExpandableListAdapter());
|
||||
if (adapter != null) {
|
||||
adapter.notifyDataSetInvalidated();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue