摘要 |
A method and electronic device for controlling a state of the electronic device is disclosed. The electronic device includes a touch panel, a front cover configured to cover the touch panel in a closed state, and expose the touch panel in an open state, and a control unit. An electronic device state is detected, including at least a sleep mode and an active mode, and a front cover state is detected, including at least the closed state and the open state. The electronic device state is maintained according to a first combination of the electronic device state and the front cover state. The electronic device state is altered according to a second combination of the electronic device state and the front cover state. |