1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Mi Band: just a method rename

This commit is contained in:
cpfeiffer 2017-01-25 21:13:10 +01:00
parent 083cbdbfbe
commit d103d09fcf

View File

@ -86,7 +86,7 @@ public class MiBandPairingActivity extends GBActivity {
new Handler(mainLooper).postDelayed(new Runnable() {
@Override
public void run() {
performPair();
performApplicationLevelPair();
}
}, DELAY_AFTER_BONDING);
}
@ -210,7 +210,7 @@ public class MiBandPairingActivity extends GBActivity {
int bondState = device.getBondState();
if (bondState == BluetoothDevice.BOND_BONDED) {
GB.toast(getString(R.string.pairing_already_bonded, device.getName(), device.getAddress()), Toast.LENGTH_SHORT, GB.INFO);
performPair();
performApplicationLevelPair();
return;
}
@ -226,7 +226,7 @@ public class MiBandPairingActivity extends GBActivity {
}
}
private void performPair() {
private void performApplicationLevelPair() {
GBApplication.deviceService().disconnect(); // just to make sure...
GBApplication.deviceService().connect(macAddress, true);
}