am 9e55d57d: am 8983420d: Merge "Don\'t spam the system with unique wake lock names." into mnc-dev

* commit '9e55d57dc7fccbeae4bb8ff4be322d7e2b87dacc':
  Don't spam the system with unique wake lock names.
This commit is contained in:
Dianne Hackborn
2015-07-16 19:04:26 +00:00
committed by Android Git Automerger

View File

@@ -136,7 +136,7 @@ public class DozeService extends DreamService {
mDozeParameters.getPulseOnPickup(), mDozeParameters.getVibrateOnPickup(),
DozeLog.PULSE_REASON_SENSOR_PICKUP);
mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
mWakeLock.setReferenceCounted(true);
mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
mDisplayStateSupported = mDozeParameters.getDisplayStateSupported();