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

Commit 641207d1 authored by Clara Bayarri's avatar Clara Bayarri Committed by Android (Google) Code Review
Browse files

Merge "Enable Text Selection Action Mode for seach boxes and action bar components."

parents 3448ff8e 0433ae61
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -643,6 +643,10 @@ public class SearchDialog extends Dialog {
        @Override
        public ActionMode startActionModeForChild(
                View child, ActionMode.Callback callback, int type) {
            // Disable Primary Action Modes in the SearchBar, as they overlap.
            if (type != ActionMode.TYPE_PRIMARY) {
                return super.startActionModeForChild(child, callback, type);
            }
            return null;
        }
    }
+0 −6
Original line number Diff line number Diff line
@@ -250,12 +250,6 @@ public class ActionBarContainer extends FrameLayout {
        return mTabContainer;
    }

    @Override
    public ActionMode startActionModeForChild(View child, ActionMode.Callback callback) {
        // No starting an action mode for an action bar child! (Where would it go?)
        return null;
    }

    @Override
    public ActionMode startActionModeForChild(
            View child, ActionMode.Callback callback, int type) {