CPC G06F 1/1677 (2013.01) [G06F 1/1641 (2013.01); G06F 1/1652 (2013.01); G06F 1/3212 (2013.01)] | 20 Claims |
1. An electronic device, comprising:
a battery;
a first sensor configured to detect a folding angle of the electronic device;
a flexible display;
a sub-display; and
a processor configured to determine whether the electronic device is in a folding mode or an unfolding mode based on a detection result from the first sensor, wherein the processor is configured to: based on a battery information provision request in the folding mode of the electronic device, calculate a first available time of the battery in the folding mode based on a power consumption in the folding mode and an available capacity of the battery and control the sub-display to display the available capacity and the first available time on the sub-display, and based on the battery information provision request in the unfolding mode of the electronic device, calculate a second available time of the battery in the unfolding mode based on a power consumption in the unfolding mode and the available capacity and control the flexible display to display the available capacity and the second available time on the flexible display.
|