Merge "Bluetooth: Make notifications local-only" am: 348a7085fa

am: 620fe71520

Change-Id: I3df0a009c7fc6184ea1176f6953748c5031d76cd
This commit is contained in:
Marie Janssen
2017-06-22 15:41:55 +00:00
committed by android-build-merger
2 changed files with 3 additions and 1 deletions

View File

@@ -120,7 +120,8 @@ public final class BluetoothPairingService extends Service {
Notification.Builder builder = new Notification.Builder(this,
BLUETOOTH_NOTIFICATION_CHANNEL)
.setSmallIcon(android.R.drawable.stat_sys_data_bluetooth)
.setTicker(res.getString(R.string.bluetooth_notif_ticker));
.setTicker(res.getString(R.string.bluetooth_notif_ticker))
.setLocalOnly(true);
PendingIntent pairIntent = PendingIntent.getActivity(this, 0,
getPairingDialogIntent(this, intent), PendingIntent.FLAG_ONE_SHOT);