Perform haptic feedback earlier

pull/214/head
M66B 1 year ago
parent b7b8c486f2
commit 5f5fdaf884

@ -7240,6 +7240,8 @@ public class FragmentCompose extends FragmentBase {
getMainHandler().post(new Runnable() { getMainHandler().post(new Runnable() {
public void run() { public void run() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
view.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
ToastEx.makeText(context, feedback, Toast.LENGTH_LONG).show(); ToastEx.makeText(context, feedback, Toast.LENGTH_LONG).show();
} }
}); });
@ -7415,7 +7417,6 @@ 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);
finish(); finish();
} }
} }

Loading…
Cancel
Save