diff --git a/ChangeAppSettings.sh b/ChangeAppSettings.sh index d5b701d6f..42a5a2606 100755 --- a/ChangeAppSettings.sh +++ b/ChangeAppSettings.sh @@ -610,7 +610,7 @@ AppShortName=`echo $AppName | sed 's/ //g'` DataPath="$AppFullName" AppFullNameUnderscored=`echo $AppFullName | sed 's/[.]/_/g'` AppSharedLibrariesPath=/data/data/$AppFullName/lib -ScreenOrientation1=sensorPortrait +ScreenOrientation1=portrait HorizontalOrientation=false UsingSdl13=false @@ -619,7 +619,7 @@ if [ "$LibSdlVersion" = "1.3" ] ; then fi if [ "$ScreenOrientation" = "h" ] ; then - ScreenOrientation1=sensorLandscape + ScreenOrientation1=landscape HorizontalOrientation=true fi diff --git a/project/AndroidManifestTemplate.xml b/project/AndroidManifestTemplate.xml index f1be04f96..661386c9c 100644 --- a/project/AndroidManifestTemplate.xml +++ b/project/AndroidManifestTemplate.xml @@ -11,7 +11,7 @@ > diff --git a/project/java/MainActivity.java b/project/java/MainActivity.java index cb5524570..81a465a09 100644 --- a/project/java/MainActivity.java +++ b/project/java/MainActivity.java @@ -69,12 +69,15 @@ import android.content.pm.PackageManager; import android.os.Handler; import android.os.Message; import java.util.concurrent.Semaphore; +import android.content.pm.ActivityInfo; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + setRequestedOrientation(Globals.HorizontalOrientation ? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); + instance = this; // fullscreen mode requestWindowFeature(Window.FEATURE_NO_TITLE); diff --git a/project/jni/application/fheroes2/AndroidAppSettings.cfg b/project/jni/application/fheroes2/AndroidAppSettings.cfg index 7d6ffa8d0..4f4c4705a 100644 --- a/project/jni/application/fheroes2/AndroidAppSettings.cfg +++ b/project/jni/application/fheroes2/AndroidAppSettings.cfg @@ -33,8 +33,8 @@ StartupMenuButtonTimeout=3000 HiddenMenuOptions='' FirstStartMenuOptions='' MultiABI=n -AppVersionCode=286218 -AppVersionName="2862.18" +AppVersionCode=286219 +AppVersionName="2862.19" ResetSdlConfigForThisVersion=n DeleteFilesOnUpgrade="libsdl-DownloadFinished-5.flag libsdl-DownloadFinished-6.flag libsdl-DownloadFinished-7.flag libsdl-DownloadFinished-8.flag libsdl-DownloadFinished-9.flag libsdl-DownloadFinished-10.flag libsdl-DownloadFinished-11.flag libsdl-DownloadFinished-12.flag libsdl-DownloadFinished-13.flag libsdl-DownloadFinished-14.flag" CompiledLibraries="sdl_net sdl_mixer sdl_image sdl_ttf png intl"