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;
|
||||
}
|
||||
|
||||
mVibrator.cancel();
|
||||
if( mVibrator != null ) mVibrator.cancel();
|
||||
|
||||
SDLActivity.handlePause();
|
||||
}
|
||||
|
@ -319,7 +319,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