v0.7.2c: adjusted how the game handles config changes

This commit is contained in:
Evan Debenham 2019-04-23 01:42:18 -04:00
parent c8e7a4bb42
commit 96878b1095
3 changed files with 2 additions and 3 deletions

View File

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

View File

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

View File

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