Delay finish for haptic feedback

pull/214/head
M66B 1 year ago
parent 3847d059ff
commit f1a16193e0

@ -7416,8 +7416,13 @@ public class FragmentCompose extends FragmentBase {
} else if (action == R.id.action_send) { } else if (action == R.id.action_send) {
state = State.NONE; state = State.NONE;
view.performHapticFeedback(HapticFeedbackConstants.CONFIRM); view.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
view.postDelayed(new Runnable() {
@Override
public void run() {
finish(); finish();
} }
}, 20);
}
} }
@Override @Override

Loading…
Cancel
Save