在做录音处理的时候
在魅族的系统下:
调用record,系统会弹出对话框询问用户是否允许权限
这个时候touch事件会被打断,但是ui并没有做相应的处理
解决这个问题可以在
case MotionEvent.ACTION_CANCEL:里面做处理
/**
* Constant for {@link #getActionMasked}: The current gesture has been aborted.
* You will not receive any more points in it. You should treat this as
* an up event, but not perform any action that you normally would.
*/
public static final int ACTION_CANCEL = 3;