Fix crash
This commit is contained in:
parent
7dfb65760d
commit
39c4cfdf81
1 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ public class SDLActivity extends Activity {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mVibrator.cancel();
|
if( mVibrator != null ) mVibrator.cancel();
|
||||||
|
|
||||||
SDLActivity.handlePause();
|
SDLActivity.handlePause();
|
||||||
}
|
}
|
||||||
|
@ -314,7 +314,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