Merge "SmartSelection: Pass hintFlags to native library." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-03-28 14:23:18 +00:00
committed by Android (Google) Code Review

View File

@@ -65,7 +65,7 @@ final class SmartSelection {
*/
public ClassificationResult[] classifyText(
String context, int selectionBegin, int selectionEnd, int hintFlags) {
return nativeClassifyText(mCtx, context, selectionBegin, selectionEnd);
return nativeClassifyText(mCtx, context, selectionBegin, selectionEnd, hintFlags);
}
/**
@@ -81,7 +81,7 @@ final class SmartSelection {
long context, String text, int selectionBegin, int selectionEnd);
private static native ClassificationResult[] nativeClassifyText(
long context, String text, int selectionBegin, int selectionEnd);
long context, String text, int selectionBegin, int selectionEnd, int hintFlags);
private static native void nativeClose(long context);