title: MIUI10 android textview setOnTouchListener ACTION_UP not called
body: <p>I am confused about this strange problem. Normally, on many phones, this is not a problem. But I tried three MIUI10 phones with this problem, and other systems have not encountered it. Perhaps this is a MIUI10 system bug? </p>
  
  <p>If you have a MIUI10 phone, please help test it. </p>
  
  <p>And <strong>how can I solve this problem to be compatible with many devices?</strong> All help is welcome.</p>
  
  <p>The code is as follows, very simple:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;TextView
          android:id="@+id/text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_alignParentBottom="true"
          android:layout_marginBottom="50dp"
          android:padding="15dp"
          android:background="#1ad9ca"
          android:textColor="#ffffff"
          android:text="Hold to talk" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  findViewById(R.id.text).setOnTouchListener(new View.OnTouchListener() {
      @Override
      public boolean onTouch(View view, MotionEvent motionEvent) {
          switch (motionEvent.getAction()) {
              case MotionEvent.ACTION_DOWN:
                  Log.d(TAG, "ACTION_DOWN");
                  break;
              case MotionEvent.ACTION_MOVE:
                  Log.d(TAG, "ACTION_MOVE");
                  break;
              case MotionEvent.ACTION_UP:
                  Log.d(TAG, "ACTION_UP");
                  break;
              case MotionEvent.ACTION_CANCEL:
                  Log.d(TAG, "ACTION_CANCEL");
                  break;
          }
  
          return true;
      }
  });
  </code></pre>
  
  <p>And in my device, <strong>Hold TextView for a few seconds and raise my hand</strong>, ACTION_CANCEL is called, and <strong>ACTION_UP is not called</strong>. Here are the logs:</p>
  
  <pre><code>D/MainActivity: ACTION_DOWN
  D/MainActivity: ACTION_MOVE
  D/MainActivity: ACTION_MOVE
  D/MainActivity: ACTION_CANCEL
  </code></pre>
  
  <p>And <strong>I want to do some logic in ACTION_UP case</strong>, not in ACTION_CANCEL case.</p>
  
  <p>The test device info:</p>
  
  <pre><code>Phone name: Xiaomi 8
  Android system version: Android 9
  MIUI system version: MIUI 10.1.2.0
  </code></pre>