Updated top-bar-show-actual-battery-percent
[webos-internals:justyns-modifications.git] / top-bar / top-bar-show-actual-battery-percent.patch
1 diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2 index ee479ac..ae3563c 100644
3 --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5 @@ -1435,6 +1435,10 @@ closePbapAlert: function() {
6   */
7  handlePowerNotifications: function(payload) {
8         
9 +       //Show Actual Percent
10 +       //Ugly, but it's the easiest way to keep this compatible with the Battery Icon patches. 
11 +       payload.percent_ui = payload.percent;
12 +
13         Mojo.Log.info("SystemUI Power Payload "+ Object.toJSON(payload));
14         if(!this.powerdServiceUp) {
15                 Mojo.Log.error("SystemUI PowerD down -- ignoring the notification");