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

Commit 8af7432c authored by Andrei Stingaceanu's avatar Andrei Stingaceanu Committed by Android (Google) Code Review
Browse files

Merge "Fix "Select All" in extracted mode" into mnc-dev

parents f5e20ec3 5396c131
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -103,7 +103,8 @@ public class ExtractEditText extends EditText {
    }

    @Override public boolean onTextContextMenuItem(int id) {
        if (mIME != null && mIME.onExtractTextContextMenuItem(id)) {
        // Select all shouldn't be handled by the original edit text, but by the extracted one.
        if (id != android.R.id.selectAll && mIME != null && mIME.onExtractTextContextMenuItem(id)) {
            // Mode was started on Extracted, needs to be stopped here.
            // Cut will change the text, which stops selection mode.
            if (id == android.R.id.copy || id == android.R.id.paste) stopTextActionMode();