1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-24 14:00:48 +02:00

Display a toast when bonded

This commit is contained in:
cpfeiffer 2015-12-06 23:39:12 +01:00
parent b056e1b2a0
commit 579546c9f8

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();
}
}