Fix compilation
This commit is contained in:
parent
8fde456e37
commit
73af3931e8
1 changed files with 9 additions and 9 deletions
|
@ -68,8 +68,8 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment {
|
||||||
|
|
||||||
private void setupAppThemePref() {
|
private void setupAppThemePref() {
|
||||||
final ListPreferenceEx appTheme = (ListPreferenceEx) findPreference(settings.OSMAND_THEME.getId());
|
final ListPreferenceEx appTheme = (ListPreferenceEx) findPreference(settings.OSMAND_THEME.getId());
|
||||||
appTheme.setEntries(new String[]{getString(R.string.dark_theme), getString(R.string.light_theme)});
|
appTheme.setEntries(new String[] {getString(R.string.dark_theme), getString(R.string.light_theme)});
|
||||||
appTheme.setEntryValues(new Integer[]{OsmandSettings.OSMAND_DARK_THEME, OsmandSettings.OSMAND_LIGHT_THEME});
|
appTheme.setEntryValues(new Integer[] {OsmandSettings.OSMAND_DARK_THEME, OsmandSettings.OSMAND_LIGHT_THEME});
|
||||||
appTheme.setIcon(getOsmandThemeIcon());
|
appTheme.setIcon(getOsmandThemeIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,8 +79,8 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment {
|
||||||
|
|
||||||
private void setupRotateMapPref() {
|
private void setupRotateMapPref() {
|
||||||
final ListPreferenceEx rotateMap = (ListPreferenceEx) findPreference(settings.ROTATE_MAP.getId());
|
final ListPreferenceEx rotateMap = (ListPreferenceEx) findPreference(settings.ROTATE_MAP.getId());
|
||||||
rotateMap.setEntries(new String[]{getString(R.string.rotate_map_none_opt), getString(R.string.rotate_map_bearing_opt), getString(R.string.rotate_map_compass_opt)});
|
rotateMap.setEntries(new String[] {getString(R.string.rotate_map_none_opt), getString(R.string.rotate_map_bearing_opt), getString(R.string.rotate_map_compass_opt)});
|
||||||
rotateMap.setEntryValues(new Integer[]{OsmandSettings.ROTATE_MAP_NONE, OsmandSettings.ROTATE_MAP_BEARING, OsmandSettings.ROTATE_MAP_COMPASS});
|
rotateMap.setEntryValues(new Integer[] {OsmandSettings.ROTATE_MAP_NONE, OsmandSettings.ROTATE_MAP_BEARING, OsmandSettings.ROTATE_MAP_COMPASS});
|
||||||
rotateMap.setIcon(getRotateMapIcon());
|
rotateMap.setIcon(getRotateMapIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment {
|
||||||
|
|
||||||
private void setupMapScreenOrientationPref() {
|
private void setupMapScreenOrientationPref() {
|
||||||
final ListPreferenceEx mapScreenOrientation = (ListPreferenceEx) findPreference(settings.MAP_SCREEN_ORIENTATION.getId());
|
final ListPreferenceEx mapScreenOrientation = (ListPreferenceEx) findPreference(settings.MAP_SCREEN_ORIENTATION.getId());
|
||||||
mapScreenOrientation.setEntries(new String[]{getString(R.string.map_orientation_portrait), getString(R.string.map_orientation_landscape), getString(R.string.map_orientation_default)});
|
mapScreenOrientation.setEntries(new String[] {getString(R.string.map_orientation_portrait), getString(R.string.map_orientation_landscape), getString(R.string.map_orientation_default)});
|
||||||
mapScreenOrientation.setEntryValues(new Integer[]{ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED});
|
mapScreenOrientation.setEntryValues(new Integer[] {ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED});
|
||||||
mapScreenOrientation.setIcon(getMapScreenOrientationIcon());
|
mapScreenOrientation.setIcon(getMapScreenOrientationIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,14 +185,14 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment {
|
||||||
|
|
||||||
private void setupExternalInputDevicePref() {
|
private void setupExternalInputDevicePref() {
|
||||||
ListPreferenceEx externalInputDevice = (ListPreferenceEx) findPreference(settings.EXTERNAL_INPUT_DEVICE.getId());
|
ListPreferenceEx externalInputDevice = (ListPreferenceEx) findPreference(settings.EXTERNAL_INPUT_DEVICE.getId());
|
||||||
externalInputDevice.setEntries(new String[]{
|
externalInputDevice.setEntries(new String[] {
|
||||||
getString(R.string.sett_no_ext_input),
|
getString(R.string.sett_no_ext_input),
|
||||||
getString(R.string.sett_generic_ext_input),
|
getString(R.string.sett_generic_ext_input),
|
||||||
getString(R.string.sett_wunderlinq_ext_input),
|
getString(R.string.sett_wunderlinq_ext_input),
|
||||||
getString(R.string.sett_parrot_ext_input)
|
getString(R.string.sett_parrot_ext_input)
|
||||||
});
|
});
|
||||||
|
|
||||||
externalInputDevice.setEntryValues(new Integer[]{
|
externalInputDevice.setEntryValues(new Integer[] {
|
||||||
OsmandSettings.NO_EXTERNAL_DEVICE,
|
OsmandSettings.NO_EXTERNAL_DEVICE,
|
||||||
OsmandSettings.GENERIC_EXTERNAL_DEVICE,
|
OsmandSettings.GENERIC_EXTERNAL_DEVICE,
|
||||||
OsmandSettings.WUNDERLINQ_EXTERNAL_DEVICE,
|
OsmandSettings.WUNDERLINQ_EXTERNAL_DEVICE,
|
||||||
|
@ -281,7 +281,7 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment {
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
FragmentManager fragmentManager = getFragmentManager();
|
FragmentManager fragmentManager = getFragmentManager();
|
||||||
if (fragmentManager != null) {
|
if (fragmentManager != null) {
|
||||||
ChangeGeneralProfilesPrefBottomSheet.showInstance(fragmentManager, preference.getKey(), newValue, this);
|
ChangeGeneralProfilesPrefBottomSheet.showInstance(fragmentManager, preference.getKey(), newValue, this, false);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue