Patent ID: 11960327
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Telecommunications (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 11:
12. A non-transitory computer readable storage medium, storing computer instructions that, when executed by an electronic device, cause the electronic device to perform operations comprising:
determining whether a first use posture of using the electronic device is performed by a user, and locking a first screen of the electronic device in response to the determination of the first use posture being performed, wherein the electronic device is in a folded state, the first screen of the electronic device is on, and a second screen of the electronic device is off; and
upon detecting a photographing scenario of a camera of the electronic device and a flip operation performed by the user of the electronic device, detecting whether an object approaches the electronic device, and in response to a result of detecting whether an object approaches the electronic device, switching from performing displaying on the first screen to performing displaying on a second screen, or maintaining the first screen on and the second screen off,
wherein in response to a result of detecting whether an object approaches the electronic device, switching from performing displaying merely on the first screen to performing displaying merely on the second screen, or maintaining the first screen on and the second screen off comprises:
upon detecting that an object approaches the electronic device, maintaining the first screen on and the second screen off, and
upon detecting that no object approaches the electronic device and when the first screen is not locked, switching from performing displaying merely on the first screen to performing displaying merely on the second screen.