mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Fix crash
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user