Remove @UnsupportedAppUsage from EditableInputConnection

As described in the previous CL [1], there are alternatives for app
deverlopers who somehow had to directly rely on
EditableInputConnection.

 [1]: I0c879645a84fde14dd6444bb4735f543457e43a8

Fix: 192969370
Test: atest CtsInputMethodTestCases
Change-Id: I6b60f52dfea99c262fddbc5f3d87d6f0967ae8e7
This commit is contained in:
Yohei Yukawa
2021-07-07 09:04:00 -07:00
parent e6cd60da19
commit 7bfd2facc1

View File

@@ -22,7 +22,6 @@ import static android.view.inputmethod.InputConnectionProto.SELECTED_TEXT;
import static android.view.inputmethod.InputConnectionProto.SELECTED_TEXT_END;
import static android.view.inputmethod.InputConnectionProto.SELECTED_TEXT_START;
import android.compat.annotation.UnsupportedAppUsage;
import android.os.Bundle;
import android.text.Editable;
import android.text.Selection;
@@ -55,10 +54,6 @@ public class EditableInputConnection extends BaseInputConnection
// A negative value means that this connection has been finished by the InputMethodManager.
private int mBatchEditNesting;
@UnsupportedAppUsage(trackingBug = 192969370,
publicAlternatives = "Use {@link android.view.inputmethod.InputConnectionWrapper} to "
+ "intercept method calls. Or directly implement "
+ "{@link android.view.inputmethod.InputConnection} for your own editor.")
public EditableInputConnection(TextView textview) {
super(textview, true);
mTextView = textview;