Commit 5a456472 authored by Tiago Cunha's avatar Tiago Cunha

InputConnection may be null.

parent 3b05bafe
...@@ -52,6 +52,9 @@ public class ImageKeyboardEditText extends EditText { ...@@ -52,6 +52,9 @@ public class ImageKeyboardEditText extends EditText {
@Override @Override
public InputConnection onCreateInputConnection(EditorInfo editorInfo) { public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
final InputConnection inputConnection = super.onCreateInputConnection(editorInfo); final InputConnection inputConnection = super.onCreateInputConnection(editorInfo);
if (inputConnection == null) {
return null;
}
EditorInfoCompat.setContentMimeTypes(editorInfo, mimeTypes); EditorInfoCompat.setContentMimeTypes(editorInfo, mimeTypes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment