Add a new About Phone page.
This adds the "Me Card" page. The current functionality is to show information based upon the first account added to the system. The page shows the user's avatar, name, primary account, and phone number. Bug: 63819909 Test: Robotest Change-Id: I64bfae922e828994b2b87009d0647e67dab0da42
This commit is contained in:
@@ -873,6 +873,19 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
WifiDisplaySettings.isAvailable(this), isAdmin)
|
||||
|| somethingChanged;
|
||||
|
||||
// Enable/disable the Me Card page.
|
||||
final boolean isMeCardEnabled = featureFactory
|
||||
.getAccountFeatureProvider()
|
||||
.isMeCardEnabled(this);
|
||||
somethingChanged = setTileEnabled(new ComponentName(packageName,
|
||||
Settings.MeCardActivity.class.getName()),
|
||||
isMeCardEnabled, isAdmin)
|
||||
|| somethingChanged;
|
||||
somethingChanged = setTileEnabled(new ComponentName(packageName,
|
||||
Settings.DeviceInfoSettingsActivity.class.getName()),
|
||||
!isMeCardEnabled, isAdmin)
|
||||
|| somethingChanged;
|
||||
|
||||
if (UserHandle.MU_ENABLED && !isAdmin) {
|
||||
|
||||
// When on restricted users, disable all extra categories (but only the settings ones).
|
||||
|
Reference in New Issue
Block a user