Fix service found callback on subtype update
If a service is found without a requested subtype, then updated to have that subtype, onServiceUpdated would be sent instead of onServiceFound. Fix this by tracking which services have been found by each listener, as whether a service is newly found or updated depends on the options (in this case the subtype filter) of each listener. Fixes: 317167170 Test: atest Change-Id: If8dbe04d858082a872c0f068433a3680331c670b
Showing
- service-t/src/com/android/server/connectivity/mdns/MdnsServiceTypeClient.java 46 additions, 13 deletions...droid/server/connectivity/mdns/MdnsServiceTypeClient.java
- tests/unit/java/com/android/server/connectivity/mdns/MdnsServiceTypeClientTests.java 85 additions, 0 deletions.../server/connectivity/mdns/MdnsServiceTypeClientTests.java
Loading
Please register or sign in to comment