by Luca Barbero
When the battery is under 20% if it is not charging, it activates the energy saving mode, deactivates mobile data, silences and stops the music
When it is in charge, it reactivates the ring tone and when it goes back to 30% it deactivates the energy saving
If you have an Android version lower than 5.0 you have to remove the blocks related to energy saving because it is not compatible with versions lower than 5.0!!!!