Fix crash
This commit is contained in:
parent
fd4695bfbe
commit
6306424102
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ public class SDLActivity extends Activity {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mVibrator.cancel();
|
if( mVibrator != null ) mVibrator.cancel();
|
||||||
|
|
||||||
SDLActivity.handlePause();
|
SDLActivity.handlePause();
|
||||||
}
|
}
|
||||||
|
@ -319,7 +319,7 @@ public class SDLActivity extends Activity {
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
Log.v("SDL", "onDestroy()");
|
Log.v("SDL", "onDestroy()");
|
||||||
|
|
||||||
mVibrator.cancel();
|
if( mVibrator != null ) mVibrator.cancel();
|
||||||
|
|
||||||
if (SDLActivity.mBrokenLibraries) {
|
if (SDLActivity.mBrokenLibraries) {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
Loading…
Add table
Reference in a new issue