Merge "Check MissingMethodFlags.COMMIT_CORRECTION at the right place"
This commit is contained in:
committed by
Android (Google) Code Review
commit
3eeb4849c4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user