v0.9.1a: more android lifecycle adjustments, should fix various bugs
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
android:label="${appName}"
|
||||
android:name=".AndroidGame"
|
||||
android:screenOrientation="nosensor"
|
||||
android:configChanges="keyboard|keyboardHidden|orientation">
|
||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize">
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
@@ -124,17 +124,6 @@ public class AndroidGame extends AndroidApplication {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
//LibGDX itself doesn't clear these in every case, so we do it ourselves to be sure
|
||||
graphics.clearManagedCaches();
|
||||
audio.dispose();
|
||||
if (instance == this) {
|
||||
instance = null;
|
||||
}
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
//do nothing, game should catch all back presses
|
||||
|
||||
Reference in New Issue
Block a user