Merge pull request #10457 from osmandapp/Driving-region

Crash in Driving region
This commit is contained in:
Vitaliy 2020-12-22 21:05:04 +02:00 committed by GitHub
commit d8ed8388cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -344,7 +344,7 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment impleme
TextView desc = (TextView) v.findViewById(R.id.description); TextView desc = (TextView) v.findViewById(R.id.description);
if (item instanceof DrivingRegion) { if (item instanceof DrivingRegion) {
DrivingRegion drivingRegion = (DrivingRegion) item; DrivingRegion drivingRegion = (DrivingRegion) item;
title.setText(getString(drivingRegion.name)); title.setText(app.getString(drivingRegion.name));
desc.setVisibility(View.VISIBLE); desc.setVisibility(View.VISIBLE);
desc.setText(drivingRegion.getDescription(v.getContext())); desc.setText(drivingRegion.getDescription(v.getContext()));
} else if (item instanceof String) { } else if (item instanceof String) {