final InputConnection ic = getCurrentInputConnection();
if (ic == null) {
return false;
}
if (!validatePackageName(editorInfo)) {
return false;
}
final String[] supportedMimeTypes = EditorInfoCompat.getContentMimeTypes(editorInfo);// Here is the empty array, and results in false return
for (String supportedMimeType : supportedMimeTypes) {
if (ClipDescription.compareMimeTypes(mimeType, supportedMimeType)) {
return true;
}
}
return false;
}
when running to this method, it always returns an empty array:
private boolean isCommitContentSupported( @Nullable EditorInfo editorInfo, @NonNull String mimeType) { if (editorInfo == null) { return false; }
I'm running on an Android 8 device