Prevent extra reloads in mobile networking page/controllers
On the mobile network details page, as well as in several preference controllers used in various page, we had listeners for the ACTION_RADIO_TECHNOLOGY_CHANGED broadcast that when fired would cause a reload. It turns out that this gets broadcast as a sticky intent, so our callbaks would fire just after registering to listen, resulting in lots of unnecessary extra reloading. This was particularly noticable on the mobile network details page because the entire page gets reloaded. The fix is to make our listeners ignore the broadcast if it's the initial sticky one. Bug: 126419558 Test: make RunSettingsRoboTests Change-Id: I6ab7b43d74b07a839e45ce5368e45809be658b9d
Loading
Please register or sign in to comment