Logical error. If multiple receivers are dead, only the first one will be added.

found in http://code.google.com/p/android/issues/detail?id=2651
This commit is contained in:
Simon Schoar
2009-06-10 21:12:10 +02:00
parent 734bc9bacb
commit 8c0ff13f86

View File

@@ -836,8 +836,8 @@ public class LocationManagerService extends ILocationManager.Stub
} catch (PendingIntent.CanceledException e) {
if (deadReceivers == null) {
deadReceivers = new ArrayList<Receiver>();
deadReceivers.add(receiver);
}
deadReceivers.add(receiver);
}
}
} catch (RemoteException e) {