Permalink
Browse files

Disable codepath that requires vibration permission which we don't have

  • Loading branch information...
hrydgard committed Aug 8, 2017
1 parent 7a3a620 commit 3be568224721ed77b079f45146d46e35c9da94a4
Showing with 3 additions and 4 deletions.
  1. +3 −4 android/src/org/ppsspp/ppsspp/NativeActivity.java
@@ -54,7 +54,7 @@
import android.widget.FrameLayout;
import android.widget.Toast;
public class NativeActivity extends Activity implements SurfaceHolder.Callback {
public abstract class NativeActivity extends Activity implements SurfaceHolder.Callback {
// Remember to loadLibrary your JNI .so in a static {} block
// Adjust these as necessary
@@ -1091,9 +1091,8 @@ public boolean processCommand(String command, String params) {
surfView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
break;
default:
if (vibrator != null) {
vibrator.vibrate(milliseconds);
}
// Requires the vibrate permission, which we don't have, so disabled.
// vibrator.vibrate(milliseconds);
break;
}
return true;

0 comments on commit 3be5682

Please sign in to comment.