Difference between revisions of "Patch Enable LED Notifications"
(New page: Two files need to be modified. /usr/palm/applications/com.app.screenlock/app/controllers/securityconfig-assistant.js Uncomment lines 54,55,248-251. /usr/palm/applications/com.app.scree...) |
m (made more newbie friendly) |
||
Line 1: | Line 1: | ||
+ | This patch needs a rooted Pre to manually make these changes though a command line. | ||
+ | |||
Two files need to be modified. | Two files need to be modified. | ||
Line 5: | Line 7: | ||
Uncomment lines 54,55,248-251. | Uncomment lines 54,55,248-251. | ||
+ | Here is what the files should look like: | ||
+ | <source lang=text> | ||
+ | Lines 54/55: | ||
+ | //this.controller.setupWidget('blinkAlerts', this.onOffToggleOpt, this.ledThrobberToggleModel); | ||
+ | //Mojo.Event.listen($('blinkAlerts'),'mojo-property-change', this.toggleLEDThrobber.bindAsEventListener(this)); | ||
+ | |||
+ | Should be changed to: | ||
+ | this.controller.setupWidget('blinkAlerts', this.onOffToggleOpt, this.ledThrobberToggleModel); | ||
+ | Mojo.Event.listen($('blinkAlerts'),'mojo-property-change', this.toggleLEDThrobber.bindAsEventListener(this)); | ||
+ | </source> | ||
+ | |||
+ | <source lang=text> | ||
+ | Lines 248-251: | ||
+ | /*if (payload.LEDThrobberEnabled != undefined) { | ||
+ | this.ledThrobberToggleModel.value = payload.LEDThrobberEnabled; | ||
+ | this.controller.modelChanged(this.ledThrobberToggleModel, this); | ||
+ | }*/ | ||
+ | |||
+ | Should be changed to: | ||
+ | if (payload.LEDThrobberEnabled != undefined) { | ||
+ | this.ledThrobberToggleModel.value = payload.LEDThrobberEnabled; | ||
+ | this.controller.modelChanged(this.ledThrobberToggleModel, this); | ||
+ | } | ||
+ | |||
+ | </source> | ||
/usr/palm/applications/com.app.screenlock/app/views/securityconfig/securityconfig-scene.html: | /usr/palm/applications/com.app.screenlock/app/views/securityconfig/securityconfig-scene.html: | ||
Uncomment 92-97 and 101-103. | Uncomment 92-97 and 101-103. | ||
+ | |||
+ | <source lang=text> | ||
+ | Lines 92-97: | ||
+ | <!--<div class="palm-row last"> | ||
+ | <div class="palm-row-wrapper"> | ||
+ | <div x-mojo-element="ToggleButton" id="blinkAlerts"></div> | ||
+ | <div class="title capitalize" x-mojo-loc=''>Blink notifications</div> | ||
+ | </div> | ||
+ | </div>--> | ||
+ | |||
+ | Should be changed to: | ||
+ | <div class="palm-row last"> | ||
+ | <div class="palm-row-wrapper"> | ||
+ | <div x-mojo-element="ToggleButton" id="blinkAlerts"></div> | ||
+ | <div class="title capitalize" x-mojo-loc=''>Blink notifications</div> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | </source> | ||
+ | |||
+ | <source lang=text> | ||
+ | Lines 101-103: | ||
+ | <!--<div class="palm-info-text single" x-mojo-loc=''> | ||
+ | The gesture area blinks when new notifications arrive. | ||
+ | </div>--> | ||
+ | |||
+ | Should be changed to: | ||
+ | <div class="palm-info-text single" x-mojo-loc=''> | ||
+ | The gesture area blinks when new notifications arrive. | ||
+ | </div> | ||
+ | </source> |
Revision as of 08:33, 29 September 2009
This patch needs a rooted Pre to manually make these changes though a command line.
Two files need to be modified.
/usr/palm/applications/com.app.screenlock/app/controllers/securityconfig-assistant.js
Uncomment lines 54,55,248-251.
Here is what the files should look like: <source lang=text> Lines 54/55: //this.controller.setupWidget('blinkAlerts', this.onOffToggleOpt, this.ledThrobberToggleModel); //Mojo.Event.listen($('blinkAlerts'),'mojo-property-change', this.toggleLEDThrobber.bindAsEventListener(this));
Should be changed to: this.controller.setupWidget('blinkAlerts', this.onOffToggleOpt, this.ledThrobberToggleModel); Mojo.Event.listen($('blinkAlerts'),'mojo-property-change', this.toggleLEDThrobber.bindAsEventListener(this)); </source>
<source lang=text> Lines 248-251:
/*if (payload.LEDThrobberEnabled != undefined) {
this.ledThrobberToggleModel.value = payload.LEDThrobberEnabled; this.controller.modelChanged(this.ledThrobberToggleModel, this); }*/
Should be changed to:
if (payload.LEDThrobberEnabled != undefined) {
this.ledThrobberToggleModel.value = payload.LEDThrobberEnabled; this.controller.modelChanged(this.ledThrobberToggleModel, this); }
</source>
/usr/palm/applications/com.app.screenlock/app/views/securityconfig/securityconfig-scene.html:
Uncomment 92-97 and 101-103.
<source lang=text> Lines 92-97:
Should be changed to:
</source>
<source lang=text> Lines 101-103:
Should be changed to:
The gesture area blinks when new notifications arrive.
</source>