commit | 94a00dfc649f5ddb630e6713a81421d0ecd00415 | [log] [tgz] |
---|---|---|
author | Xiao Ma <xiaom@google.com> | Tue May 17 13:38:42 2022 +0900 |
committer | Xiao Ma <xiaom@google.com> | Wed May 18 17:23:32 2022 +0900 |
tree | 1af49181c5edeadbaa5e349c7c52e63a6e071fe3 | |
parent | af7101ff0f112cda2244a26ed7a7f130b74a3c7a [diff] |
Fix the ethernet setting API bug. After turning off the ethernet settings via api, the ethernet service can still be started when plugging-in the cable. Improve the api by ignoring the upcoming interface unsolicited event listener callbacks and register new interface observer once the ethernet setting is enabled again. Bug: 231933028 Test: atest testListenEthernetStateChange_unsolicitedEventListener Change-Id: I1b1cb7d157f023fca82d75592168bd360a6fa6e1