mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
Remove vibration when opening board context menu
This commit is contained in:
parent
4230847224
commit
b86e7d31f7
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user