Remove vibration when opening board context menu

This commit is contained in:
Peter Osterlund 2019-08-31 23:20:10 +02:00
parent 4230847224
commit b86e7d31f7
2 changed files with 0 additions and 4 deletions

View File

@ -983,7 +983,6 @@ public class DroidFish extends Activity
public void run() { public void run() {
pending = false; pending = false;
handler.removeCallbacks(runnable); handler.removeCallbacks(runnable);
((Vibrator)getSystemService(Context.VIBRATOR_SERVICE)).vibrate(20);
reShowDialog(BOARD_MENU_DIALOG); reShowDialog(BOARD_MENU_DIALOG);
} }
}; };

View File

@ -45,14 +45,12 @@ import android.content.ClipData;
import android.content.ClipDescription; import android.content.ClipDescription;
import android.content.ClipboardManager; import android.content.ClipboardManager;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.graphics.Typeface; import android.graphics.Typeface;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.Vibrator;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import androidx.core.view.MotionEventCompat; import androidx.core.view.MotionEventCompat;
import androidx.drawerlayout.widget.DrawerLayout; import androidx.drawerlayout.widget.DrawerLayout;
@ -197,7 +195,6 @@ public class EditBoard extends Activity {
public void run() { public void run() {
pending = false; pending = false;
handler.removeCallbacks(runnable); handler.removeCallbacks(runnable);
((Vibrator)getSystemService(Context.VIBRATOR_SERVICE)).vibrate(20);
drawerLayout.openDrawer(Gravity.LEFT); drawerLayout.openDrawer(Gravity.LEFT);
} }
}; };