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

Commit cf6158a3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y"...

Merge "Fix testGetSurroundingTextFailWithNegative{Before,After}LengthForA11y" into tm-dev am: a136110a am: 4000d3d6 am: ac8f7285

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17891640



Change-Id: Idac5f4d07b231aec0acbfbb9c0d95141f7984179
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 1e465d81 ac8f7285
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -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;
        }
        }