Merge "[Wi-Fi] Fix SavedAccessPointsPreferenceController crash when editing Settings search box"

This commit is contained in:
TreeHugger Robot
2020-01-03 10:40:41 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 10 deletions

View File

@@ -59,6 +59,7 @@ public class SavedAccessPointsPreferenceController extends BasePreferenceControl
@Override
public int getAvailabilityStatus() {
refreshSavedAccessPoints();
return mAccessPoints.size() > 0 ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
}