Summary:

Do you know that moment when you’re on 1% of battery and think “I’ll just use my device 20 more seconds then I’ll get my charger” – and at exactly that moment you’ll see the threaded “Shutting down” dialog and know it’s too late now.
This Xposed module will help by showing you a dialog with a countdown before the actual shutdown, so you’ll have time to attach a charger.