add status jugement,while ac adapter is on line