Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5e8f4a3e authored by Weng Su's avatar Weng Su
Browse files

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
parent 0c5df688
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment