From b86e7d31f7ca3ad926db83d5e75193596906cb55 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 31 Aug 2019 23:20:10 +0200 Subject: [PATCH] Remove vibration when opening board context menu --- DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java | 1 - .../main/java/org/petero/droidfish/activities/EditBoard.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java index ee5e4dd..517fede 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java @@ -983,7 +983,6 @@ public class DroidFish extends Activity public void run() { pending = false; handler.removeCallbacks(runnable); - ((Vibrator)getSystemService(Context.VIBRATOR_SERVICE)).vibrate(20); reShowDialog(BOARD_MENU_DIALOG); } }; diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditBoard.java b/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditBoard.java index 339f17d..a7f0e0e 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditBoard.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/activities/EditBoard.java @@ -45,14 +45,12 @@ import android.content.ClipData; import android.content.ClipDescription; import android.content.ClipboardManager; import android.content.Context; -import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Configuration; import android.graphics.Typeface; import android.os.Bundle; import android.os.Handler; -import android.os.Vibrator; import android.preference.PreferenceManager; import androidx.core.view.MotionEventCompat; import androidx.drawerlayout.widget.DrawerLayout; @@ -197,7 +195,6 @@ public class EditBoard extends Activity { public void run() { pending = false; handler.removeCallbacks(runnable); - ((Vibrator)getSystemService(Context.VIBRATOR_SERVICE)).vibrate(20); drawerLayout.openDrawer(Gravity.LEFT); } };