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

Commit 943b001c authored by Andrei Stingaceanu's avatar Andrei Stingaceanu Committed by Android Git Automerger
Browse files

am b9384d5d: am 31ccc9f0: am a7e2ab6e: am 8af7432c: Merge "Fix "Select All" in...

am b9384d5d: am 31ccc9f0: am a7e2ab6e: am 8af7432c: Merge "Fix "Select All" in extracted mode" into mnc-dev

* commit 'b9384d5d':
  Fix "Select All" in extracted mode
parents 35ae7a0a b9384d5d
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();