summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/users
Commit message (Collapse)AuthorAgeFilesLines
* Guest option should not be shown for the guest userFyodor Kupolov2015-06-091-1/+1
| | | | | Bug: 21649480 Change-Id: I866e34543c6ba396533f9acfef056390cf19608d
* Hide guest entry if the user is not allowed to create guestFyodor Kupolov2015-05-291-32/+22
| | | | | | | | Don't show the Guest entry for a secondary user if the user is not allowed to create a guest and there is currently no guest already created. Bug: 19035769 Change-Id: Icf4a778533affaec0658af4da5ce000eda261f38
* Use DimmableIconPreference for Add user actionFyodor Kupolov2015-05-191-1/+20
| | | | | | | | | | | Moved DimmableIconPreference from location to the root package since it is now used in several places. Add user action now uses DimmableIconPreference. Added a new summary string, which is displayed when no more users can be added. Bug: 20892920 Change-Id: I00b00f80ba8933a00a2de85777b9f7e55d03c31b
* Added SearchIndexProvider for UserSettingsFyodor Kupolov2015-05-191-45/+102
| | | | | | | | It enables customizations for certain cases like whether the user is able to create restricted profiles or multiuser UI is disabled. Bug: 21197002 Change-Id: Ia672c0f9bb451877f8debe04438b46cb2b7e9242
* Remove the check hasMultipleUsers in Settings.Nicolas Prevot2015-05-141-1/+1
| | | | | | | | When deciding to show the user section or not, Just rely on supportsMultipleUsers. Don't check hasMultipleUsers. BUG:21119929 Change-Id: Ifbddac10e2f6dc02b8e2e55b41ab9f5be018dfca
* Fixed an issue with back key behaviorFyodor Kupolov2015-04-301-9/+8
| | | | | | | | Create mHeaderView and set it as a pinned header, each time onActivityCreated is called. Bug: 20652673 Change-Id: Ia0e174f0686ac0abb601c591f3774c9152b785fa
* Merge "[WifiSettings] Add progress bar when scanning" into mnc-devMaurice Lam2015-04-301-4/+1
|\
| * [WifiSettings] Add progress bar when scanningMaurice Lam2015-04-291-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a progress bar when the Wi-Fi screen is in a transient state, like enabling, disabling Wi-Fi and scanning for network. This change sets the progress bar as a pinned header at the top of the activity. The pinned header container needs to be match parent so that the progress bar can occupy the full width of the screen. If the header view doesn't want to fill the width, then the header view *inside* the container should be wrap_content. Added an overloaded setPinnedHeader method that takes a layout resource ID, and returns the view to the caller. This way the inflater can set the parent property so that layout params will not be ignored. Bug: 17389577 Change-Id: I18d0eb7c72ad31d1c4b35a54789016c32c81fb93
* | Require explicit userId in LockPatternUtilsAdrian Roos2015-04-281-1/+1
|/ | | | | Bug: 18931518 Change-Id: Ie2faa18918aaadf17a84287898438549a693b0cc
* Update warning dialog on work profile deletion.Sudheer Shanka2015-04-281-16/+57
| | | | | Bug: 20024761 Change-Id: I23b0eaa7742d9d23a29a2a48ab6e3d92fe310560
* Change owner info to be a dialog rather than screenJason Monk2015-04-221-10/+1
| | | | | Bug: 15937670 Change-Id: I8d8609ff165c4a76e318a80a62fb1dc9effbc82a
* Support for nested bundles in setApplicationRestrictionsFyodor Kupolov2015-04-032-17/+4
| | | | | | | | Replaced RestrictionUtils.restrictionsToBundle with RestrictionsManager. convertRestrictionsToBundle. Bug: 19540606 Change-Id: I32b264e04d5d177ea5b4c39a8ace5ee0ce907970
* log visibility of viewsChris Wren2015-03-273-0/+18
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Settings: Remove all unused imports.John Spurlock2015-03-183-6/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* Make default user icons retrievable as cached bitmapsZoltan Szatmary-Ban2015-03-091-6/+3
| | | | | | | | Also invoke that method where formerly we did a UserIcon.convertBitmap( UserIcon.getDefaultUserIcon(...)) call. Bug: 19620707 Change-Id: I2ae3bbcee7d1c6515f0f6253925ef9837d8e3548
* Settings app should be available to restricted userFyodor Kupolov2015-03-021-10/+4
| | | | | | | | Fixed a regression, caused by collapsing location and settings entries into a single preference. Now settings package is explicitly enabled. Bug: 19434520 Change-Id: I05440d04c100b6a5ee5573ac116bfb4d66782aa8
* am e029b91c: am 1d33bca0: Merge "Hidden ApplicationInfo flags are now in ↵Alex Klyubin2015-02-111-2/+3
|\ | | | | | | | | | | | | privateFlags." * commit 'e029b91c53323c27ea18a57c6af8c00ecab5576b': Hidden ApplicationInfo flags are now in privateFlags.
| * am 1d33bca0: Merge "Hidden ApplicationInfo flags are now in privateFlags."Alex Klyubin2015-02-111-2/+3
| |\ | | | | | | | | | | | | * commit '1d33bca0e496f980ec1a364f58cccd457d40954a': Hidden ApplicationInfo flags are now in privateFlags.
| | * Hidden ApplicationInfo flags are now in privateFlags.Alex Klyubin2015-02-111-2/+3
| | | | | | | | | | | | | | | | | | See b9f8a5204a1b0b3919fa921e858d04124c582828. Change-Id: I98bbe4b1a5ac0939e0000e4da8b21a1964c75e8b
* | | Merge "Eliminate duplicated code for creating circled user icons in Settings."Zoltan Szatmary-Ban2015-02-093-22/+3
|\ \ \
| * | | Eliminate duplicated code for creating circled user icons in Settings.Zoltan Szatmary-Ban2014-12-193-22/+3
| | | | | | | | | | | | | | | | | | | | | | | | Use Utils.getUserIcon instead. Change-Id: Id653f8c89ac041e925464c88bbc0c7c43d3ce632
* | | | Merge "Show Location restriction without the Settings item"Fyodor Kupolov2015-01-161-61/+78
|\ \ \ \
| * | | | Show Location restriction without the Settings itemFyodor Kupolov2015-01-151-61/+78
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In App & content access page for restricted profiles, Location restriction should be shown without its parent element. Also fixed an issue when app summary may be incomplete. Bug:15761405,17182612 Change-Id: Ia298cf581413d124d25608f825f97a9e64baf479
* | | | Show confirmation when turning on "Phone calls/sms"Fyodor Kupolov2015-01-084-23/+132
|/ / / | | | | | | | | | | | | | | | | | | | | | Added confirmation dialog, when turning on "Phone calls and sms" setting for secondary users and guests. Bug:15761405 Change-Id: I39b2181f0b5460db9a964c6883f053a6c6336622
* | | Remove Users & profiles header for phonesFyodor Kupolov2014-12-172-42/+90
|/ / | | | | | | | | | | | | | | | | | | | | In Settings/Users, remove "Users & profiles" header is no longer displayed for phones. List of UserPreference is now explicitly sorted. Before, it was relying on an overridden compareTo method in UserPreference, which behavior was difficult to predict when instances of UserPreference were mixed with other instances in the same group. Bug:17630523 Change-Id: Iba1ef863c2cd4e8ca307ae0aa0877c5cd9e0973d
* | Fix padding in user type selection dialogAmith Yamasani2014-12-031-14/+16
| | | | | | | | | | | | | | | | Use preferred list item padding for the list items and use the dialog context for creating the adapter. Bug: 18509286 Change-Id: Ia5791a6283723a0ab458f24ec22b8890ab627657
* | Merge "Watch out for deleted user when exiting async task" into lmp-mr1-devAmith Yamasani2014-11-212-73/+70
|\ \
| * | Watch out for deleted user when exiting async taskAmith Yamasani2014-11-202-73/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a problem where the async task can take a while to execute and in the meantime the user can be removed. On exiting the async task and updating the UI, make sure the user hasn't been deleted. Bug: 18411181 Change-Id: I1831f3e53084c49e27557cb7aacec78c753a611b
* | | Added a check if a custom activity can be startedFyodor Kupolov2014-11-181-0/+21
|/ / | | | | | | | | | | | | | | | | AppRestrictionsFragment starts an activity using an intent provided by the receiver. A check was added to prevent an app from starting an activity that it does not own. Bug: 14441412 Change-Id: Ia6820b1daf3783d605b92976c78cb522b17dc8f2
* | Fix bug #15730311 Checkboxes on R side should update to Quantum/Material ↵Fabrice Di Meglio2014-10-151-6/+2
|/ | | | | | | | on/off switch Per UX request, convert more CheckBoxes to Switches Change-Id: I04712bce4c0a54516d9ecedbb554f403fd6dd9e7
* Set default restrictions for a newly created userAmith Yamasani2014-10-072-2/+14
| | | | | | | | | Call a different createUser version that sets up the defaults. Make sure any previously created guest also gets the restrictions as soon as they are changed. Bug: 17832802 Bug: 17891763 Change-Id: I3eaa9e3da32b2f436699db24bb7be2668f1480b3
* Don't allow creating a guest from a secondary user...Amith Yamasani2014-09-161-2/+5
| | | | | | | | unless the primary user has allowed Guest and user creation from lockscreen. Bug: 17482220 Change-Id: Idd05889da330d6cbe0d3ccab2e98abfdeba94b96
* Switch to using system-wide default user iconsAlexandra Gherghina2014-09-121-53/+23
| | | | | | | | User icons were either User Settings specific, or missing. This makes it consistent with the ones in the new helper class. Bug: 17311038 Change-Id: I20cc1deba989cf7a397c5a8dba41bd91bd62472b
* Fix bug #17459965 Take photo for Profile twice leads to "A resource was ↵Fabrice Di Meglio2014-09-101-1/+15
| | | | | | | | acquired at attached stack trace but never released - close the stream properly in all cases Change-Id: I3a593be534ea444a2e2659458918cce221891456
* Change the location mode before applying restrictionsAmith Yamasani2014-09-021-1/+3
| | | | | | | | Once the location sharing restriction is applied, the setting cannot be changed, so change the setting first. Bug: 17348894 Change-Id: I9dcad230e816aaa2482f1f35f1993f51d14eabc7
* Fix toggle button clickability in app restrictionsAmith Yamasani2014-08-251-17/+2
| | | | | | | Also fix side padding Bug: 17159406 Change-Id: Ic1d61d9a4a7ae6f3f7c451405a6e127791edbdaf
* Switch user on clicking on a user in User SettingsAmith Yamasani2014-08-221-0/+2
| | | | | | | This slipped out of the code somehow. Bug: 15761405 Change-Id: I89c47221f999d5ef23aa7910d31a95bfa730353c
* Update strings for guest removal affordance and dialogAmith Yamasani2014-08-181-2/+2
| | | | | | | | Exit guest -> Remove guest etc. Bug: 16495144 Change-Id: Ieb44e886ea537682a6922046c0f63cef1456c6d8
* Merge "Allow creating last user even if a guest exists." into lmp-devAmith Yamasani2014-08-131-1/+6
|\
| * Allow creating last user even if a guest exists.Amith Yamasani2014-08-111-1/+6
| | | | | | | | | | | | | | | | Bug: 15934700 Also fix missing icon when user has no icon. Change-Id: I07c76043df9cda8aeccecb09289d570845dc4560
* | Merge "Don't allow creating guest when can't create user" into lmp-devJason Monk2014-08-111-1/+17
|\ \
| * | Don't allow creating guest when can't create userJason Monk2014-08-111-1/+17
| |/ | | | | | | | | | | | | | | When user restriction is on to disable adding user also stop the user from creating guests. Bug: 16782635 Change-Id: I0396172867e2e217ada9ef747ea62d0c0382c5dd
* | Show managed profile under accounts rather than usersAlexandra Gherghina2014-08-111-10/+4
|/ | | | | | | | Also fixes overflow menu to update on remove/add managed profile. Bug: 16234745 Bug: 16727076 Change-Id: I3283a8fa0096edfce5aad633e09ba3eed6d2174c
* Toggle between primary and managed profile in Print SettingsAlexandra Gherghina2014-07-295-192/+4
| | | | | | | | | This adds a spinner to the print settings screen which can be used to toggle between the Settings app in the primary and managed profile so that the user can edit settings belonging to both profiles. Bug: 16369104 Change-Id: I2556a331d09379c2a501bc6b192ab1631b5215f5
* Refactoring useless UserUtils classAlexandra Gherghina2014-07-283-37/+2
| | | | Bug: 16542609 Change-Id: Iadb83c5e378cd342ea89d6e224ddc45e6f940c8b
* More User Settings improvementsAmith Yamasani2014-07-264-16/+61
| | | | | | | | | | | | | Add a menu checkbox to allow creation of users from lockscreen. Add a delete icon in restricted profiles settings. Other little fixes to icons. Update some strings based on feedback. Bug: 15761405 Bug: 16550371 Bug: 16298824 Change-Id: Ib876bd57f15c6ce2d71856f72571c6b8b0e3102d
* Don't use the profile info for nameAmith Yamasani2014-07-251-17/+1
| | | | | | | | | Since we now have a way to directly edit the user's photo/name via a dialog, don't rely on the Me profile name anymore. That one will be out of sync with the manual nickname editing. Bug: 15761405 Change-Id: Ia16c43ddcfd47894b2d2e049802d7de153ea5b94
* Refactor User Profile editor dialog for reuseAmith Yamasani2014-07-246-433/+589
| | | | | | | | | Move the dialog code into a separate class. Use it from RestrictedProfileSettings and UserSettings for the current user. Bug: 15761405 Change-Id: I0b9a95ba8463304525e6a4b8cf3b4ca77b15796f
* Merge "Lockdown 'remove user' with user restriction in Settings for phones." ↵Julia Reynolds2014-07-221-0/+3
|\ | | | | | | into lmp-dev
| * Lockdown 'remove user' with user restriction in Settings for phones.Julia Reynolds2014-07-171-0/+3
| | | | | | | | | | Bug: 16367204 Change-Id: I87a30412e89ecb2ae3e7d57edc347cd5b2d1e354