v0.7.2c: adjusted how the game handles config changes
This commit is contained in:
parent
c8e7a4bb42
commit
96878b1095
|
@ -83,7 +83,7 @@ public class Game extends Activity implements GLSurfaceView.Renderer, View.OnTou
|
|||
// callback to perform logic during scene change
|
||||
protected SceneChangeCallback onChange;
|
||||
// New scene class
|
||||
protected Class<? extends Scene> sceneClass;
|
||||
protected static Class<? extends Scene> sceneClass;
|
||||
|
||||
// Current time in milliseconds
|
||||
protected long now;
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
android:name="com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon"
|
||||
android:alwaysRetainTaskState="true"
|
||||
android:launchMode="singleInstance"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
|
||||
android:screenOrientation="nosensor">
|
||||
<intent-filter >
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
|
@ -51,7 +51,7 @@ public class ShatteredPixelDungeon extends Game {
|
|||
public static final int v0_7_2 = 333;
|
||||
|
||||
public ShatteredPixelDungeon() {
|
||||
super( WelcomeScene.class );
|
||||
super( sceneClass == null ? WelcomeScene.class : sceneClass );
|
||||
|
||||
//v0.6.3
|
||||
com.watabou.utils.Bundle.addAlias(
|
||||
|
|
Loading…
Reference in New Issue
Block a user