1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 13:26:50 +01:00

Replace forEach with explicit for cycle

forEach with lambda is only available in SDK24+
This commit is contained in:
José Rebelo 2023-06-13 00:11:40 +01:00
parent 9035f03b51
commit 8899187ee4

View File

@ -105,7 +105,9 @@ public class GBLocationManager {
stopProvider(context, providerMap.get(providerType));
toBeRemoved.add(providerType);
}
toBeRemoved.forEach(c->{providerMap.remove(c);});
for (final LocationProviderType providerType : toBeRemoved) {
providerMap.remove(providerType);
}
} else {
stopProvider(context, providerMap.get(gpsType));
providerMap.remove(gpsType);