Merge "Fix nullability annotations in InsertGesture API"
This commit is contained in:
@@ -53544,8 +53544,8 @@ package android.view.inputmethod {
|
||||
|
||||
public final class InsertGesture extends android.view.inputmethod.HandwritingGesture implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method @Nullable public android.graphics.PointF getInsertionPoint();
|
||||
method @Nullable public String getTextToInsert();
|
||||
method @NonNull public android.graphics.PointF getInsertionPoint();
|
||||
method @NonNull public String getTextToInsert();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.view.inputmethod.InsertGesture> CREATOR;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public final class InsertGesture extends HandwritingGesture implements Parcelabl
|
||||
}
|
||||
|
||||
/** Returns the text that will be inserted at {@link #getInsertionPoint()} **/
|
||||
@Nullable
|
||||
@NonNull
|
||||
public String getTextToInsert() {
|
||||
return mTextToInsert;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ public final class InsertGesture extends HandwritingGesture implements Parcelabl
|
||||
* Returns the insertion point {@link PointF} (in screen coordinates) where
|
||||
* {@link #getTextToInsert()} will be inserted.
|
||||
*/
|
||||
@Nullable
|
||||
@NonNull
|
||||
public PointF getInsertionPoint() {
|
||||
return mPoint;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user