Antony Sargent 482415d37e Protect entry points to add an eSIM when admin restricted
If the DISALLOW_CONFIG_MOBILE_NETWORKS admin policy is set, we were
accidentally still allowing access to the flow where you add an eSIM
subscription via the "plus" button on the Network & internet page. While
fixing this, I also noticed that the mobile networks list page (which
only becomes available if you have multiple subscriptions) has a link at
the bottom to start the flow as well, and that wasn't being protected.

The fix for the plus button on the Network & internet page was just to
make sure not to call setEnabled(true) if the preference was already
disabled by admin policy, since that has the effect of overriding the
admin-disabling.

The fix for the mobile networks list page just needed to add the
relevant tags in the layout XML, and then we get it for free.

Fixes: 137627845
Test: make RunSettingsRoboTests
Change-Id: I896ac248f50aaeecc157791938a0a0a98265aa07
2019-07-31 12:53:39 -07:00
2019-03-27 07:14:20 +08:00
2019-04-04 12:49:15 -07:00
2019-03-27 07:14:20 +08:00
2018-12-18 09:51:08 +00:00
2019-05-02 01:44:42 +00:00
2019-02-06 15:44:40 +00:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%