Added revision debugging

This commit is contained in:
M66B 2020-07-03 20:24:06 +02:00
parent fa28121df9
commit 36c67c8711
1 changed files with 9 additions and 3 deletions

View File

@ -4306,12 +4306,18 @@ public class FragmentCompose extends FragmentBase {
Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable() {
public void run() {
int id;
if (action == R.id.action_undo)
ToastEx.makeText(getContext(), R.string.title_undo, Toast.LENGTH_LONG).show();
id = R.string.title_undo;
else if (action == R.id.action_redo)
ToastEx.makeText(getContext(), R.string.title_redo, Toast.LENGTH_LONG).show();
id = R.string.title_redo;
else
ToastEx.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show();
id = R.string.title_draft_saved;
ToastEx.makeText(getContext(),
getString(id) +
(BuildConfig.DEBUG ? ":" + draft.revision : ""),
Toast.LENGTH_LONG).show();
}
});
}