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

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

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

* commit '31ccc9f0':
  Fix "Select All" in extracted mode
parents f4874b74 31ccc9f0
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();