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;
|
||||
}
|
||||
|
||||
mVibrator.cancel();
|
||||
if( mVibrator != null ) mVibrator.cancel();
|
||||
|
||||
SDLActivity.handlePause();
|
||||
}
|
||||
|
@ -314,7 +314,7 @@ public class SDLActivity extends Activity {
|
|||
protected void onDestroy() {
|
||||
Log.v("SDL", "onDestroy()");
|
||||
|
||||
mVibrator.cancel();
|
||||
if( mVibrator != null ) mVibrator.cancel();
|
||||
|
||||
if (SDLActivity.mBrokenLibraries) {
|
||||
super.onDestroy();
|
||||
|
|
Loading…
Add table
Reference in a new issue