From e9f69da6d89b1800fc96cc2e2f4cf2f2a96c3fbe Mon Sep 17 00:00:00 2001 From: pelya Date: Thu, 24 Apr 2014 00:22:14 +0300 Subject: [PATCH] Screen orientation now fully depends on device sensors, even if user locked orientation in system settings --- changeAppSettings.sh | 4 ++-- project/AndroidManifestTemplate.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/changeAppSettings.sh b/changeAppSettings.sh index 18998e20b..ad1db55e4 100755 --- a/changeAppSettings.sh +++ b/changeAppSettings.sh @@ -1014,7 +1014,7 @@ AppShortName=`echo $AppName | sed 's/ //g'` DataPath="$AppFullName" AppFullNameUnderscored=`echo $AppFullName | sed 's/[.]/_/g'` AppSharedLibrariesPath=/data/data/$AppFullName/lib -ScreenOrientation1=userPortrait +ScreenOrientation1=sensorPortrait HorizontalOrientation=false UsingSdl13=false @@ -1028,7 +1028,7 @@ if [ "$LibSdlVersion" = "2.0" ] ; then fi if [ "$ScreenOrientation" = "h" -o "$ScreenOrientation" = "l" ] ; then - ScreenOrientation1=userLandscape + ScreenOrientation1=sensorLandscape HorizontalOrientation=true fi diff --git a/project/AndroidManifestTemplate.xml b/project/AndroidManifestTemplate.xml index a0fed6caa..cfa942086 100644 --- a/project/AndroidManifestTemplate.xml +++ b/project/AndroidManifestTemplate.xml @@ -2,7 +2,7 @@