Fixed crash

pull/183/head
M66B 5 years ago
parent e2aa040032
commit 95b5c71cf3

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

Loading…
Cancel
Save