Fixed NPE in localIndexFragment in onPostExecute
This commit is contained in:
parent
696b817863
commit
79cc69df46
1 changed files with 4 additions and 3 deletions
|
@ -268,10 +268,11 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
protected void onPostExecute(List<LocalIndexInfo> result) {
|
protected void onPostExecute(List<LocalIndexInfo> result) {
|
||||||
this.result = result;
|
this.result = result;
|
||||||
listAdapter.sortData();
|
listAdapter.sortData();
|
||||||
|
if (getDownloadActivity() != null){
|
||||||
getDownloadActivity().setSupportProgressBarIndeterminateVisibility(false);
|
getDownloadActivity().setSupportProgressBarIndeterminateVisibility(false);
|
||||||
getDownloadActivity().setLocalIndexInfos(result);
|
getDownloadActivity().setLocalIndexInfos(result);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public List<LocalIndexInfo> getResult() {
|
public List<LocalIndexInfo> getResult() {
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue