Toast on undo/redo

This commit is contained in:
M66B 2020-07-02 19:58:22 +02:00
parent f27d7a49ef
commit eace34388f
1 changed files with 6 additions and 1 deletions

View File

@ -4292,7 +4292,12 @@ public class FragmentCompose extends FragmentBase {
Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable() {
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();
}
});
}