diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h index 78d9cdcb28..f791d67080 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h @@ -1576,7 +1576,19 @@ private: } } - setAttributeIfNotPresent (*act, "android:screenOrientation", androidScreenOrientation.get()); + if (androidScreenOrientation.get() == "landscape") + { + String landscapeString = androidMinimumSDK.get().getIntValue() < 9 + ? "landscape" + : (androidMinimumSDK.get().getIntValue() < 18 ? "sensorLandscape" : "userLandscape"); + + setAttributeIfNotPresent (*act, "android:screenOrientation", landscapeString); + } + else + { + setAttributeIfNotPresent (*act, "android:screenOrientation", androidScreenOrientation.get()); + } + setAttributeIfNotPresent (*act, "android:launchMode", "singleTask"); auto* intent = getOrCreateChildWithName (*act, "intent-filter");