Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4686657c authored by Simon Schoar's avatar Simon Schoar Committed by Mike Lockwood
Browse files

LocationManagerService: Fix logic error removing multiple dead receivers.

If multiple receivers are dead, only the first one will be added.
found in http://code.google.com/p/android/issues/detail?id=2651



Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent a32b5f32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -769,8 +769,8 @@ public class LocationManagerService extends ILocationManager.Stub implements Run
                if (!record.mReceiver.callProviderEnabledLocked(provider, enabled)) {
                    if (deadReceivers == null) {
                        deadReceivers = new ArrayList<Receiver>();
                        deadReceivers.add(record.mReceiver);
                    }
                    deadReceivers.add(record.mReceiver);
                }
                listeners++;
            }