mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Add the device if it's not in the list yet.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user