mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-05 10:39:24 +02:00
also allow image/webp as sticker format
This commit is contained in:
parent
d7729b6001
commit
073c915d24
1 changed files with 5 additions and 1 deletions
|
@ -126,7 +126,11 @@ public class ComposeText extends EmojiEditText {
|
|||
if (mediaListener == null) return inputConnection;
|
||||
if (inputConnection == null) return null;
|
||||
|
||||
EditorInfoCompat.setContentMimeTypes(editorInfo, new String[] {"image/jpeg", "image/png", "image/gif"});
|
||||
// media with mime-types defined by setContentMimeTypes() may be selected in the system keyboard
|
||||
// and are passed to onCommitContent() then;
|
||||
// from there we use them as stickers.
|
||||
EditorInfoCompat.setContentMimeTypes(editorInfo, new String[] {"image/jpeg", "image/png", "image/gif", "image/webp"});
|
||||
|
||||
return InputConnectionCompat.createWrapper(inputConnection, editorInfo, new CommitContentListener(mediaListener));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue