summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2012-06-30 16:23:06 +0400
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-06-30 16:23:06 +0400
commit964474de6d1d2172d347104d39184644497ce80e (patch)
tree1a12defcfcc0d9c0bfd632a8ce84858e6d5f6485
parentca0d4b92adc84c689f390896e088ef8f4ad68d53 (diff)
parent1ec08fd3ad97cc96763c914c25185365171e7104 (diff)
downloadframeworks_base-964474de6d1d2172d347104d39184644497ce80e.zip
frameworks_base-964474de6d1d2172d347104d39184644497ce80e.tar.gz
frameworks_base-964474de6d1d2172d347104d39184644497ce80e.tar.bz2
Merge "Don't consider input restricted if keyguard is still disabled." into ics
-rw-r--r--policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
index fbf673b..2078370 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -598,7 +598,13 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
* was suppressed by an app that disabled the keyguard or we haven't been provisioned yet.
*/
public boolean isInputRestricted() {
- return mShowing || mNeedToReshowWhenReenabled || !mUpdateMonitor.isDeviceProvisioned();
+ if (mShowing) {
+ return true;
+ }
+ if (mExternallyEnabled && mNeedToReshowWhenReenabled) {
+ return true;
+ }
+ return !mUpdateMonitor.isDeviceProvisioned();
}
/**