Android: avoid duplicated entries when reporting satellite info
It turns out that some devices can report the same satellite
(identified by a combination of satellite system and satellite id)
multuiple times in the same GNSS Status callback. The duplicated
devices seem to have just a different value of RSSI, otherwise
they are identical.
This behavior is visible at least on Oneplus devices.
This does not seem to be correct, and that can be a source of
bugs on the user side, if they expect the items in the list to
be unique.
Fix it by keeping track of all devices and simply discarding the
duplicates. We have no way to figure out which information is
newer, so simply keep the first one. In most cases it does not
matter anyway, as the satellite updates are received on a regular
basis.
Pick-to: 6.6 6.5
Change-Id: I5c266d85cd65a8729174807dba747f8fee0ed2d0
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>