Hide or disable options in the settings app when the user is restricted from
making changes.
Remove "Add account" button from Settings menu, and "remove account" option from menu in AccountSyncSettings.
Remove sideloading checkbox in SecuritySettings.
Also handle replacement of UserManager.isShareLocationToggleAllowed() with hasUserRestriction, which takes a restriction key string.
Change-Id: I34c74fd5aed8956ba00f92e3d3c657b608454dfe
To fix this the ContentQueryMap needs to be closed
when onStop is called so any global references can
be reclaimed.
Change-Id: I0c679c10b0d75ab0aac2fe499563c57d934e318a
Bug: 6882764
This removes the Google specific checkbox and adds a master toggle
for location providers which turns both providers on/off when
toggled.
Change-Id: I2a7af0953902bfd6f4b221725dc2d838bb3d0ce4
mSettingsObserver will be added only once to mContentQueryMap on first start,
but if you bring activity back to top, it will not be added any more.
Signed-off-by: Vladimir Baryshnikov <vovkab@gmail.com>
Didn't have an API for this before so people used a hacked system property (ro.carrier)
to determine if the device supported mobile data. Added new API and switching callsites.
bug:5087537
Change-Id: Ibd799559be102a9e2fd552d1a23d1afbcf8f4614