Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y" into tm-dev am: a136110aa2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17891640 Change-Id: Icd99621a24985abd6c78aba40b3a0756e2a8071d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -115,14 +115,6 @@ public final class RemoteAccessibilityInputConnection {
|
|||||||
@AnyThread
|
@AnyThread
|
||||||
public SurroundingText getSurroundingText(
|
public SurroundingText getSurroundingText(
|
||||||
@IntRange(from = 0) int beforeLength, @IntRange(from = 0) int afterLength, int flags) {
|
@IntRange(from = 0) int beforeLength, @IntRange(from = 0) int afterLength, int flags) {
|
||||||
if (beforeLength < 0) {
|
|
||||||
throw new IllegalArgumentException("beforeLength cannot be negative but was "
|
|
||||||
+ beforeLength);
|
|
||||||
}
|
|
||||||
if (afterLength < 0) {
|
|
||||||
throw new IllegalArgumentException("afterLength cannot be negative but was "
|
|
||||||
+ afterLength);
|
|
||||||
}
|
|
||||||
if (mCancellationGroup.isCanceled()) {
|
if (mCancellationGroup.isCanceled()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user