summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/keyguard
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-04-03 17:37:37 +0200
committerJorim Jaggi <jjaggi@google.com>2014-04-05 17:06:21 +0200
commit3beffdf4a0081a97356f46d50e10541b1a213153 (patch)
tree606d855b85568f00c4359129d164c6476f0ca1d3 /packages/SystemUI/src/com/android/systemui/keyguard
parent0bed7f258ba1fffc10f986ee043b769f1fd40ad3 (diff)
downloadframeworks_base-3beffdf4a0081a97356f46d50e10541b1a213153.zip
frameworks_base-3beffdf4a0081a97356f46d50e10541b1a213153.tar.gz
frameworks_base-3beffdf4a0081a97356f46d50e10541b1a213153.tar.bz2
Fix crash when taking screenshot.
Start SystemUI services only if needed. Bug: 13635952 Change-Id: I76a5e3333ed8f51a267e33b2cf172d6c775ac914
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java
index fdf374f..41c0e78 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java
@@ -41,6 +41,7 @@ public class KeyguardService extends Service {
@Override
public void onCreate() {
+ ((SystemUIApplication) getApplication()).startServicesIfNeeded();
mKeyguardViewMediator =
((SystemUIApplication) getApplication()).getComponent(KeyguardViewMediator.class);
}