Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
S Pen Available Samsung Device.
U OS.
There is a function that selects Text by pressing the button of Samsung's S pen.
If you press the button of S pen and drag to select the text of ViewPager, scroll occurs and normal text selection is not possible.
This problem occurs only in U OS.
Before U OS, when pressing Samsung's S pen button, Samsung's custom events such as SEM_ACTION_PEN_DOWN were delivered.
So Viewpager.onInterceptTouchEvent dragging logic didn't work.
But new cts test is added in U OS. So Samsung changed custom events such as SEM_ACTION_PEN_DOWN to Android events such as ACTION_DOWN.
(
So Viewpager.onInterceptTouchEvent dragging logic is occurring.
When pressing button in S pen, MotionEvent is as follows:
MotIonEvent event.getToolType(0) == MotionEvent.TOOL_TYPE_STYLUS
MotIonEvent event.getButtonState() == MotionEvent.BUTTON_STYLUS_PRIMARY
Please check whether it is possible to check ToolType and ButtonState when determining dragging in onInterceptTouchEvent.