1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-22 04:12:08 +01:00

Fixed rotation

This commit is contained in:
vanitasvitae 2016-11-20 15:49:01 +01:00
parent b62f8d32b7
commit 8ede0ea304
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -83,9 +83,9 @@ public abstract class ThemedActivity extends AppCompatActivity {
if (rotation.equals(getString(R.string.rotation_val_auto))) { if (rotation.equals(getString(R.string.rotation_val_auto))) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
} else if (rotation.equals(getString(R.string.rotation_val_portrait))) { } else if (rotation.equals(getString(R.string.rotation_val_portrait))) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
} else { } else {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
} }
} }
} }