mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Perform haptic feedback earlier
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user