摘要 |
An electronic device includes a display, an illumination sensor, a distance detecting unit, a storage unit and a control unit. The illumination sensor periodically detects a current ambient illumination. The distance detecting unit periodically detects a current distance between a user and the electronic device. The control unit determines a corresponding current illumination level, and compares the current illumination level with a historical illumination level. If the current illumination level differs from the historical illumination level, the control unit further compares the current distance with a historical distance. If the current distance differs from the historical distance, the control unit maintains the brightness of the display; otherwise, the control unit adjusts the brightness of the display according to the illumination level. Then, the control unit stores the current illumination level and the current distance in the storage unit to update the historical illumination level and the historical distance.
|