1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-07 13:47:49 +02:00

Add the device if it's not in the list yet.

This commit is contained in:
cpfeiffer 2015-04-22 20:37:35 +02:00
parent 1ff1c20056
commit cf681a089a

View File

@ -52,6 +52,8 @@ public class ControlCenter extends Activity {
int index = deviceList.indexOf(dev); // search by address
if (index >= 0) {
deviceList.set(index, dev);
} else {
deviceList.add(dev);
}
}
refreshPairedDevices();