mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Mi Band: just a method rename
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user