summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'Navigation bar' PreferenceCategory when emptyMarcos Marado2015-10-291-1/+3
| | | | Change-Id: I64e9d034870c2366a7604c70c71acb7aa8c1b5e1
* Allow disabling Search/Recents button wake (1/2)Michael Bestas2015-10-292-3/+24
| | | | Change-Id: Ic7c1b007b28b204b85f580cf20f82bcc7e863c9d
* Forward port Search button configurationMichael Bestas2015-10-293-0/+51
| | | | | | | Enables the ability to assign different actions to short and long presses on the Search button. Change-Id: I0f7ca9145155debe4af6d96681724fc9911845a0
* setting: Always remove Left-handed mode setting for non-phonesChristopher R. Palmer2015-10-291-5/+5
| | | | | | | | | | | | | | | | Right now, this option is only removed if you have a navigation bar enabled and you aren't a phone. This leads to UI wonkiness on devices that allow the navigation bar to be toggled on/off: * Enable the navigation bar. * Navigate elsewhere and back to Buttons (force it to reload) * Settings >> Buttons now contains a (grayed out) Left-handed mode. * Enable the navigation bar. Now Left-handed mode is available as an option even though it shouldn't be. Change-Id: Ifb3cdd18a014edffaf8bc53c46fc3c2f7a681370
* Settings: don't remove navigation bar prefs when togglingRoman Birg2015-10-291-8/+19
| | | | | | | | | | | | | For devices which support the KeyDisabler class, toggling the nav bar removes the navigation bar category, but does not add it back. If a device can have the nav bar toggled, don't remove the category, but just disable/enable it. [mikeioannina]: Enable categories that depend on navbar toggle only when the navbar switch has finished. Signed-off-by: Roman Birg <roman@cyngn.com> Change-Id: Ie527e3eb357e4a46097257d90c07c78e61f043a9
* Forward port 'Swap volume buttons' (3/3)Michael Bestas2015-10-293-1/+20
| | | | Change-Id: I44a2b37b95848fff24c53c4c3561a3c000c487a1
* Forward port button/keyboard backlight optionsDanny Baumann2015-10-297-0/+754
| | | | Change-Id: Ica02fad15392201b719144c4b911407d5b370cee
* Fix exception being thrown if CMHW is not installed.Danny Baumann2015-10-291-2/+2
| | | | | | Happens during debugging when mmp'ing the app. Change-Id: Ief84a812696ef3f2515701790f96649cbde0f7d9
* Keydisabler: fix button light restore logicDave Daynard2015-10-291-4/+6
| | | | | | | | | | | Do not assign default button brightness if backup key is not found. Instead do nothing. This will prevent brightness being reset to default on boot when navbar is disabled. If backup key is not found when actually toggling navbar then we've got bigger problems. Change-Id: I649bf1480a42f2cbe94d0a47a0c6055c934b4f56
* Buttons: Prevent toggling disable hardware keys too quicklyEthan Chen2015-10-291-0/+7
| | | | | | | * Apparently the phone window manager _really_ doesn't like it when you do toggle this too quickly. Change-Id: I936c6554927ffcdc7c78edaf25f71aedba497ac8
* Settings: fix NPE in ButtonSettingsPawit Pornkitprasan2015-10-291-0/+2
| | | | Change-Id: Ib2ab4d7d5ed3aaceeba8fe942b7a29cd01f003fb
* [2/2] Left handed navbar during landscape modeShuhao Wu2015-10-293-0/+53
| | | | | | | | | | | | | | | | | | | | | This patch allows for the navbar to be moved to the left side of the screen during landscape mode. Left handed people are more used to this option. Screenshot: http://i.imgur.com/jWqJcEV.png Contributors: Decad3nce https://github.com/CyanogenMod/android_packages_apps_Settings/commit/a2b5ff1542e802f4257e7a7746ceb9e1c9cf333e romanbb https://github.com/CyanogenMod/android_packages_apps_Settings/commit/34344a5fa2a03d849901f09340f3dd8010e2a7fe crpalmer https://github.com/CyanogenMod/android_packages_apps_Settings/commit/6833e8c627e0b44b0ee7191fce714556ab3eac25 Change-Id: Ic95e3fda1f55efd2ec908c8d7226e638ec0ab80a
* Cleanup button wake settings (1/2)Michael Bestas2015-10-295-45/+64
| | | | Change-Id: I972251384eee15cf9e4915cd82d189ed7ef3050d
* Buttons: Forward port Recents button configurationMatt Mower2015-10-293-0/+52
| | | | | | | Enables the ability to assign different actions to short and long presses on the Recents (App Switch) button. Change-Id: I5f8835841218932789431057e0531914a29980b9
* Settings - Button settings: CheckBoxes to SwitchesSTELIX2015-10-292-21/+21
| | | | | Change-Id: Id72eec3ee2d5f9b90725c7787d21a34f8f58de57 Signed-off-by: STELIX <ssspinni@gmail.com>
* Settings: last app action in long pressMarcos Marado2015-10-293-4/+7
| | | | Change-Id: I72d9cb5bca5eedd20ea80ee69d370a478e59def4
* bugfix: there are other options after in-app searchMarcos Marado2015-10-291-2/+2
| | | | | | | | On "Settings -> Buttons -> Home Button -> Long press action" there's a list of options. Any option after the "in-app search" one was being ignored. Change-Id: I136235a6798496a0a8786bad59b168845c677bdd
* Settings: volume wake preferenceMartin Brabham2015-10-293-1/+34
| | | | Change-Id: I6a732e627b75a1be533ecd96cb018307de0e5a77
* Answer call with hardware HOME button (1/2)Oleksandr Byelkin2015-10-295-40/+95
| | | | | | | | | | | | | | | Squashed commit of the following: Author: Oleksandr Byelkin <sanja.byelkin@gmail.com> Adds ability to answer call with hardware HOME button preparation to winter time Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec Author: Michael Bestas <mikeioannina@gmail.com> Settings: Move home answer & power end call options Move 'Home answers call' & 'Power ends call' options to button settings Change-Id: I2f365a3d278b0845b7c5ffcfe70c54160a00c24e
* Settings: allow home button to wake device [2/2]Danny Baumann2015-10-294-0/+16
| | | | Change-Id: I5c887422636f8bc51cb324339b3cdcac7af54400
* Settings: Volume key cursor control (2/2)Konsta2015-10-296-0/+56
| | | | Change-Id: Ibc52b5d0c59558be9a24286ef6f1c6f049e117a3
* Buttons: Allow disabling hard navigation keysTimo Wendt2015-10-295-3/+161
| | | | | | | | | This adds support for enabling the navbar on devices with hardware keys. This requires that the device supports the KeyDisabler HAF methods, and is available in the Buttons menu Change-Id: I01bd83b312745b4a8aa3bde0cf5f02ea99a888cc
* Settings : Hardware key rebinding (2/2)Adnan2015-10-295-0/+320
| | | | Change-Id: I1a0546f358e787a9c6ab12024e34255475259424
* Settings: Use cyanogenmod.os.Build for props.Adnan Begovic2015-10-291-1/+1
| | | | Change-Id: I7c1ac67a001c090e784ec2b02cefdeb1026572b5
* Revert "Settings : Port forward statusbar settings"Danesh M2015-10-297-383/+0
| | | | | | | | Revert temporarily. This reverts commit 44365c774032211ef562042d7955fb162aab01dd. Change-Id: Ib4a05de8b4f5a0b8ed4f46ad80ad5fe88d85cc0f
* Settings : Port forward statusbar settingsDanesh M2015-10-297-0/+383
| | | | Change-Id: I4077929106316935921e3e5baae5d15f481d4115
* Settings: Create CMSystemSettingSwitchPreference.Adnan Begovic2015-10-282-4/+69
| | | | | | We may still need to reference AOSP settings at some point. Change-Id: Iaf25653df26286df13373658199bec8522719feb
* Break out the add icon to be separately themeable.Dave Kover2015-10-282-1/+4
| | | | | | | | | If Settings is using the accent color for app bar, the add icon is also colored with this value typically and will cause readability issues. Adding a new drawable name that can be referenced to allow separate theming. Change-Id: I20512091e7a36c510399cbc5caa73aa8817fe393
* Themes: Allow switchbar text color to be themeableDave Kover2015-10-282-1/+3
| | | | | | | | Better exposing the color of the switch bar text so that a theme can handle this assignment separately without having to touch framework theme colors. Change-Id: I81e3430e188f1ee0a22e92aea50878980f9cc61f
* Expose hardcoded and @android colors from layoutsClark Scheff2015-10-2820-32/+72
| | | | | | | | This will allow theme designers better flexibility with the themes they design for Settings. There are probably other resources we need to expose but this is a good start. Change-Id: I81254f72cd2d47bc05a7f15c8e3a9fb4c89c8be8
* bluetooth: Don't crash when the local adapter is not setDiogo Ferreira2015-10-281-1/+3
| | | | | | | | | | | | In devices where bluetooth is not working (like the emulator or devices in development), the bluetooth Settings crashes when closing the activity. Most of the code checks for the nullability of the local adapter except for this particular piece. This is usually not a worry for production devices and I wouldn't usually worry about this but since the rest of the code performs the nullability check it seems silly to crash onPause. Change-Id: I7c1d3b43969b516336be770957008ef2054d312f
* 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
* Setting: Match brightness override padding to volume overrideJon S2015-10-271-2/+5
| | | | Change-Id: I575b8b4d66f829b8767e6feb972b7de3365532cd
* Settings: Update profiles settings dashboard icon.Asher Simonds2015-10-271-6/+23
| | | | | Ticket: DES-343 Change-Id: I6d9617068a7efa6653dc6c4d51e144c50173b3fd
* 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-274-1/+79
| | | | | | | 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>
* Settings: Add option to scramble pin layout when unlocking (1/2).Adnan2015-10-272-0/+8
| | | | Change-Id: I3e2c200a0a31d3c765831bc30280029a50c88051
* Fix Profiles settings screen paddingDvTonder2015-10-273-46/+29
| | | | 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
* Settings: Fix compilationEthan Chen2015-10-263-10/+11
| | | | Change-Id: I25e3350408a7e70400b0ed74ec30882b3f310dec
* settings: Add missing stringsSteve Kondik2015-10-261-1/+4
| | | | Change-Id: I99318ea1f391983cc85583c2777b578beeeef011
* Add an option to change the device hostname (2/2).Alex Avance2015-10-273-1/+142
| | | | | | | | This adds an option to modify the device hostname used in ip resolution. This is useful when connecting to the android device in a dynamic dhcp environment. Change-Id: Ibc145b74036617248d4f33c6866cc9c8a8cc8974
* Settings: Forward port ADB over network (Part 1 of 2)Dave Carey2015-10-263-11/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of: - Adb over network (Settings part for Jellybean) + Display WiFi IP Address & Port as preference summary. Note: adb_over_network were already pushed in 5555aae Author: Tanguy Pruvot Id: Ia05aa8f6281c9bdcb3d5e62566b103c38bc70b82 - Settings : Fix mismatched dialog listener Set listener on correct dialog Author: Danesh Mondegarian Id: I0c05af859ad0e93ba6a1d3d395dc6c31e9949426 - ADB: missing dialog dismiss, and use updateCheckBox() this function check if debug features are enabled. Author: Tanguy Pruvot Id: I675a3a9ce5c28b16f9e13e78499e5f6f897b9dd3 - DevelopmentSettings: Refactor ADB over Network The checkbox would never enable adbd in tcpip mode. Author: Alexander Hofbauer Id: Iab8307bb91f69d85ed3a46d5ef09274fa8b03da Patchset 2 : Remove dupe checkbox and move to proper header [mikeioannina]: Update for L Change-Id: I3d61408946912fa0e5f796531413c78255257efe
* Settings: Update strings for api level.Adnan Begovic2015-10-262-3/+3
| | | | Change-Id: I9ed5a1020ad5ee750c9270897710784e31ce354f