Added fail-safe

pull/214/head
M66B 1 year ago
parent 4928d41226
commit 12a3e4de95

@ -7238,8 +7238,8 @@ public class FragmentCompose extends FragmentBase {
feedback = context.getString(R.string.title_queued_at, DTF.format(draft.ui_snoozed)); feedback = context.getString(R.string.title_queued_at, DTF.format(draft.ui_snoozed));
} }
getMainHandler().post(new Runnable() { getMainHandler().post(new RunnableEx("compose:toast") {
public void run() { public void delegate() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
view.performHapticFeedback(HapticFeedbackConstants.CONFIRM); view.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
ToastEx.makeText(context, feedback, Toast.LENGTH_LONG).show(); ToastEx.makeText(context, feedback, Toast.LENGTH_LONG).show();

Loading…
Cancel
Save