summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
Commit message (Collapse)AuthorAgeFilesLines
* Profiles: Disable notification item if ringtone & notification volumes are ↵Luis Vidal2016-05-131-1/+12
| | | | | | | | | | | linked The notification item will be disabled if the notification and ringtone volumes are linked. This is to keep consistency with the sound settings Change-Id: Ibbe7612eae5e9b7b18d63450ab8331f02becf5ca TICKET: CYNGNOS-958
* Settings: fix profiles nw selection with 1 sim in MSIM DUTRoman Birg2016-04-041-1/+1
| | | | | | Ticket: CYNGNOS-1463 Change-Id: I2ad9436c17f0c2ecc9aea7cae7d2f6c806eb9ed7 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: ask telephony for network selectionRoman Birg2016-03-152-120/+114
| | | | | | | | | | | | When configuring profiles and selecting a network mode override, ask Telephony to provide the UI for showing the proper network modes. After the user has selected it, we receive the result, and save it in the profile. Ref: CYNGNOS-1463 Change-Id: I866ed1bc1c915ae00804b07dbbafa86e679a5fa7 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: Add notification light setting to system profiles (2/2)Petr Sedlacek2016-02-103-1/+124
| | | | Change-Id: I6e0f844362ad5a479b40da08bce8a66be10503ec
* Settings: Add CMMetricsLogger constants to proper pages.Adnan Begovic2016-01-116-12/+13
| | | | Change-Id: I6e1d0ec2be4c6da51267c163575472827c9c50cd
* Profiles: Cleanup the codeMichael Bestas2015-12-2822-86/+75
| | | | | | | | * Fix code style * Fix a couple mismerges * Align strings with cm-12.1 Change-Id: I0795c114014e53101c7d6697bb9a229c003973ab
* Profiles: remove unused codeScott Mertz2015-12-271-70/+0
| | | | Change-Id: Icfbe90f25f537a673a1b749c217dca9efb6a1c70
* Settings: always allow profile app groups to be linked/unlinkedRoman Birg2015-12-271-4/+4
| | | | | Change-Id: I271d409f925805d26c918d156e8ae41253cc08b1 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings : Save instance state for app group deletesDanesh M2015-12-271-1/+11
| | | | | | | | | | | | | When deleting an app, inside of an app group in profiles, if the user rotates device while confirmation is showing and presses ok, it is a no-op. Reason is mPackageToDelete loses its state when rotation is change. Address this by persisting it in the state bundle. issue-id: CYNGNOS-1119 Change-Id: I43dd9ccae7e16e92e5ac054f1b2ac0119cbfe60b
* Settings: fix empty Wifi triggers screenRoman Birg2015-12-271-2/+1
| | | | | Change-Id: If6b3a71e0ed28558d74132ddd4594b98bf2955e9 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: make empty profile trigger screens more usefulRoman Birg2015-12-272-1/+58
| | | | | Change-Id: I7e4061615f2bb1c1fabd37c8f5b792b04a99a2c8 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: merge ProfilesList into ProfilesSettingsRoman Birg2015-12-272-167/+89
| | | | | | | | | | | | | | | | ProfilesSettings previously had a viewpager with the profiles list, and an app group list. Then we removed app groups, but the viewpager was left over. The main reason for getting rid of it now is to make sure that refreshList() always works. Previously there was a small chance that because it was in a viewpager, the preference may not have been attached (at the time of the resetAll() dialog being shown and user pressing yes), which caused the refresh method call to fail, since it needs access to the preference screen, which is null at that time. Change-Id: Ib9c3a27e3062660bd8a91998c20c15b4ffb4390b Signed-off-by: Roman Birg <roman@cyngn.com>
* Profiles: Fix override item summary not displaying noneLuK13372015-12-271-1/+1
| | | | | | * Mismerge from cm-12.1 Change-Id: Ica5bce4f1b371dcf2ad23ba8f938d449a9397339
* Settings: respect telephony config for profiles overrideRoman Birg2015-12-211-5/+35
| | | | | | | | Some networks specifically disallow 2G to be selected as the preferred setting. We should respect that. Change-Id: Ic4414ed78c9f38b5c11969300dc858725ee3b2c6 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: Fix IllegalArgumentException in AppGroupConfiglion07382015-12-011-2/+3
| | | | Change-Id: I772d5f8e443699ff3f45e8d1c50debb2c7730b17
* Use ScreenType util from cmsdkLorDClockaN2015-11-302-4/+17
| | | | Change-Id: I07874c68802674695877c6bd0329c8973dd1c653
* Fix profiles toggleLuK13372015-11-161-4/+4
| | | | | | * Also implement CMBaseSystemSettingSwitchBar used for it. Change-Id: I1109cf06066a6c5f57044a484b0af6bbb38dc1b1
* ProfileGroupConfig: Use correct metrics categoryLuK13372015-11-161-2/+3
| | | | Change-Id: Ieedeaf03a3ba8246a643bfb9003c45f25b4facf5
* privacy: Actually set the blacklist preferenceDiogo Ferreira2015-11-133-161/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The preference was not being set, which caused this code to throw an NPE on devices without telephony when opening the privacy preferences. This bug also affects devices with telephony in that the preference doesn't update its text. I also got rid of the null check because the preference always exists, the null check is pointless and ended up hiding this bug. Change-Id: I95555d44349700a8f29a71a2f2ee9aedf419b49b Settings: Fix blacklist settings crash Change-Id: Idd261aa9f8e2867312aaaece26150671b177994c Settings: materialize Blacklist settings * Add a FAB * Add a (generic system) enable/disable switch bar Change-Id: I0984bf6769abef48cc7e0a643c2bdd73219954fc Signed-off-by: Roman Birg <roman@cyngn.com> Settings: add a way to open blacklist settings externally Opening the activity doesn't theme the switch bar - an alias works. Change-Id: I78efb382f4f1f4d208f122fedb0d71a86b515405 Signed-off-by: Roman Birg <roman@cyngn.com> blacklist: make it possible to unblacklist phone/messages via checkboxes Change-Id: I7d982d17818efe065e4e22f2a86a46493672584a Settings: fix blacklist settings crash On a device rotate, the MultiSelectListPreference would try and restore its state since the preferences aren't persisted. Clear the persisted flag so the MultiSelectPreference doesn't try and restore the states, as they get populated in onResume(). Change-Id: I0d0304e2367ade66e35ae7df432575d13ed0993e Signed-off-by: Roman Birg <roman@cyngn.com> Settings : Update blacklist strings Change-Id: I08ea4405f41f86a9eaf7bae74cbb61fa1fb0c8aa (cherry picked from commit 6d8cc2c697752a1357915ea88651b2fe220a54ba) Settings : Add input checks for blacklist input There can be situations where user enters invalid input. Ensure that is handled. Repro : 1. Add new blacklist entry 2. Enter / 3. Press ok 4. Enjoy crash issue-id: CYNGNOS-980 Change-Id: Ica90ac835f374569123e679ba39c3caa7179ef65 Settings : Fix blacklist delete number crash issue-id : HAM-795 Change-Id: I25306b3d4bead5487f039c3f51b631b1ef88b18d
* Power menu customizations [2/2]Dave Kessler2015-10-291-0/+1
| | | | | | | | | | | | | | power reboot screenshot profile switcher airplane mode user switcher bug reports [mikeioannina]: Modify for CyanogenMod Change-Id: Iadb41a661770f8b71eef4e12b1d8f04d0ba3e6be
* ProfileSettings : Ensure brightness settings only apply on acceptDanesh M2015-10-271-5/+1
| | | | | | | | | | | | | | If the user clicks cancel, changes should not persist. Repro: 1) Edit current profile 2) Change brightness via override 3) Press cancel issue-id: CYNGNOS-1174 Change-Id: I6a09c642cd22509161efa5565276ea9c06973f5e
* ProfileGroupConfig: Use CMSDK profile managerLuK13372015-10-271-3/+1
| | | | | | * Should fix the NPE on 145th line Change-Id: Icfbb961a4f562d977bf14fbfa603c7bb11d2cdca
* Settings : Fix profile action offset when changing orientationDanesh M2015-10-271-1/+1
| | | | | | | | | | | | | | | | | | | If a listview has headers/footers, getItemAtPosition takes that into account given a position. When we restore state, we fetch it from the adapter which has no concept of header/footer. Fix this by storing the position in the adapter itself. Repro: 1) Create new profile 2) Skip triggers 3) Click one of the preferences 4) Rotate phone 5) Notice the title change Change-Id: Ifaecf99615d922140e8cd531ab164320de729439 issue-id: CYNGNOS-1168
* Settings: Make sure we're getting the instance of ProfileManager.Adnan Begovic2015-10-271-1/+1
| | | | | Ticket: BAMBOO-156 Change-Id: Ie4e576c3cae145339816bc6044d4fd43dde0efd6
* Profiles: Get Default profile with its UUID instead of nameBrandon McAnsh2015-10-271-2/+0
| | | | | | | | | | | * getProfiles(name) is deprecated so get it with the UUID PS2: Use uuid added with I352cc2bfd8 Should fix BUGDUMP-1936587 Change-Id: Iefe823b12561a661da10cc8b8338c381876590ee Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* profiles: respect lockscreen policiesJorge Ruesga2015-10-273-1/+78
| | | | | | | Don't allow to change lockscreen mode if there is a device administrador that avoid it Change-Id: I2485f96fba41c60248260ee03ffa0614e94195b4 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Settings: fix potential NPE when resetting profilesRoman Birg2015-10-271-1/+0
| | | | | | | | | | | | | | | When the user hits the positive button in the confirmation dialog to reset profiles, we force a refresh of the profiles list. This can lead to a NPE exception being thrown if it happens before the dialog actually gets dismissed (and the ProfilesList fragment is actually attached) since the reload list calls getPreferenceScreen(), which can be null, since it is not attached. After the dialog disappears, onResume() gets called in ProfilesList anyways, so there's no need for a forced refresh. Change-Id: I93de7115a69cc7545bf6a33de3a4abf5443658b9 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: apply default profile after resetting themRoman Birg2015-10-271-0/+2
| | | | | Change-Id: Ibdd09e069ec6c71b3e3f914614805b01bdf8a3dd Signed-off-by: Roman Birg <roman@cyngn.com>
* Fix Profiles settings screen paddingDvTonder2015-10-272-13/+0
| | | | Change-Id: Iff56f777141cc1e56492da7a2b20e2af02a7db8f
* Profiles: fix a ClassCastExceptionAltaf-Mahdi2015-10-271-1/+1
| | | | Change-Id: Ia4415c7a8ac02b6f3be1950dc68fad07e46f0fb9
* Settings : Fix profiles crashDanesh M2015-10-271-2/+1
| | | | Change-Id: I1612926c34fac52c93b813babe5be74b7ebf1e4f
* Profiles: Point at cmsdk, fix metrics logging.Adnan Begovic2015-10-2614-68/+108
| | | | Change-Id: Ic1f3a349c8aa54836128cc91e57e9d31eaca81d3
* Settings: Point to classes within cmsdk.Adnan Begovic2015-10-268-28/+25
| | | | Change-Id: I19a767e90d20bd6a8b4709416779590aabd9858f
* Settings: Refactor to point at Profiles in CMSDK.Adnan Begovic2015-10-2620-75/+87
| | | | Change-Id: I589dd372a58d8aca0f804e419992c28188d5380c
* Settings: persist profile dialogs while rotationg screenRoman Birg2015-10-261-138/+199
| | | | | Change-Id: Ie15b99919377bb2c2b7b5f203ceb7e62f064911c Signed-off-by: Roman Birg <roman@cyngn.com>
* Profiles: fix SeekBarVolumizer behaviorRaj Yengisetty2015-10-261-1/+3
| | | | | | | | - Seekbar needs to be setEnabled() *after* setting the seekbar to the volumizer becase volumizer.setSeekBar() will set the seekbar's enabled state. Change-Id: Ia5b3b8cfaebb54997a60a7f09915e1f22016c060
* Settings: enable/disable doze through Profiles (2/2)Altaf-Mahdi2015-10-263-1/+119
| | | | | | * moved isDozeAvailable boolean to Utils so we can check for it in profiles Change-Id: I5a768098b4ed00b28931bee58a58efa8280262a1
* Settings: restore App groups with advanced modeRoman Birg2015-10-2610-0/+997
| | | | | Change-Id: I2dc623ab969d881201b18346e492cf9ea5111587 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: setup Default Profile after OOBE has runRoman Birg2015-10-262-100/+129
| | | | | Change-Id: Ic961d5bfd041830baff4d6d73fc36762a1f6dfcf Signed-off-by: Roman Birg <roman@cyngn.com>
* Profiles: play Ringtone when setting volume overridesRaj Yengisetty2015-10-261-2/+12
| | | | Change-Id: Ibd171f9fcbf96aa0dae9a1dafb6fb07105b2f4c8
* Add brightness settings to Profiles (1/2)heydabop2015-10-263-1/+129
| | | | | Change-Id: I7d76b49c134db6b61ed84e33f6897d90a16db630 (cherry picked from commit f5c90803094bd4432fd181ae8189b1d5718b44a7)
* Settings: prompt to fill new profiles out only onceRoman Birg2015-10-261-1/+2
| | | | | | | | On rotate, this popup would keep coming up, even after the user expressed yes/no. Change-Id: Iac47797f8a9538d0bedf1db4a41209578df544f3 Signed-off-by: Roman Birg <roman@cyngn.com>
* Don't save dialog changes when hitting 'cancel'.Danny Baumann2015-10-261-12/+2
| | | | Change-Id: I202007c1558a981cec467d7258b699b39beec51f
* Settings: bring up IME when renaming profileRoman Birg2015-10-261-1/+9
| | | | | Change-Id: I3535503d5e5431e9e6790933171e0fabe05c3cc6 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: don't add inline trigger links to profiles in creation modeRoman Birg2015-10-261-8/+10
| | | | | Change-Id: I24c12df7478c18858c6b612dc4ee274792dd5e24 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: fix changing profile triggers not updating actions pageRoman Birg2015-10-261-1/+6
| | | | | | | | | | | | With an already-configured profile, modifying the triggers, and returning to the actions screen does not reflect any updates that may have been made. When returning from the Triggers fragment, reload the profile, and the item list. Change-Id: I784c941d0572a48a0afe1a620f309fcb6f462599 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: set profile name as title when editingRoman Birg2015-10-261-3/+5
| | | | | Change-Id: I0f19adb0bc46a708dd7583735cf15c14c336e2c8 Signed-off-by: Roman Birg <roman@cyngn.com>
* Profiles: check if device supports connection before reading values.Shaleen Jain2015-10-261-13/+13
| | | | Change-Id: I9346fd5df42a41d8e1fc2f7228f47bae3a8a7688
* Profiles: add triggers only for connections supported.Shaleen Jain2015-10-261-8/+19
| | | | Change-Id: I048828749b0ec8934ee8d88ed99cd0d53a6753b3
* Settings: Also disallow profile names with spaceslinus_lee2015-10-261-1/+3
| | | | Change-Id: Ie7d79518b0a0e28a929b7bdad3e41319e485af33