Use/update cached battery manager
else, it can be null and cause an NPE Test: manual Fixes: 16785343 Change-Id: Id0e0edceba4244558caac81e31d715a45c50d4fa
This commit is contained in:
@@ -792,7 +792,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
public void onWakeUp() {
|
||||
synchronized (mLock) {
|
||||
if (shouldEnableWakeGestureLp()
|
||||
&& mBatteryManagerInternal.getPlugType() != BATTERY_PLUGGED_WIRELESS) {
|
||||
&& getBatteryManagerInternal().getPlugType() != BATTERY_PLUGGED_WIRELESS) {
|
||||
performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, false,
|
||||
"Wake Up");
|
||||
wakeUp(SystemClock.uptimeMillis(), mAllowTheaterModeWakeFromWakeGesture,
|
||||
|
||||
Reference in New Issue
Block a user