mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-24 16:21:16 +02:00
Fossil Q Hybrid: Fix config activity after multi-device merge
This commit is contained in:
parent
01a3639199
commit
319a11e99d
@ -303,9 +303,13 @@ public class ConfigActivity extends AbstractGBActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// NOTE: this code always selects the first connected Q Hybrid device
|
||||||
|
// because currently this class is unable to handle multiple
|
||||||
|
// connected Q Hybrid devices
|
||||||
List<GBDevice> devices = GBApplication.app().getDeviceManager().getSelectedDevices();
|
List<GBDevice> devices = GBApplication.app().getDeviceManager().getSelectedDevices();
|
||||||
for(GBDevice device : devices){
|
for(GBDevice candidate : devices){
|
||||||
if (device.getType() == DeviceType.FOSSILQHYBRID && device.getFirmwareVersion().charAt(2) == '0') {
|
if (candidate.getType() == DeviceType.FOSSILQHYBRID && candidate.getFirmwareVersion().charAt(2) == '0') {
|
||||||
|
device = candidate;
|
||||||
updateSettings();
|
updateSettings();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user