Make android save more robust
This commit is contained in:
parent
3ba403f30e
commit
e8cba9dc15
14 changed files with 61 additions and 33 deletions
|
|
@ -36,6 +36,7 @@ import org.libsdl.app.SDLDummyEdit;
|
|||
import org.libsdl.app.SDLSurface;
|
||||
|
||||
public class InfiniPaint extends SDLActivity {
|
||||
public static native void androidOnStop();
|
||||
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
@ -50,6 +51,11 @@ public class InfiniPaint extends SDLActivity {
|
|||
// window.setNavigationBarContrastEnforced(false);
|
||||
}
|
||||
|
||||
protected void onStop() {
|
||||
androidOnStop();
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
protected SDLSurface createSDLSurface(Context context) {
|
||||
return new InfiniPaintSurface(context);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue