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

Commit 98900be9 authored by Haoyu Zhang's avatar Haoyu Zhang Committed by Android (Google) Code Review
Browse files

Merge "Fix: TextBoundsInfoResult constructor should be @Nullable"

parents 93800f31 cc530882
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55946,7 +55946,7 @@ package android.view.inputmethod {
  public final class TextBoundsInfoResult {
    ctor public TextBoundsInfoResult(int);
    ctor public TextBoundsInfoResult(int, @NonNull android.view.inputmethod.TextBoundsInfo);
    ctor public TextBoundsInfoResult(int, @Nullable android.view.inputmethod.TextBoundsInfo);
    method public int getResultCode();
    method @Nullable public android.view.inputmethod.TextBoundsInfo getTextBoundsInfo();
    field public static final int CODE_CANCELLED = 3; // 0x3
+1 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package android.view.inputmethod;

import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.graphics.RectF;

@@ -98,7 +97,7 @@ public final class TextBoundsInfoResult {
     * is null.
     */
    public TextBoundsInfoResult(@ResultCode int resultCode,
            @NonNull TextBoundsInfo textBoundsInfo) {
            @Nullable TextBoundsInfo textBoundsInfo) {
        if (resultCode == CODE_SUCCESS && textBoundsInfo == null) {
            throw new IllegalStateException("TextBoundsInfo must be provided when the resultCode "
                    + "is CODE_SUCCESS.");