Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a77e6329a4
2 changed files with 4 additions and 2 deletions
|
@ -701,6 +701,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(List<String> warnings) {
|
protected void onPostExecute(List<String> warnings) {
|
||||||
|
if ( getDownloadActivity() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
|
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
|
||||||
if (!warnings.isEmpty()) {
|
if (!warnings.isEmpty()) {
|
||||||
final StringBuilder b = new StringBuilder();
|
final StringBuilder b = new StringBuilder();
|
||||||
|
|
|
@ -42,8 +42,7 @@ public class UpdatesIndexFragment extends SherlockListFragment {
|
||||||
updateColor = getResources().getColor(R.color.color_update);
|
updateColor = getResources().getColor(R.color.color_update);
|
||||||
osmandRegions = getMyApplication().getResourceManager().getOsmandRegions();
|
osmandRegions = getMyApplication().getResourceManager().getOsmandRegions();
|
||||||
List<IndexItem> indexItems = new ArrayList<IndexItem>();
|
List<IndexItem> indexItems = new ArrayList<IndexItem>();
|
||||||
if (DownloadActivity.downloadListIndexThread != null &&
|
if (DownloadActivity.downloadListIndexThread != null) {
|
||||||
DownloadActivity.downloadListIndexThread.getItemsToUpdate() != null) {
|
|
||||||
indexItems = DownloadActivity.downloadListIndexThread.getItemsToUpdate();
|
indexItems = DownloadActivity.downloadListIndexThread.getItemsToUpdate();
|
||||||
}
|
}
|
||||||
listAdapter = new UpdateIndexAdapter(getDownloadActivity(), R.layout.download_index_list_item, indexItems);
|
listAdapter = new UpdateIndexAdapter(getDownloadActivity(), R.layout.download_index_list_item, indexItems);
|
||||||
|
|
Loading…
Reference in a new issue