sanders: KeyHandler: Remove notification manager references
This commit is contained in:
@@ -21,7 +21,6 @@ import android.app.ActivityManager;
|
|||||||
import android.app.ActivityManagerNative;
|
import android.app.ActivityManagerNative;
|
||||||
import android.app.ISearchManager;
|
import android.app.ISearchManager;
|
||||||
import android.app.KeyguardManager;
|
import android.app.KeyguardManager;
|
||||||
import android.app.NotificationManager;
|
|
||||||
import android.content.ActivityNotFoundException;
|
import android.content.ActivityNotFoundException;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -90,7 +89,6 @@ public class KeyHandler implements DeviceKeyHandler {
|
|||||||
private static final long[] LONG_PRESS_VIBRATION_PATTERN = new long[] {0, 25, 10};
|
private static final long[] LONG_PRESS_VIBRATION_PATTERN = new long[] {0, 25, 10};
|
||||||
private final Context mContext;
|
private final Context mContext;
|
||||||
private final PowerManager mPowerManager;
|
private final PowerManager mPowerManager;
|
||||||
private final NotificationManager mNotificationManager;
|
|
||||||
WakeLock mProximityWakeLock;
|
WakeLock mProximityWakeLock;
|
||||||
WakeLock mGestureWakeLock;
|
WakeLock mGestureWakeLock;
|
||||||
private KeyguardManager mKeyguardManager;
|
private KeyguardManager mKeyguardManager;
|
||||||
@@ -138,8 +136,6 @@ public class KeyHandler implements DeviceKeyHandler {
|
|||||||
mContext = context;
|
mContext = context;
|
||||||
|
|
||||||
mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||||
mNotificationManager
|
|
||||||
= (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
||||||
mFPScreenOffGesturesHandler = new FPScreenOffGesturesHandler();
|
mFPScreenOffGesturesHandler = new FPScreenOffGesturesHandler();
|
||||||
|
|
||||||
mGestureWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
|
mGestureWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
|
||||||
|
|||||||
Reference in New Issue
Block a user