App should not crash if keyboard is open/closed
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
package="com.sourceforge.sc2"
|
||||
android:versionCode="1001"
|
||||
android:versionName="1.0.01"
|
||||
android:installLocation="preferExternal"
|
||||
>
|
||||
<application android:label="@string/app_name"
|
||||
android:icon="@drawable/icon"
|
||||
@@ -10,6 +11,8 @@
|
||||
<activity android:name=".MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="landscape"
|
||||
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode"
|
||||
android:windowSoftInputMode="stateUnspecified|adjustPan"
|
||||
>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -10,6 +10,7 @@ import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.os.PowerManager;
|
||||
import android.widget.TextView;
|
||||
import android.content.res.Configuration;
|
||||
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
@@ -124,6 +125,15 @@ public class MainActivity extends Activity {
|
||||
mGLView.onTouchEvent(ev);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
if(mGLView != null)
|
||||
setContentView(mGLView);
|
||||
else
|
||||
setContentView(_tv);
|
||||
}
|
||||
|
||||
public void setText(final String t)
|
||||
{
|
||||
|
||||
@@ -169,16 +169,13 @@ Anyway, SDL should sleep inside SDL_Flip() and re-create all HW textures when it
|
||||
|
||||
5. Export phone vibrator to SDL - interface is available in SDL 1.3
|
||||
|
||||
6. Java downloading part seems unstable - it often truncates files.
|
||||
|
||||
Games to port
|
||||
=============
|
||||
|
||||
Ur-Quan Masters (epic game, must have)
|
||||
TeeWorlds
|
||||
SuperTux
|
||||
LBreakout2
|
||||
Commander Genius (only data files for shareware version available for free)
|
||||
OpenJazz (only data files for shareware version available for free)
|
||||
OpenLieroX (will be damn hard to do, I wrote the code partially)
|
||||
TeeWorlds (only if they have nice clean code)
|
||||
AdvanceMAME (they already have their own port, yet it's unfinished)
|
||||
Star Flight: The Lost Colony
|
||||
|
||||
Reference in New Issue
Block a user