Skip to content

Conversation

@huaihong1986
Copy link

Summary:

Test Plan:

@wojteg1337
Copy link
Contributor

Hello, thanks for your contribution.

Please translate comments in code to English & fill the description of pull request.

@huaihong1986
Copy link
Author

OK, I have done.

@wojteg1337
Copy link
Contributor

wojteg1337 commented Apr 14, 2021

Hi @huaihong1986,

The description of merge request is empty.

Here is exemplary mr with description

image

if (getParent() != null) {
try {
getParent().requestDisallowInterceptTouchEvent(true);
//SeekBar 放在其他视图中,手指放在 SeekBar 上面不会立即触发滑动操作
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code should always be self-explanatory.
If comments are required for the code to be more understandable they should be written in English.

Applies also to line 239.

dispatchTouchEvent(evup);
evup.recycle();
}
} catch (Exception exception) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why leaving an empty exception here?

public boolean onTouchEvent(MotionEvent event) {
//设置父容器不拦截事件
if (getParent() != null) {
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exceptions do we expect here to be thrown by MotionEvent?
getParent() is already checked against null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants