diff options
| author | 2022-04-15 19:14:14 +0800 | |
|---|---|---|
| committer | 2022-04-15 19:16:16 +0800 | |
| commit | 5e8f4a3eb9d277292bcb236e26d66266a4e6db62 (patch) | |
| tree | a0446342dad4503389a9b5b1eebd351814343b08 /libs/androidfw/StringPool.cpp | |
| parent | 0c5df6883b75097884ec29adeaaa24a3ae58326b (diff) | |
Fix broken test in WifiEnterpriseRestrictionUtils
- The original design would result in NPE if the user did not have any
restrictions.
- Refine to use UserManager#hasUserRestriction instead of
UserManager#getUserRestrictions.
Bug: 229350205
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiSettingsTest
make RunSettingsLibRoboTests \
ROBOTEST_FILTER=WifiEnterpriseRestrictionUtilsTest
Change-Id: Iec60e3a1c2778fc89596b3c4d28a34604adfdfb8
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions