Merge "Check MissingMethodFlags.COMMIT_CORRECTION at the right place"

This commit is contained in:
TreeHugger Robot
2021-07-19 21:06:58 +00:00
committed by Android (Google) Code Review

View File

@@ -247,15 +247,15 @@ final class RemoteInputConnection implements InputConnection {
@AnyThread
public boolean commitCompletion(CompletionInfo text) {
if (isMethodMissing(MissingMethodFlags.COMMIT_CORRECTION)) {
// This method is not implemented.
return false;
}
return mInvoker.commitCompletion(text);
}
@AnyThread
public boolean commitCorrection(CorrectionInfo correctionInfo) {
if (isMethodMissing(MissingMethodFlags.COMMIT_CORRECTION)) {
// This method is not implemented.
return false;
}
return mInvoker.commitCorrection(correctionInfo);
}