Merge pull request #2997 from tmct/both-landscape-orientations

Make landscape orientation setting respect sensor
This commit is contained in:
vshcherb 2016-08-24 13:26:17 +03:00 committed by GitHub
commit bb07b103e5

View file

@ -91,7 +91,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR
registerListPreference(settings.MAP_SCREEN_ORIENTATION, screen, registerListPreference(settings.MAP_SCREEN_ORIENTATION, screen,
new String[]{getString(R.string.map_orientation_portrait), getString(R.string.map_orientation_landscape), getString(R.string.map_orientation_default)}, new String[]{getString(R.string.map_orientation_portrait), getString(R.string.map_orientation_landscape), getString(R.string.map_orientation_default)},
new Integer[]{ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED}); new Integer[]{ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED});
addLocalPrefs((PreferenceGroup) screen.findPreference("localization")); addLocalPrefs((PreferenceGroup) screen.findPreference("localization"));
addVoicePrefs((PreferenceGroup) screen.findPreference("voice")); addVoicePrefs((PreferenceGroup) screen.findPreference("voice"));