diff options
author | Alan Viverette <alanv@google.com> | 2015-03-18 18:10:52 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-03-18 18:10:52 -0700 |
commit | 55eaa96fe44ab473975fd2d9b3d97836935752fe (patch) | |
tree | 93358cc53b66230e2b101af3d13bf2e7c2c281cc /src/com/android/settings/bluetooth | |
parent | 9a23adf69dc53126c9858b19760eab5b67c23b97 (diff) | |
download | packages_apps_Settings-55eaa96fe44ab473975fd2d9b3d97836935752fe.zip packages_apps_Settings-55eaa96fe44ab473975fd2d9b3d97836935752fe.tar.gz packages_apps_Settings-55eaa96fe44ab473975fd2d9b3d97836935752fe.tar.bz2 |
Clean up usage of theme colors, deprecated Resources.getColor* methods
Change-Id: I34e11e0773c9f8e00e3eab422781094e19a16d3d
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothPairingRequest.java | 2 | ||||
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothPermissionRequest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothPairingRequest.java b/src/com/android/settings/bluetooth/BluetoothPairingRequest.java index 44198d3..5b06661 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingRequest.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingRequest.java @@ -91,7 +91,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver { .setContentIntent(pending) .setAutoCancel(true) .setDefaults(Notification.DEFAULT_SOUND) - .setColor(res.getColor( + .setColor(context.getColor( com.android.internal.R.color.system_notification_accent_color)); NotificationManager manager = (NotificationManager) diff --git a/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java b/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java index e436b79..b3a9571 100644 --- a/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java +++ b/src/com/android/settings/bluetooth/BluetoothPermissionRequest.java @@ -157,7 +157,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { .setContentIntent(PendingIntent.getActivity(context, 0, connectionAccessIntent, 0)) .setDeleteIntent(PendingIntent.getBroadcast(context, 0, deleteIntent, 0)) - .setColor(context.getResources().getColor( + .setColor(context.getColor( com.android.internal.R.color.system_notification_accent_color)) .build(); |