Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a136110a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y" into tm-dev

parents 5f803607 445ee3c0
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -115,14 +115,6 @@ public final class RemoteAccessibilityInputConnection {
    @AnyThread
    public SurroundingText getSurroundingText(
            @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()) {
            return null;
        }