1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

Perform haptic feedback earlier

This commit is contained in:
M66B 2023-11-06 13:49:29 +01:00
parent b7b8c486f2
commit 5f5fdaf884

View file

@ -7240,6 +7240,8 @@ public class FragmentCompose extends FragmentBase {
getMainHandler().post(new Runnable() {
public void run() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
view.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
ToastEx.makeText(context, feedback, Toast.LENGTH_LONG).show();
}
});
@ -7415,7 +7417,6 @@ public class FragmentCompose extends FragmentBase {
} else if (action == R.id.action_send) {
state = State.NONE;
view.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
finish();
}
}