Bug 951024 - Provide haptic feedback on text selection. r=wesj

This commit is contained in:
Veeti Paananen 2013-12-17 06:15:56 +02:00
parent 7f4bea3af5
commit 4cf21a7ea6

View File

@ -124,6 +124,9 @@ class TextSelection extends Layer implements GeckoEventListener {
if (mActionModeTimerTask != null)
mActionModeTimerTask.cancel();
showActionMode(message.getJSONArray("actions"));
if (handles.length() > 1)
GeckoAppShell.performHapticFeedback(true);
} else if (event.equals("TextSelection:Update")) {
if (mActionModeTimerTask != null)
mActionModeTimerTask.cancel();