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:
parent
b7b8c486f2
commit
5f5fdaf884
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue