CPC H02J 7/0031 (2013.01) [H02J 7/0042 (2013.01); H02J 7/00302 (2020.01); H02J 7/00304 (2020.01); H02J 7/00308 (2020.01); H02J 7/00309 (2020.01); H02J 7/007192 (2020.01); H02J 7/00 (2013.01); H02J 7/00034 (2020.01)] | 20 Claims |
1. An electronic device, comprising:
a battery;
a display interface;
a charging port;
a memory configured to store program code; and
a processor coupled to the battery, the display interface, the charging port, and the memory and configured to execute the program code to cause the electronic device to:
charge the battery using the charging port when a charger is connected to the charging port;
stop charging the battery in response to detecting that the charging port is abnormal; and
display a first window on the display interface in response to detecting that the charging port is abnormal,
wherein the first window comprises first prompt information and second prompt information,
wherein the first prompt information prompts that liquid is in the charging port, and
wherein the second prompt information prompts a user to address liquid intake in the charging port.
|