mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-26 03:46:49 +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));
|
stopProvider(context, providerMap.get(providerType));
|
||||||
toBeRemoved.add(providerType);
|
toBeRemoved.add(providerType);
|
||||||
}
|
}
|
||||||
toBeRemoved.forEach(c->{providerMap.remove(c);});
|
for (final LocationProviderType providerType : toBeRemoved) {
|
||||||
|
providerMap.remove(providerType);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
stopProvider(context, providerMap.get(gpsType));
|
stopProvider(context, providerMap.get(gpsType));
|
||||||
providerMap.remove(gpsType);
|
providerMap.remove(gpsType);
|
||||||
|
Loading…
Reference in New Issue
Block a user