Permalink
Browse files

Bug 818354 - Disabling home button on locked screen while calling

Fixing comments
  • Loading branch information...
1 parent 2b436ac commit e1a82c59fe8d816c80672c441d143a5c937d3d40 @albertopq albertopq committed Dec 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 apps/system/js/attention_screen.js
View
4 apps/system/js/attention_screen.js
@@ -232,7 +232,9 @@ var AttentionScreen = {
// shrink the attention screen overlay to status bar
// invoked when we get a "home" event
hide: function as_hide() {
- if (!this.isFullyVisible())
+ // Doing nothing if the screen is already hiden
+ // or in the lockscreen
+ if (!this.isFullyVisible() || LockScreen.locked)
return;
this.dispatchEvent('status-active');

0 comments on commit e1a82c5

Please sign in to comment.