mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Mi Band: just a method rename
This commit is contained in:
parent
083cbdbfbe
commit
d103d09fcf
@ -86,7 +86,7 @@ public class MiBandPairingActivity extends GBActivity {
|
|||||||
new Handler(mainLooper).postDelayed(new Runnable() {
|
new Handler(mainLooper).postDelayed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
performPair();
|
performApplicationLevelPair();
|
||||||
}
|
}
|
||||||
}, DELAY_AFTER_BONDING);
|
}, DELAY_AFTER_BONDING);
|
||||||
}
|
}
|
||||||
@ -210,7 +210,7 @@ public class MiBandPairingActivity extends GBActivity {
|
|||||||
int bondState = device.getBondState();
|
int bondState = device.getBondState();
|
||||||
if (bondState == BluetoothDevice.BOND_BONDED) {
|
if (bondState == BluetoothDevice.BOND_BONDED) {
|
||||||
GB.toast(getString(R.string.pairing_already_bonded, device.getName(), device.getAddress()), Toast.LENGTH_SHORT, GB.INFO);
|
GB.toast(getString(R.string.pairing_already_bonded, device.getName(), device.getAddress()), Toast.LENGTH_SHORT, GB.INFO);
|
||||||
performPair();
|
performApplicationLevelPair();
|
||||||
return;
|
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().disconnect(); // just to make sure...
|
||||||
GBApplication.deviceService().connect(macAddress, true);
|
GBApplication.deviceService().connect(macAddress, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user