From b17dc443c639a4ed0327f8e7aad48316d271f129 Mon Sep 17 00:00:00 2001 From: Karl Rosaen Date: Thu, 24 Sep 2009 18:11:28 -0700 Subject: [PATCH] Initialze battery state properly in pattern unlock screen. --- policy/com/android/internal/policy/impl/UnlockScreen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/policy/com/android/internal/policy/impl/UnlockScreen.java b/policy/com/android/internal/policy/impl/UnlockScreen.java index cfffcf241a17d..5245c7cafa0df 100644 --- a/policy/com/android/internal/policy/impl/UnlockScreen.java +++ b/policy/com/android/internal/policy/impl/UnlockScreen.java @@ -181,9 +181,9 @@ class UnlockScreen extends LinearLayoutWithDefaultTouchRecepient mStatusSep = (TextView) findViewById(R.id.statusSep); mStatus2 = (TextView) findViewById(R.id.status2); - mShowingBatteryInfo = true; - mPluggedIn = true; - mBatteryLevel = 100; + mShowingBatteryInfo = mUpdateMonitor.shouldShowBatteryInfo(); + mPluggedIn = mUpdateMonitor.isDevicePluggedIn(); + mBatteryLevel = mUpdateMonitor.getBatteryLevel(); mNextAlarm = mLockPatternUtils.getNextAlarm(); updateStatusLines();