From 01164fd414dbfde91a18913bbd99dc3a0592f6ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Thu, 18 May 2023 15:43:29 +0000 Subject: [PATCH] bt: Show additional message when is late bond Sometimes the cached bluetooth device is not found and we the BluetoothPairingController does not know if this device is a member of a set. But if this is a late bond then it is a set member so we still want to display that additional message. Bug: 282193044 Test: manual Tag: #feature Change-Id: I9e7da093b118a81097dc83460e9b93ce2e477482 --- .../settings/bluetooth/BluetoothPairingDialogFragment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialogFragment.java b/src/com/android/settings/bluetooth/BluetoothPairingDialogFragment.java index 3d6a44fb58b..e11c275bded 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingDialogFragment.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingDialogFragment.java @@ -361,8 +361,10 @@ public class BluetoothPairingDialogFragment extends InstrumentedDialogFragment i messagePairingSet.setText(getString(R.string.bluetooth_pairing_group_late_bonding)); } - messagePairingSet.setVisibility(mPairingController.isCoordinatedSetMemberDevice() - ? View.VISIBLE : View.GONE); + boolean setPairingMessage = + mPairingController.isCoordinatedSetMemberDevice() || mPairingController.isLateBonding(); + + messagePairingSet.setVisibility(setPairingMessage ? View.VISIBLE : View.GONE); return view; } }