Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0038ac1b authored by Sunny Goyal's avatar Sunny Goyal Committed by Android Git Automerger
Browse files

am bcbc2ec2: Merge "Removing call to isButtonPressed as its only Lollipop and...

am bcbc2ec2: Merge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launcher3-burnaby

* commit 'bcbc2ec2':
  Removing call to isButtonPressed as its only Lollipop and above
parents 6cfe5fcd bcbc2ec2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -101,8 +101,9 @@ public class StylusEventHelper {
     * @param event The event to check.
     * @return Whether a stylus button press occurred.
     */
    public static boolean isStylusButtonPressed(MotionEvent event) {
    private static boolean isStylusButtonPressed(MotionEvent event) {
        return event.getToolType(0) == MotionEvent.TOOL_TYPE_STYLUS
                && event.isButtonPressed(MotionEvent.BUTTON_SECONDARY);
                && ((event.getButtonState() & MotionEvent.BUTTON_SECONDARY)
                        == MotionEvent.BUTTON_SECONDARY);
    }
}
 No newline at end of file