|
|
|
@ -131,9 +131,9 @@ public class ComposeText extends EmojiEditText {
|
|
|
|
|
editorInfo.imeOptions &= ~EditorInfo.IME_FLAG_NO_ENTER_ACTION;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT <= 13) return inputConnection;
|
|
|
|
|
if (mediaListener == null) return inputConnection;
|
|
|
|
|
if (inputConnection == null) return null;
|
|
|
|
|
if (Build.VERSION.SDK_INT < 21) return inputConnection;
|
|
|
|
|
if (mediaListener == null) return inputConnection;
|
|
|
|
|
if (inputConnection == null) return null;
|
|
|
|
|
|
|
|
|
|
EditorInfoCompat.setContentMimeTypes(editorInfo, new String[] {"image/jpeg", "image/png", "image/gif"});
|
|
|
|
|
return InputConnectionCompat.createWrapper(inputConnection, editorInfo, new CommitContentListener(mediaListener));
|
|
|
|
|