Bug 564134 - Show a message when the screen orientation is locked/unlocked (followup) [r=stechz]
authorVivien Nicolas <21@vingtetun.org>
Mon, 10 May 2010 23:42:44 -0400
changeset 66217 bbff1b25411e764d98ca8c8b884577786f0a1b30
parent 66216 f68387942a828aa51d97a63c2009eee55efb7435
child 66218 9503da2ff3c40da681789afb74c32e5d7528c58f
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstechz
bugs564134
Bug 564134 - Show a message when the screen orientation is locked/unlocked (followup) [r=stechz]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -920,17 +920,17 @@ var BrowserUI = {
       case "cmd_lockscreen":
       {
         let locked = gPrefService.getBoolPref("toolkit.screen.lock");
         gPrefService.setBoolPref("toolkit.screen.lock", !locked);
 
         let strings = Elements.browserBundle;
         let alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService);
         alerts.showAlertNotification(null, strings.getString("alertLockScreen"),
-                                     strings.getString("alertLockScreen." + (locked ? "locked" : "unlocked")), false, "", null);
+                                     strings.getString("alertLockScreen." + (!locked ? "locked" : "unlocked")), false, "", null);
         break;
       }
     }
   }
 };
 
 var PageActions = {
   get _permissionManager() {