WorldRegion for LocalIndexInfo not working

This commit is contained in:
GaidamakUA 2015-12-18 10:15:37 +02:00
parent 82ab6f60e6
commit e4b822ec3d
2 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,7 @@ public class LocalIndexInfo implements Parcelable {
}
this.backupedData = backuped;
final String baseName = getBaseName();
final String baseName = getBaseName().toLowerCase();
WorldRegion worldRegion = app.getRegions().getRegionDataByDownloadName(baseName);
this.worldRegion = worldRegion;
}
@ -67,7 +67,7 @@ public class LocalIndexInfo implements Parcelable {
backupedData = backup;
this.subfolder = subfolder;
final String baseName = getBaseName();
final String baseName = getBaseName().toLowerCase();
WorldRegion worldRegion = app.getRegions().getRegionDataByDownloadName(baseName);
this.worldRegion = worldRegion;
}

View file

@ -54,6 +54,8 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment {
final Spinner updateTimesOfDaySpinner = (Spinner) view.findViewById(R.id.updateTimesOfDaySpinner);
regionNameTextView.setText(localIndexInfo.getName());
// countryNameTextView.setText(localIndexInfo.getWorldRegion().getLocaleName());
countryNameTextView.setVisibility(View.VISIBLE);
final OsmandSettings.CommonPreference<Boolean> liveUpdatePreference =
preferenceForLocalIndex(localIndexInfo);
final OsmandSettings.CommonPreference<Boolean> downloadViaWiFiPreference =