mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 19:36:50 +01:00
Replace forEach with explicit for cycle
forEach with lambda is only available in SDK24+
This commit is contained in:
parent
9035f03b51
commit
8899187ee4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user