Display a toast when bonded

here
cpfeiffer 2015-12-06 23:39:12 +01:00
parent b056e1b2a0
commit 579546c9f8
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class DiscoveryActivity extends Activity implements AdapterView.OnItemCli
if (device != null && device.getAddress().equals(bondingAddress)) {
int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.BOND_NONE);
if (bondState == BluetoothDevice.BOND_BONDED) {
LOG.info("Successfully bonded with: " + bondingAddress);
GB.toast(DiscoveryActivity.this, "Successfully bonded with: " + bondingAddress, Toast.LENGTH_SHORT, GB.INFO);
finish();
}
}