Handle subtext display problem in WifiWakeupPreferenceController
WifiWakeupPreferenceController subtext can't display location info subtext when the "Use location" turn off. Now override the updateState and add the refreshSummary in this api to fix the problem. Bug: 132391311 Test: manual view Change-Id: I5e85c1ae9b9393ee06f16a61d4be4a149adfdede
This commit is contained in:
@@ -115,6 +115,12 @@ public class WifiWakeupPreferenceController extends TogglePreferenceController i
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateState(Preference preference) {
|
||||
super.updateState(preference);
|
||||
refreshSummary(mPreference);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
if (!mLocationManager.isLocationEnabled()) {
|
||||
|
Reference in New Issue
Block a user