Update the toggle state in constructor.
Before this cl, the update of toggle depends on BroadcastReceiver. However it is not called when toggle is inited, which make the toggle in broken state sometimes. This cl make it execute the update method in constructor, so toggle can get the correct state when it is created. Fixes: 73718975 Test: RunSettingsRoboTests Change-Id: Icb798afaff0bdeedad3a966315441712be2e2523
Loading
Please register or sign in to comment