summaryrefslogtreecommitdiffstats
path: root/policy/src
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-05-11 11:54:11 -0400
committerDaniel Sandler <dsandler@google.com>2011-05-11 11:54:11 -0400
commit0129b31ff493bb0aa10b778cbeacbec5964644f8 (patch)
tree69845b7e9a3b5490446a3b949eb67afca0178358 /policy/src
parent1d4d30aebd2c22627131819cabfe95f97def2c83 (diff)
downloadframeworks_base-0129b31ff493bb0aa10b778cbeacbec5964644f8.zip
frameworks_base-0129b31ff493bb0aa10b778cbeacbec5964644f8.tar.gz
frameworks_base-0129b31ff493bb0aa10b778cbeacbec5964644f8.tar.bz2
Create an XML config flag to turn the navbar off.
This will eventually be replaced by something else, probably in Configuration, that allows the WM to tell everyone (including the status bar) whether there exist hardware home/back/etc. keys. Change-Id: I21e9629ed43de4a944ad75e5b9d6d4ada8aba23f
Diffstat (limited to 'policy/src')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 75768f0..b562b7b 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -2870,9 +2870,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
}
}
- try {
- mStatusBarService.userActivity();
- } catch (RemoteException ex) {}
+ if (mStatusBarService != null) {
+ try {
+ mStatusBarService.userActivity();
+ } catch (RemoteException ex) {}
+ }
}
Runnable mScreenLockTimeout = new Runnable() {