Fixed direct inline images

This commit is contained in:
M66B 2021-08-20 20:56:11 +02:00
parent ab13f8363c
commit 106e02a385
1 changed files with 20 additions and 18 deletions

View File

@ -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