WorldRegion for LocalIndexInfo not working
This commit is contained in:
parent
82ab6f60e6
commit
e4b822ec3d
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue