You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
I'm running on an Android 8 device
The text was updated successfully, but these errors were encountered:
codingjeremy
transferred this issue from googlearchive/android-CommitContentSampleIME
Sep 16, 2019
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
The text was updated successfully, but these errors were encountered: