1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 21:32:57 +01:00

show all eligeble devices in Widget Configuration Activity, fix #2170

This commit is contained in:
vanous 2021-01-22 20:16:46 +01:00
parent 61395b210c
commit 0fd2de2bd3

View File

@ -119,12 +119,11 @@ public class WidgetConfigurationActivity extends Activity {
Device dbDevice = DBHelper.findDevice(device, daoSession);
int icon = device.isInitialized() ? device.getType().getIcon() : device.getType().getDisabledIcon();
if (dbDevice != null && coordinator != null
&& coordinator.supportsActivityTracks()
&& (coordinator.supportsActivityDataFetching() || coordinator.supportsActivityTracking())
&& !newMap.containsKey(device.getAliasOrName())) {
newMap.put(device.getAliasOrName(), new Pair(device.getAddress(), icon));
}
}
} catch (Exception e) {
LOG.error("Error getting list of all devices: " + e);
}