title: EditText's setCustomSelectionActionModeCallback method not working in MIUI
body: <p>I'm trying to create custom selection menu but it does not work on a device wit MIUI rom. Devices with Android + MIUI setCustomSelectionActionModeCallback not working.</p>
  
  <p>Long press the edit text area and select text in the EditText to listen the action mode callback. Custom action mode not work.</p>
  
  <pre><code>editText.setCustomSelectionActionModeCallback(new android.view.ActionMode.Callback() {
      @Override
      public boolean onCreateActionMode(android.view.ActionMode mode, Menu menu) {
          Log.d(LOG_TAG, "onCreateActionMode");
          return true;
      }
  
      @Override
      public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
          Log.d(LOG_TAG, "onPrepareActionMode");
          return false;
      }
  
      @Override
      public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
          return false;
      }
  
      @Override
      public void onDestroyActionMode(ActionMode mode) {
  
      }
  });
  </code></pre>
  
  <p>I have a raised a complaint on MIUI forum - <a href="http://en.miui.com/thread-7072028-1-1.html" rel="noreferrer">http://en.miui.com/thread-7072028-1-1.html</a></p>
  
  <p>Is there any workaround for this problem?</p>
  
  <p><a href="https://i.stack.imgur.com/PsY1b.jpg" rel="noreferrer">Click here to preview the image</a></p>