Merge "Fix the availability of UseOpenWifiPreferenceController." into rvc-dev am: 4ebfaec3a3
Change-Id: Ia42e358a40f86101ab8f104697861b325fbc3293
This commit is contained in:
@@ -100,6 +100,10 @@ public class UseOpenWifiPreferenceController extends TogglePreferenceController
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
// It is possible that mEnableUseWifiComponentName is no longer enabled by
|
||||
// USE_OPEN_WIFI_PACKAGE. So update this component to reflect correct availability.
|
||||
updateEnableUseWifiComponentName();
|
||||
checkForFeatureSupportedScorers();
|
||||
return mDoFeatureSupportedScorersExist ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user