Force proper screen orientation, that was broken in my last few commits

This commit is contained in:
pelya
2012-06-18 13:10:27 +03:00
parent e38ade1e6b
commit 0e1a4897c1
4 changed files with 8 additions and 5 deletions

View File

@@ -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

View File

@@ -11,7 +11,7 @@
>
<activity android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="sensorLandscape"
android:screenOrientation="landscape"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode|screenSize|smallestScreenSize"
android:windowSoftInputMode="stateUnspecified|adjustPan"
>

View File

@@ -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);

View File

@@ -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"