IP Library Granted Patent US 10,831,314
Granted Patent B2
US 10,831,314 · App. 15/699,019 · Granted Nov 10, 2020

Method and electronic device for preventing touch button from being false triggered

Inventors: Qiang Zhang (Guangdong, CN); Yixue Ge (Guangdong, CN); Hao Wang (Guangdong, CN)
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
G06F3/0418G06F3/0412G06F3/0482G06F3/04842G06F3/04886
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,831,314
App. No.
15/699,019
Granted
Nov 10, 2020
Kind
B2
Abstract

The disclosure provides a method and an electronic device for preventing touch button from being touched, and the method includes operations as follows. When detecting the touch button being touched, obtaining a current screen direction state of the electronic device. When the screen direction state is the first direction state, determining a touch operation on the touch button and judging whether the touch operation is a predefined touch operation. When the touch operation is the predefined touch operation, reporting a key value of the touch button to trigger a function of the touch button.

Claims (39)

1. A method for preventing touch button from being false triggered, comprising:

upon detecting a touch button of the electronic device being touched, obtaining a screen direction state of an electronic device;

in response to the screen direction state being a landscape state, determining a touch operation on the touch button and judging whether the touch operation is a predefined touch operation, wherein the predefined touch operation is at least one of a click operation with at least two click times, a touch operation having a pressure value that is greater than a preset pressure value, or a touch operation having a touch duration that is greater than a preset duration;

in response to the touch operation being predefined touch operation, reporting a key value of the touch button to trigger a function of the touch button; and

in response to the screen direction state being a portrait screen state, reporting the key value of the touch button to trigger the function of the touch button.

2. The method of claim 1 , wherein determining the touch operation on the touch button and judging whether the touch operation is the predefined touch operation, when the screen direction state is the first direction state comprises:

determining a type of a currently displayed application when the screen direction state is the first direction state; and

determining the touch operation on the touch button and judging whether the touch operation is the predefined touch operation, when the type of the currently displayed application is a predefined application type.

3. The method of claim 2 , further comprising:

after determining the type of the currently displayed application, reporting the key value of the touch button to trigger the function of the touch button in response to the touch operation on the touch button, when the type of the currently displayed application is not the predefined application type.

4. The method of claim 2 , wherein the predefined application type is one of a video player application type or a game application type.

5. The method of claim 1 , wherein obtaining the screen direction state of the electronic device comprises:

obtaining the screen direction state of the electronic device via a standard interface of a first operating system when an operating system of the electronic device is the first operating system.

6. The method of claim 1 , wherein determining the touch operation on the touch button comprises:

determining what the touch operation on the touch button is.

7. An electronic device, comprising:

a touch button;

a processor; and

a memory storing a plurality of instructions, the plurality of instructions being executed by the processor and causing the processor to:

obtain a screen direction state of the electronic device upon detecting a touch button of the electronic device being touched;

in response to the screen direction state being a landscape state, determine a touch operation on the touch button and judge whether the touch operation is a predefined touch operation, wherein the predefined touch operation is at least one of a click operation with at least two click times, a touch operation having a pressure value that is greater than a preset pressure value, or a touch operation having a touch duration that is greater than a preset duration;

in response to the touch operation being the predefined touch operation, report a key value of the touch button to trigger a function of the touch button; and

in response to the screen direction state being a portrait screen state, report the key value of the touch button to trigger the function of the touch button in response to the touch operation on the touch button.

8. The electronic device of claim 7 , wherein the processor configured to determine the touch operation on the touch button and judge whether the touch operation is the predefined touch operation when the screen direction state is the first direction state is further configured to:

determine a type of a currently displayed application when the screen direction state is the first direction state; and

determine the touch operation on the touch button and judge whether the touch operation is the predefined touch operation when the type of the currently displayed application is a predefined application type.

9. The electronic device of claim 8 , wherein the instructions further cause the processor to:

report the key value of the touch button to trigger the function of the touch button when the type of the currently displayed application is not the predefined application type.

10. The electronic device of claim 8 , wherein the predefined application type is one of a video player application type or a game application type.

11. The electronic device of claim 7 , wherein the processor configured to obtain the current screen direction state of the electronic device is further configured to:

obtain the screen direction state of the electronic device via a standard interface of a first operating system when an operating system of the electronic device is the first operating system.

12. The electronic device of claim 7 , wherein the processor configured to determine a touch operation on the touch button is further configured to:

determine what the touch operation on the touch button is.

13. The electronic device of claim 7 , wherein the electronic device further comprises a touch screen with a touch area, and the touch button is outside of the touch area.

14. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a plurality of instructions, when the plurality of instructions is executed by a computer, the computer is caused to execute a method for preventing touch button from being falsely triggered, the method comprising:

upon detecting a touch button of the electronic device being touched, obtaining a screen direction state of an electronic device;

in response to the screen direction state being a landscape state, determining a touch operation on the touch button and judging whether the touch operation is a predefined touch operation, wherein the predefined touch operation is at least one of a click operation with at least two click times, a touch operation having a pressure value that is greater than a preset pressure value, or a touch operation having a touch duration that is greater than a preset duration;

in response to the touch operation being the predefined touch operation, reporting a key value of the touch button to trigger a function of the touch button; and

in response to the screen direction state being a portrait state, reporting the key value of the touch button to trigger the function of the touch button in response to the touch operation on the touch button.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 8, 2017
From: ZHANG, QIANG; GE, YIXUE; WANG, HAO
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 043792/0479 →
Priority Claims (1)
CN 2016 1 1165123 · Dec 16, 2016 · national
Continuity (1)
Related Publication 20180173368A1 · Jun 21, 2018