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

Commit 7bfd2fac authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

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
parent e6cd60da
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;