summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/ProfileEnabler.java
Commit message (Collapse)AuthorAgeFilesLines
* privacy: Actually set the blacklist preferenceDiogo Ferreira2015-11-131-158/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Profiles: Point at cmsdk, fix metrics logging.Adnan Begovic2015-10-261-13/+9
| | | | Change-Id: Ic1f3a349c8aa54836128cc91e57e9d31eaca81d3
* Settings: squash of new profile UI for cm-12.0Roman Birg2015-10-261-21/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additions for cm-12.0: - removed expanded desktop - added add profile FAB - updated tabs for meterial style - added enabler switch bar Squashed commits: ------------------------------- Settings: refactor Profiles to be more user friendly * Remove the notion of Profile app groups * Rearrange profile setup flow, now we first present the user with ways which will trigger the profile, then allow them to set what happens when the profile is triggered. Change-Id: I2870df894046cd43c21c67991fb5efc9c3fec837 Signed-off-by: Roman Birg <roman@cyngn.com> Settings: cleanup new profiles UI * cleanup old code * for configuring profiles, add options to modify triggers and remove the profile * remove separate activity * don't hardcode padding pixel sizes Change-Id: I6b1d05c9f918714249411006c7562496e2a7539e Signed-off-by: Roman Birg <roman@cyngn.com> Profiles: fix expanded desktop settings not applying Change-Id: Ia523145bf47bfc189c29b035ad5ec6e053cf9296 Settings: Fix profiles volume override summary. Change-Id: I499cfb3006a7fc7b5e931ac854a7437f5d141523 Settings: fix Profiles expanded desktop choice mapping Change-Id: Ib96811a0c268ca68a7b9732283c5abc142d143a4 Signed-off-by: Roman Birg <roman@cyngn.com> Settings: add "Untouched" ring mode option in profiles Change-Id: I4ac2d63119b328533217104a799cb0660ecddfb9 Signed-off-by: Roman Birg <roman@cyngn.com> Settings: profiles: fix volume streams override behavior Before we would always assume to override the stream, but that is not always the case. Add a checkbox to turn the override on and off. Signed-off-by: Roman Birg <roman@cyngn.com> Change-Id: Ic1a58d59a9e514d4c2ccf376191ac7989bbead26
* Profiles : SettingsDanny Baumann2015-10-261-0/+81
Change-Id: I072758a1c5ec04ef34077551220b6611068fe71d