Fixed direct inline images

pull/204/head
M66B 3 years ago
parent ab13f8363c
commit 106e02a385

@ -4961,22 +4961,10 @@ public class FragmentCompose extends FragmentBase {
if (draft.content && state == State.NONE)
showDraft(draft);
tvDsn.setVisibility(
draft.dsn != null && !EntityMessage.DSN_NONE.equals(draft.dsn)
? View.VISIBLE : View.GONE);
tvPlainTextOnly.setVisibility(
draft.plain_only != null && draft.plain_only && !plain_only
? View.VISIBLE : View.GONE);
tvNoInternet.setTag(draft.content);
checkInternet();
}
}
});
if (args.containsKey("images")) {
ArrayList<Uri> images = args.getParcelableArrayList("images");
args.remove("images"); // once
boolean image_dialog = prefs.getBoolean("image_dialog", true);
if (image_dialog) {
Helper.hideKeyboard(view);
@ -4992,6 +4980,20 @@ public class FragmentCompose extends FragmentBase {
} else
onAddImageFile(images);
}
tvDsn.setVisibility(
draft.dsn != null && !EntityMessage.DSN_NONE.equals(draft.dsn)
? View.VISIBLE : View.GONE);
tvPlainTextOnly.setVisibility(
draft.plain_only != null && draft.plain_only && !plain_only
? View.VISIBLE : View.GONE);
tvNoInternet.setTag(draft.content);
checkInternet();
}
}
});
}
@Override

Loading…
Cancel
Save