Loading src/com/android/settings/bluetooth/BluetoothPermissionRequest.java +0 −8 Original line number Original line Diff line number Diff line Loading @@ -118,13 +118,6 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { context, deviceAddress, deviceName)) { context, deviceAddress, deviceName)) { context.startActivity(connectionAccessIntent); context.startActivity(connectionAccessIntent); } else { } else { // Acquire wakelock so that LCD comes up since screen is off PowerManager.WakeLock wakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE, "ConnectionAccessActivity"); wakeLock.setReferenceCounted(false); wakeLock.acquire(); // Put up a notification that leads to the dialog // Put up a notification that leads to the dialog // Create an intent triggered by clicking on the // Create an intent triggered by clicking on the Loading Loading @@ -181,7 +174,6 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID, notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID, notification); notification); wakeLock.release(); } } } else if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_CANCEL)) { } else if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_CANCEL)) { // Remove the notification // Remove the notification Loading Loading
src/com/android/settings/bluetooth/BluetoothPermissionRequest.java +0 −8 Original line number Original line Diff line number Diff line Loading @@ -118,13 +118,6 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { context, deviceAddress, deviceName)) { context, deviceAddress, deviceName)) { context.startActivity(connectionAccessIntent); context.startActivity(connectionAccessIntent); } else { } else { // Acquire wakelock so that LCD comes up since screen is off PowerManager.WakeLock wakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE, "ConnectionAccessActivity"); wakeLock.setReferenceCounted(false); wakeLock.acquire(); // Put up a notification that leads to the dialog // Put up a notification that leads to the dialog // Create an intent triggered by clicking on the // Create an intent triggered by clicking on the Loading Loading @@ -181,7 +174,6 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID, notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID, notification); notification); wakeLock.release(); } } } else if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_CANCEL)) { } else if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_CANCEL)) { // Remove the notification // Remove the notification Loading