A EditText ( or AppCompatEditText ) with height limit.(like maxLines = 3)
Text long enough (so that we can hold down the delete key long enough and drag the cursor
Long press the delete button of the input method to enter continuous deletion
While pressing the delete button with one hand, use the other hand to long press the beginning of a line that has not been deleted but is about to be deleted (this makes the behavior of "the cursor moves with the finger" easier to be triggered), Then try to move your fingers without letting go.
Observe whether the cursor moves accordingly, if yes, go to the next step; otherwise, go back to the previous step
Drag the cursor to the end of the last character in the text box
Hold the current position with both hands.
A crash occurs. If the crash does not happen, don't let go, drag the cursor up for a certain distance, and then drag the cursor to the back of the last character again, repeat no more than 2 times, and the crash will definitely happen.
code
activity:
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}
Description
device
Pixel 4XL
android version
14
version
TP1A.221005.002 (ANY android 13)
how can I reproduce
code
activity:
xml: