Toast on undo/redo

pull/183/head
M66B 5 years ago
parent f27d7a49ef
commit eace34388f

@ -4292,7 +4292,12 @@ public class FragmentCompose extends FragmentBase {
Handler handler = new Handler(context.getMainLooper()); Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable() { handler.post(new Runnable() {
public void run() { public void run() {
ToastEx.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show(); if (action == R.id.action_undo)
ToastEx.makeText(getContext(), R.string.title_undo, Toast.LENGTH_LONG).show();
else if (action == R.id.action_redo)
ToastEx.makeText(getContext(), R.string.title_redo, Toast.LENGTH_LONG).show();
else
ToastEx.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show();
} }
}); });
} }

Loading…
Cancel
Save