title: Devices with Android + MIUI and setCustomSelectionActionModeCallback
body: <p>I'm trying to create custom selection menu but it does not work on a device with rom MIUI and Android 6. The result is common menu with <code>copy</code> and <code>select all</code> items. On other devices and simulators under clean Android it works just fine.</p>
  <p>The code:</p>
  <pre><code>        textViewTop.setCustomSelectionActionModeCallback(new android.view.ActionMode.Callback() {
          @Override
          public boolean onCreateActionMode(android.view.ActionMode mode, Menu menu) {
  
              Log.d(LOG_TAG, &quot;onCreateActionMode&quot;);
  
              return true;
          }
  
          @Override
          public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
              Log.d(LOG_TAG, &quot;onPrepareActionMode&quot;);
              menu.clear();
  
              int quote_quick = R.drawable.ic_desktop_mac_black_24dp;
              int quote_add = R.drawable.ic_computer_black_24dp;
              int copy = R.drawable.ic_devices_other_black_24dp;
  
              menu.add(Menu.NONE, QUOTE_START, 3, &quot;&quot;).setIcon(quote_quick).setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS);
              menu.add(Menu.NONE, QUOTE_ADD, 2, &quot;&quot;).setIcon(quote_add).setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS);
              menu.add(Menu.NONE, CUSTOM_COPY, 1, &quot;&quot;).setIcon(copy).setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS);
              return false;
          }
  
          @Override
          public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
              return false;
          }
  
          @Override
          public void onDestroyActionMode(ActionMode mode) {
  
          }
      });
  </code></pre>