Skip to content

Commit

Permalink
修复纯图片模式(录制和录音都为0)的情况下拍照没反应的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
aaatttcccc committed Dec 6, 2021
1 parent 75c5403 commit a4164af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,13 @@ public boolean onTouchEvent(MotionEvent event) {
return true;
}
Log.d(TAG, "onTouchEvent: down");
step = 1;
// 是否支持长按
boolean longClick = mClickOrLongListener != null
&& (mButtonState == BUTTON_STATE_ONLY_LONG_CLICK ||
mButtonState == BUTTON_STATE_BOTH);
if (longClick) {
Log.d(TAG, "onTouchEvent: startTicking");
step = 1;
startTicking();
}
}
Expand Down

0 comments on commit a4164af

Please sign in to comment.