summaryrefslogtreecommitdiffstats
path: root/res
Commit message (Collapse)AuthorAgeFilesLines
* MasterClear: update UIRoman Birg2016-01-274-0/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also squashed the following related commits from 12.1: MasterClear: fix FRP wipe crash Requesting setRequestedOrientation() right after showing a custom dialog in a DialogFragment does not play nice. It forces the activity to be recreated instantly, so when the task finishes, there original activity the AsyncTask is tied to is no longer valid. However, if we let fragment manager keep track of all the dialogs, it doesn't break the expected behavior. REF: CYNGNOS-427 Change-Id: I0609816182a6b5319d2a88ff0075d53e3c2fed16 Signed-off-by: Roman Birg <roman@cyngn.com> Settings: make FRP wipe dialog not cancelable User should not be able to interact with the screen after the process has started. Otherwise we can get in a bad state and never perform the factory reset. Ref: CYNGNOS-427 Change-Id: I197a6ca70487a33b0ce402fda7a2d58828e8e1bb Signed-off-by: Roman Birg <roman@cyngn.com> Settings: don't crash when dismissing FRP If the user has pressed home while the dailog is up, there may be nothing to dismiss by the time the task finishes. Ref: CYNGNOS-427 Change-Id: Ic4fdec1ecb32f88181feba4bfd3eb337b1b61efd Signed-off-by: Roman Birg <roman@cyngn.com> Settings: continue factory reset if user leaves activity If the FRP dialog is up, and the user presses the home button, the FRP task will finish, and then try to use the activity context to initiate the wipe, and the fragment to retreive args, both of which is no longer valid. Cache all variables before the task begins, and use the application context to complete the calls. Ref: CYNGNOS-427 Change-Id: I5c8b286195a0b57fd879a1022d64ea548363b925 Signed-off-by: Roman Birg <roman@cyngn.com> Ref: Settings-86 Change-Id: I759de586bf5cb8558d42575d08df63aaf84fffa6 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings : Add overlay for hiding wifi region codeDanesh M2016-01-261-0/+1
| | | | | | CYNGNOS-1637 Change-Id: Ieb1f6553a2addb17ec6b93b51ab8fb19f6c5ca49
* Fix alignment on dashboard.Dave Kover2016-01-261-13/+10
| | | | | | | | | When the switch is present, the text is aligning to the top instead of centering to the iconography on the left. Shuffle the layout to make it center where it belongs. Change-Id: I5f2b497385c9370473df441c79e8fc7ddf3b740f Ticket: CYNGNOS-1669
* Automatic translation importMichael Bestas2016-01-2554-187/+2239
| | | | Change-Id: I976c45499030cc38127e57a9ecec7aa602e6722f
* Regulatory text color: make this readableAbhisek Devkota2016-01-251-1/+1
| | | | | | OPO-320 Change-Id: I944f91f70d18f55542deee14f5153626f539ad29
* Settings: Apps started on boot shortcut in memory settingsAdrianDC2016-01-242-2/+11
| | | | | | | | | * Implement an intent extra to retrieve a tab target * Use a tab identifer from apps_ops_categories_cm to make sure the selection is correct or ignored Change-Id: I79d963ecbadc624dc45a398387a348691318b6be Signed-off-by: AdrianDC <radian.dc@gmail.com>
* Settings: Move Do Not Disturb Access under DND settingsAdrianDC2016-01-242-8/+10
| | | | | Change-Id: I4763577b4cd5aae01705cc693dfaaf06152bd3e6 Signed-off-by: AdrianDC <radian.dc@gmail.com>
* Improve a SIM enabler stringMichael Bestas2016-01-251-1/+1
| | | | Change-Id: I019c5f7676f9870ea170c2bc6c9043953cd9f52f
* Add left QS quick pulldown (2/3)Michael Bestas2016-01-243-6/+24
| | | | Change-Id: I0e8c944039e5a6702bfbbcdbfbf89a3f734f37e3
* Settings : Improve usage stats screenDanesh M2016-01-224-49/+67
| | | | | | CYNGNOS-1317 Change-Id: I9df05539c46ea27f8e4e975c8d3bc4aee9823704
* Settings: Add fingerprint authentication for protected apps.Adnan Begovic2016-01-224-0/+64
| | | | | | | | Protected apps users can now authenticate via fingerprint if they have at least 1 fingerprint enrolled. Change-Id: I47504d9183d42ff974b0e1b0f271a424fd747608 TICKET: CYNGNOS-84
* Settings: Actually expose protected apps settings.Adnan Begovic2016-01-222-0/+12
| | | | | | | | Since protected apps are seemingly useful now, promote them within the privacy guard menu. Change-Id: I9024cd88f2655f18fb2b68fcf9d75b12e4b5a97e TICKET: CYNGNOS-84
* Break out status bar icon from extdesk icon.Dave Kover2016-01-217-2/+29
| | | | | | | | | | | | | Create a separate resource for the dashboard category icon for Status Bar. Rename the extended desktop icons so they are further distinguished from the dashboard iconography. The goal is makea sure only dashboard icons are using the ic_settings_ prefix and rename iconography that is not part of that view. Ticket: CYNGNOS-1681 Change-Id: I54165bd4338bb1d73f1d453f75ee1c06cfd62a8f
* Settings: update FOTA link to be implicitRoman Birg2016-01-181-3/+4
| | | | | | | MC-826 Change-Id: Ife9c6a7779d1ff9f74e2ba9e13b1b3948fb2c4d4 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: show warning in lock screen settings when disabled by qsRoman Birg2016-01-131-0/+5
| | | | | | | | | Tapping the setting will re-enable the lock screen. Ref: CYNGNOS-1513 Change-Id: Ifbd53fb3d1cd199c85dedb0d96b01e8f29e7c024 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: Set regulatory information dialog to non-translatable.Adnan Begovic2016-01-121-1/+1
| | | | Change-Id: I0d5012dc84ec8e6488b0b09d82e2d7bce1afdd38
* Settings: Show ringtone per sim for multi sim deviceAdnan2016-01-121-0/+2
| | | | | TICKET: CYNGNOS-1589 Change-Id: I56244242cece2c0ab732a2edb8d8c57e9d2c29b3
* Squash commit of SAR and IC Code.Adnan Begovic2016-01-124-4/+49
| | | | | | | | | | | | | | | | | | | | | TICKET: CYNGNOS-1586 Settings: Show SAR on Regulatory Info (from CM11) This brings these three commits from CM11: Settings: Create SAR level preference, allow overlay. Change-Id: I1af616696702f72b8a6276b3b01e940d61735137 Change Regulatory Info Activity to prefer string over image Change-Id: I9ea5c2bf469af8f654ec4e4bb4f2a8a5738e6a95 Settings: Allow Regulator Information Dialog Title to be overlaid. Change-Id: I5aead313589f5d5291d20a0388d2d8bc7242b711 Settings: Refactory regulatory dialog. Display IC Code. Change-Id: Id268830404d09eed318e38474fe1a9062fc4e962
* Automatic translation importMichael Bestas2016-01-11115-417/+9077
| | | | Change-Id: I6a73233e7c5689c683bc444bcea93b910f69124e
* Some text are missing in eject sdcard warningHenrik Baard2016-01-111-5/+0
| | | | | | | | | | | | | | | | | The eject sdcard warning page shows incomplete texts in some languages (german) and it is not apparant that that you can scroll to see the text. The layout is divided into three parts, the button and one blank line, and the text. The text and the blanke space will have equal parts of the screen since they have the same weight. Because of this the (complete) text is not shown in som languages. Remove the blank part and let the text use the whole screen. Change-Id: Id8fd88fc6c0aa6105d64c100e3365cd9b00bf851
* Settings: Set default value for 'Volume keys control ringer stream'Gabriele M2016-01-111-1/+2
| | | | | | | The option is enabled by default, but we show it as disabled, so set the default value to true. Change-Id: I757d51b45cf0634497f1aad81e155148f2a688dc
* Settings: request runtime permissions inside VoiceWakeupRoman Birg2016-01-111-0/+1
| | | | | | | | | | | | | | | If the user has selected a Direct dial shortcut for their voice wakeup action, then the app which launches this intent must hold the dangerous permission CALL_PHONE. So when the user picks an intent which would require this permission, make sure VoiceWakeup requests and grants the permission. Otherwise reset to default. Ref: CYNGNOS-1560 Change-Id: I02e2c7a7d9958a5b15f438687f509802e75db704 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: EL AOSP translation fixesMichael Bestas2016-01-112-7/+7
| | | | | | | | | | Come on AOSP, we're fixing these since ICS... Change-Id: Ic94f25a2335d187c98d8712e8dbd3bcaac82cfb9 Settings: Modify AOSP EL translations Change-Id: I7e3a59412a2884c26a5eb165676e381d003f0fca
* Improve DPI warning stringMichael Bestas2016-01-111-1/+1
| | | | Change-Id: I3dae9dfc15a2dcfbbb59dcdf3f6d44d694598c05
* Integrate mobile network settings into SIM settings for MSIM.Danny Baumann2016-01-062-0/+5
| | | | Change-Id: I3ab67d0dcb2979d2b527d40642d0c0f5b3e07034
* Remove a few MSIM tab hosts.Danny Baumann2016-01-063-72/+5
| | | | Change-Id: Idd0b7738685ba05fc7c6a85306fcf5e5b08203ff
* Settings: add link to statusbar icon config screenRoman Birg2016-01-062-1/+15
| | | | | | | | The SystemUI tuner allowed you to hide specific statusbar icons. Add a link in Status bar settings back to the status bar icon config screen. Change-Id: Ib239c8b893769bcf273664a15e8112caca8a0618 Signed-off-by: Roman Birg <roman@cyngn.com>
* Fix zen mode allowed event preference summary.Danny Baumann2016-01-061-0/+10
| | | | | | | | | Simply using lower-cased versions of other strings might work for English, but not for most other languages. Also improve formatting of list: Instead of showing 'a, b, c', show 'a, b and c'. Change-Id: I7a809e0655cbde3af1695ec3ddf86ec818fb191d
* Remove ic_menu_add.png drawablesd34d2016-01-053-0/+0
| | | | | | | | | | | ic_menu_add is defined in XML and provides tinting of the icon within settings, but the system picks up the png images which causes a white on icon on a white background since no tint is applied. Thses icons were re-introduced when profiles were ported over to CM13 see commit d40cd5728a415efd72ee192fa6f67727411ed959 Change-Id: I24448b753ce43b6229f68f2b13043b1412db6069
* Move more CAF strings and cleanupMichael Bestas2016-01-052-33/+23
| | | | | | | | | * Move all CAF strings to cm_strings * Remove duplicate strings * Reuse sim_calls_ask_first_prefs_title for sms * Improve CAF SIM enabler strings Change-Id: I6cf0fb0fe23800301b1fc8c37022ee9b79b5818b
* regulatory: Make the image fill the whole parentDiogo Ferreira2016-01-051-1/+1
| | | | | | | | Since the scale type is centerCrop, the container must fill the parent so that the image is properly centered in the screen in both landscape and portrait. Change-Id: Ieb664271eb37903ee0e043c6bfdf8f65c95025b9
* Themes: Add main dashboard background back from lollipopBryan Owens2016-01-032-0/+2
| | | | | | | | | | -This will make themes look the same as lollipop wihtout changing styles -Also needed for subsettings to have it's own bg color from main settings -All other work arounds have caused fc so this was the best solution to other issues -Make note if using Day/Night mode option this commit needs to be reverted Change-Id: I509258806ac92c699693672ee172776035c6866d Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
* [1/2] Settings AppOps: show/hide app type and allow/deny countersSam Mortimer2016-01-034-4/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | Squash of: Author: Sam Mortimer <sam@mortimer.me.uk> Date: Thu Oct 3 13:51:31 2013 -0700 AppOps: menu options to show/hide user and system apps Change-Id: Ia55364c361db949a891e4b53a757ee4dff519eb6 Author: Sam Mortimer <sam@mortimer.me.uk> Author: Danny Baumann <dannybaumann@web.de> Date: Wed Oct 2 22:24:14 2013 -0700 [1/2] AppOps: Show allowed/ignored counts Change-Id: Ia27737155c33e934df9a2a1fcff88379240fd096 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Sun Dec 1 21:39:07 2013 -0800 AppOps: only apply app type filters to summary screen *) If buildState() is called for a single package, do not apply hide user/system app filters. *) Fixes show detail display when called via long press in privacyguard and an AppOp hide filter is ticked. Change-Id: If31d094fb989836ab6829daeefe820695032c0ed Change-Id: I4d6f37b3923eb9bc98d67101d6f0ef481a427682
* Update privacy guard reset iconMichael Bestas2016-01-031-1/+1
| | | | Change-Id: Ia636b08fea0d21c0185d053ecf601d1ddcf5a828
* Settings: Convert AppOps array items to string referencesMichael Bestas2016-01-033-21/+344
| | | | | | | * Avoid future breakage This will need conversion of all AOSP translated arrays to strings Change-Id: I2e52e4013d1232d529ce5b9e3aae3502c42e938a
* AppOps: Use switch widget for non-strict ops.Shashank Mittal2016-01-031-0/+13
| | | | | | | There are few Ops for which 'Always Ask' mode is not allwoed. So use switch widget to control such Ops. Change-Id: Ic7464a207c00e4cb9efff57c1f060e04379c1ee7
* AppOps: Add more operations in app ops settings.Shashank Mittal2016-01-031-1/+2
| | | | | | | | | | | | | | | | | | | | | Add following operations in app ops settings. -- Wifi enable/disable -- Bluetooth enable/disable Change-Id: I32183d77b88c326168557444a445765b5a69de6f AppOps: Add support for nfc operation Add support for nfc operation Change-Id: I0ca617b11d3f65f80cc49c3f629312e2fee1ba91 AppOps: Add mobile data-on permission control. Add mobile data-on permission control. Change-Id: I0956fb1575addb5f4e522e664a80442120190b86
* AppOps: Add 'Always ask' option under appOps setting.Shashank Mittal2016-01-032-5/+5
| | | | | | Add always ask option for each operation. Change-Id: Ia4f331a5b7d0b1c8ae6946c55a4f78818fe0454f
* Settings: Respect legacy quick pulldown row.Adnan Begovic2016-01-021-1/+1
| | | | Change-Id: I5d4096160956e02c90edf75a3dfdee93e6632bbe
* Settings: Expose backgroundTint from Single Button PanelNicholas Chum2015-12-292-1/+21
| | | | | | | | | | This exposes the hardcoded backgroundTint call to ?android:attr/colorAccent, and allow the themer to completely replace the color. Credits go to @Morningstar for locating the file! Change-Id: I7d76177fad123173131aecf0d19554825af303a0
* Settings: Expose Fingerprint Enrollment Checkmark Tint to an XMLNicholas Chum2015-12-292-2/+22
| | | | | | | | | | | This patch is a different approach to getting the tint changed. Changed from being a value into colors.xml to an XML file in res/colors instead to combat XML inflation issues. Tested on latest nightly, decompiled and recompiled. Stock theme and Dark Material runs fine with the new values themed. Change-Id: I1373d3d36555b44ad63515b4385d5f935a5a882f
* settings: Animation scale seekbarsSteve Kondik2015-12-282-12/+57
| | | | | | * Use a seekbar preference to allow setting arbitrary animation scale values Change-Id: I4ceaf0dc74e6e044e36cf3652bfc1efb33890380
* Profiles: Cleanup the codeMichael Bestas2015-12-283-79/+8
| | | | | | | | * Fix code style * Fix a couple mismerges * Align strings with cm-12.1 Change-Id: I0795c114014e53101c7d6697bb9a229c003973ab
* Settings: improve empty Profile trigger iconsRoman Birg2015-12-2811-5/+147
| | | | | | | | | The icons that were used were being scaled up and looked choppy and ugly. Use some vector drawables instead. Signed-off-by: Roman Birg <roman@cyngn.com> Change-Id: Ia66d79f706f5de5b835fdcc503f1e92944e8b7dd
* Settings: make empty profile views fit on hdpiRoman Birg2015-12-282-0/+68
| | | | | Change-Id: I2a03fc0fa4775ffddeca4713a0bbeff36ab552dd Signed-off-by: Roman Birg <roman@cyngn.com>
* Improve profile setting layouts.Danny Baumann2015-12-285-41/+34
| | | | | | Make their look consistent to the stock preferences look. Change-Id: I4fca6ab57eb549c0d8f28e5d4f1462fcead47bef
* profiles: Make the actions wizard buttons show upDiogo Ferreira2015-12-281-4/+3
| | | | | | | The "back" and "finish" buttons weren't being shown at all in this layout, which made it impossible to add profiles. Change-Id: Ib6b52430c25ed7445ca8e3c1249b7fccd21c3c69
* Settings: make empty profile trigger screens more usefulRoman Birg2015-12-273-2/+71
| | | | | Change-Id: I7e4061615f2bb1c1fabd37c8f5b792b04a99a2c8 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: merge ProfilesList into ProfilesSettingsRoman Birg2015-12-271-22/+3
| | | | | | | | | | | | | | | | 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>
* Automatic translation importMichael Bestas2015-12-25112-0/+37608
| | | | Change-Id: Ib491ce3d4325bd3b562355e6f896149d2df2ddaa