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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user