summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* settings: dock batteryJorge Ruesga2016-03-106-30/+361
| | | | | | | | | | Change-Id: I2a95e74719175c3f40e2cc7a8414db7e869d92fb Require: topic:dock_battery Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Improve dock battery strings Change-Id: I03066cd18c378a1974d4eaa6f084fe75250d1fcc
* MSIM: Fix erroneous defaults display in slot selection dialogRicardo Cerqueira2016-03-081-1/+1
| | | | | | | | | | | Initializing the index at zero was showing the first slot as the default when none was chosen. Since that's not actually true, leave it outside the possible range so that the radio selectors stay empty if that's the case. Addresses CYNGNOS-2212 Change-Id: I4a74f9c89bbf14bbe39e0d51733a1d5f92c5a1df
* AppOps: Guard against themes without colorAccent definedd34d2016-03-071-1/+3
| | | | | | | | | | | If an applied theme omits the colorAccent attribute in their style AppOpsSummary will crash because typedValue.resourceId is 0. Check if typedValue.resourceId is 0 and if so use switch_accent_color for tab indicator color. Change-Id: Ib294fcdfd3bf3510aeb0d0f612bd5f46354e0b15 TICKET: CYNGNOS-2156
* Settings: Remove "Learn More" clickable text if not overlaid.Adnan Begovic2016-03-071-1/+10
| | | | | | | | | If the "Learn More" textview's target click intent url is not overlaid, settings will throw an NPE. Remove the text if not overlaid. Change-Id: Ib80547a90b8c97485db2529b79172f7c461649c0 TICKET: CYNGNOS-2173
* Settings: Allow disabling default allcaps state in tabtext.Adnan Begovic2016-03-071-0/+7
| | | | | | | | | | | | Since the allcaps state is decided via an internal style within android, we have to manually override it programatically. Create "config_gcf_disable_default_tabtext_allcaps" for this purpose. Change-Id: I38c8bd1d50dee7c1e6440ce747368ade4e2dab29 TICKET: PAELLA-167
* Themes: Expose Hard colors for storage settingsBryan Owens2016-03-032-15/+24
| | | | | Change-Id: I74d2492ed5e6f1d34cee065719cbc97d5c237829 Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
* Use correct icon for ring volumeMichael Bestas2016-03-031-2/+2
| | | | Change-Id: If145262562c1409cd8a6cb79ba46b6646c75d1a8
* Settings: Fix "Fix SecuritySettings filtering" copy pastaAlexander Martinz2016-03-031-1/+1
| | | | | Change-Id: Ib27d4497c84a49a9dca2ec52c059d828518e43c4 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* Settings: Fix SecuritySettings filtering.Adnan Begovic2016-03-011-6/+13
| | | | | | | | | | | | Recent changes to SecuritySettings to appease CTSVerifier expectations broke filtration for the lockscreen intent (would always default as external type). This patch also addresses the "Installed Blocked" settings intent filter not including the unknown sources checkbox. Change-Id: If6ef7a3913ad90f4d018b26f6c3166fe47d2865a TICKET: CYNGNOS-2171
* Settings: improve job upload serviceRoman Birg2016-03-011-9/+8
| | | | | | | We should be removing the job even if the job failed. Change-Id: I7468af9a972fd88c5ed2a93ad5781637407e3a85 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: fix indexing for saved access point settingsRoman Birg2016-03-012-2/+2
| | | | | | | | | We are including custom logic, so we need to set NO_DATA_RES_ID. Ref: YAM-141 Change-Id: Ibd242bd3a05b06f6a54504543219fc524127b71d Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: Meet BYOD check intent filter expectations.Adnan Begovic2016-02-291-3/+11
| | | | | | | | | | | | | CTS Verifier expects SecuritySettings to contain Lockscreen options, thus if SecuritySettings are externally invoked and disambiguated by intent resolution, we need to display both lockscreen options and security options. AOSP provides an activity that handles android.settings.BATTERY_SAVER_SETTINGS thus, we provide an activity-alias that points to the PowerUsage menu to meet the expectation of the cts verifier request. Change-Id: I6f06b031e341e8a63ffdd765884b49fd1c079825 TICKET: CYNGNOS-2105
* Settings : Fix back button for sim card lockDanesh M2016-02-251-0/+11
| | | | | | CYNGNOS-2151 Change-Id: I5420c07931a6aa620328f9f8844512cac9bf1638
* Split out drawable to separate from dashboard drawableDave Kover2016-02-241-1/+1
| | | | | | | | | | | | The Filter Notifications view has an action menu item which uses the same drawable reference as the dashboard category. This can create a conflicting instance for themes where the colors or style do not line up correctly. By creating a new VD, we can make sure that the different views are themed accurately & separately for maximum themage (I made that word up). Change-Id: If7ddf51489a741f6b9564f07f7034f3f9824d352 Ticket: CYNGNOS-2134
* PowerUsage : Don't update if profile didn't changeDanesh M2016-02-231-3/+6
| | | | | | CYNGNOS-786 Change-Id: I4eb47e5f206f9723b7d003ccfac484e377bf7afd
* Revert "Customize regulatory info."Danesh M2016-02-231-3/+2
| | | | | | | | | | This reverts commit 3d299959deb33a86ba2925eb4fa954e0118bd893. This breaks on the dialer shotcode to access this (*#07#) CYNGNOS-2050 Change-Id: Ia02512642307b25e9ff7e8c0533da5eaa7233a7f
* RegulatoryDialog : Use String.split to avoid crash on empty argsDanesh M2016-02-171-2/+2
| | | | | | | | | If a device only supports SAR image vs values, and empty overlay will cause TextUtils.split to return an empty array and hence number of format arguments will be mismatched. Instead use String.split which returns a non-empty string array in the event that the source is empty. Change-Id: I3d99e3378264d7b26d69ebe6c9c35c3c925f5c49 CYNGNOS-2050
* Settings: Add CM-specific settingsDiogo Ferreira2016-02-175-31/+174
| | | | | Change-Id: Iae0f60a62a51e96893766c4fa50a60ac4a214102 Ticket: CYNGNOS-1577
* SIM: Only trigger sub updates if the lifecycle isn't endingDiogo Ferreira2016-02-161-1/+5
| | | | | | | | | | This broadcast would cause a re-rendering of the sim preferences but the activity context is actually tearing down at that point which causes common context items such as resources items to be null. Change-Id: I5cb23f941c9ace6382dbc324c8e1820f54853eda TICKET:CYNGNOS-1918
* DevelopmentSettings: initialize recovery update property at bootScott Mertz2016-02-162-1/+10
| | | | | | | | | | | | | Android behavior has changed to load & trigger build.prop & default.prop at every boot. Once data is mounted, it reloads & triggers properties set by the user. If we set persist.sys.recovery_update to true in build.prop or default.prop, the user's preference will never be honored. Instead, ensure the default always comes from userdata. Accompanying patches to remove the default properties are required. OPO-490 Change-Id: I3a5245088059f083554063ba6d345783114fa7a0
* Settings: Only show multi-sim card configuration for ownersDiogo Ferreira2016-02-161-2/+2
| | | | | | | | | | | Telephony only allows the owner to manage sim card Settings, currently we are crashing when changing any multisim setting from eithr a guest or non-owner. This patch addresses the issue by not adding the tile unless the current user is the owner. Change-Id: Ifaeec6c22cdf7318530ef1e6ed6e1ec851317263 Ticket: CYNGNOS-2054
* Settings: fix 'CyanogenMod legal' linkRoman Birg2016-02-151-0/+24
| | | | | | | | | No more WebViews in priv-apps, so open it up in the browser. CYNGNOS-1895 Change-Id: I263ccc0509e275d17512528deb606341d58e7a0d Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: Allow/Prevent notification light in Zen mode (2 of 3)DvTonder2016-02-151-0/+7
| | | | | | This allows the user to prevent the notification lights from showing during Zen mode Change-Id: Ia3563d79f5c1fc012411496c7b8901099a78282e
* Settings: Fix ethernet data usage tab crashMichael Bestas2016-02-151-1/+1
| | | | | | * TAB_ETHERNET length is bigger than TAB_MOBILE Change-Id: Ie7feb819978236d62f951825dbc564d683907700
* Settings: Add CMGlobalSettingSwitchPreferenceMichael Bestas2016-02-153-2/+69
| | | | | | * Also cleanup the Secure/System preference Change-Id: I10148928240561e6cb496e7cc063ae517ccddbf8
* Remove duplicate charging sounds optionMichael Bestas2016-02-121-12/+3
| | | | | | | | | | * CM setting allows charging sounds on any power source, while AOSP allows charging sounds only on wireless charging * The AOSP toggle has been broken since fw/base 42f4f2f2ff4278ca8411504617f55a712562c242 * Use the AOSP setting while keeping the improved CM code Change-Id: Ia747d8949cf7ce94ad2a638f27aaa3c57f9aed19
* Settings: Add notification light setting to system profiles (2/2)Petr Sedlacek2016-02-103-1/+124
| | | | Change-Id: I6e0f844362ad5a479b40da08bce8a66be10503ec
* SimDialogActivity: Check whether there is no default subDiogo Ferreira2016-02-091-1/+2
| | | | | | | | | | | | | | | On an out-of-the-box device, no data subscription will be selected by default. If a single SIM is added, it will become the default data subscription but if two sims are added at the same time there will be no default. In this case, this dialog will crash because it's trying to get the subscription id from a null default. This patch short-circuits the clause to always update if there is no default. Change-Id: Icd4dffaf918d43d85f807cd6a14f93abb118eca4 Ticket: CYNGNOS-1940
* lockscreen: Add option to pass swipe-up-to-unlock (2/3)eray orçunus2016-02-082-1/+24
| | | | | | | | | | | * Option appears on PIN,pattern and password methods * User should press back button to see notifications, clock etc. * Instantly hides keyguard if Smart Lock has unlocked phone. CYNGNOS-1873 Change-Id: I31256770869b20842c69edb4a7a57b2bad7b3ea7 Signed-off-by: eray orçunus <erayorcunus@gmail.com>
* Settings: don't allow duplicate APN entriesRoman Birg2016-02-081-1/+80
| | | | | | | | Prompt user with warning if they are about to add a new APN which is a duplicate. Change-Id: I86c6a6d272a7ba079b81dedb05b44575fd4d86e7 Signed-off-by: Roman Birg <roman@cyngn.com>
* settings: Add preference for automagic LED colorsSteve Kondik2016-02-081-7/+36
| | | | | | * And use the automagic color as the default when picking custom colors. Change-Id: I9861d3d889dfcb5eba62b69339e7afb0db2fd364
* Remove leftover profiles entry from power menuMichael Bestas2016-02-081-12/+2
| | | | | | * No longer available Change-Id: Ifac7e1181dc53af5788f54444ef75a345a888fa2
* Settings: add config for new APN type defaultsRoman Birg2016-02-051-0/+1
| | | | | | | This way a specific mcc-mnc combo can overlay some defaults as needed. Change-Id: I5e0c46830c1ab7845ce3372dcb06a70a144c651a Signed-off-by: Roman Birg <roman@cyngn.com>
* Use settings' theme when inflating account prefsd34d2016-02-051-1/+7
| | | | | | | | | | | | | | When inflating account specific preferences, the settings style is set so the inflated preferences have the same style. If a different theme, than the rest of the system, is set for Settings it is possible for the inflated preference to try and reference a theme specific item which won't be part of that apps resources, resulting in an InflateException. To avoid this we attach the themed resources that are applied to settings to the newly created package context so that those resources can be properly resolved. Change-Id: I0cf0430db379b146fe80ce3173f050e5b120bbbb TICKET: OPO-437
* Settings : Add radio button / selection states for default SIMsDanesh M2016-02-031-11/+48
| | | | | | CRACKLING-928 Change-Id: I786d4d921987d483cd0a5fa77976a0b8047d06db
* Forward port pattern visibility settings (2/2)Michael Bestas2016-02-031-4/+24
| | | | Change-Id: Ic627953c5df854c442671a98b5da539b994da18b
* Bluetooth: Underp "Accept all files" settingRicardo Cerqueira2016-02-031-2/+2
| | | | | | | | | This was reading/writing to the wrong database, making the setting a no-op. My bad. Still CYNGNOS-1825 Change-Id: Ibf02b186f8e19066b0113ab1c72e31164a686af1
* Lockscreen: Show redaction interstitial when swipe selectedd34d2016-02-021-1/+19
| | | | | | | | | | If the user is switching from a secure lock screen to an insecure one and they have chosen to redact sensitive/all notififcations, show the RedactionInterstitial so the user has the option to change this setting. Change-Id: I2bcfd01fb322eb66a10a0f29feb9da696c524cdf TICKET: YAM-103
* Settings : Recompute highlight index upon changesDanesh M2016-02-021-5/+6
| | | | Change-Id: I7d738f5114fc1eea564360ab5e823abc167caee9
* Settings : Show search on all panelsDanesh M2016-02-021-1/+1
| | | | | | RM-208 Change-Id: Id8467a6f57e60dfe58e7d1f38acb8d833bd298cf
* LiveLockScreen: Add live lock screen settingsd34d2016-02-022-0/+521
| | | | | | | | This will allow the user to enable and configure their installed live lock screens. Change-Id: Id4a6963cc49d1c361c99c95b17a961aaa980ed48 TICKET: CYNGNOS-1686
* Tethering: Turn off Wi-Fi Hotspot after inactivity (3/3)d34d2016-02-021-7/+47
| | | | | | | | Turn off the Wi-Fi hotspot after a specified time of inactivity. The hotspot is considered to be inactive when no clients are connected to it. Change-Id: I7030e702328726b72f394b2a64b93830dba54efc
* [3/3]Settings: add "Accept all files" option for incoming files via BTHamster Tian2016-02-021-0/+18
| | | | | | | | | | | | | | | | | | | * Adapted for CM13. * PS2: empty line fix * PS3: variable name fix BT server in AOSP will check MIME type of incoming file. Only those with explicitly allowed types will be accepted. The MIME type whitelist is in packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java But this can be annoying when we want to transfer RAR, APK or conf files etc which do not exist in the list. This patch adds the option "Accept all files" in Settings -> Bluetooth -> menu. This option is disabled by default, which ensures security. Ref CYNGNOS-1825 Change-Id: I76e008211429bf3bd28183713043bee5d326c21a
* SimSettings: Disable entry for missing simDiogo Ferreira2016-02-011-3/+6
| | | | | | | | | | | | | | Clicking on a missing SIM card will show incorrect information because the user network preference is indexed by subscription id. This means that when the SIM is not present we cannot infer which subscription settings we are actually showing or changing so the whole screen is effectively useless. This patch disables configuration entries for invalid subscriptions. Ticket: CYNGNOS-1794 Change-Id: Ic5125f66f4cdaafe06d03b3b20b80341525d6c87
* Bluetooth/Wifi: center empty view and set textAppearance to mediumAlexander Martinz2016-01-312-13/+0
| | | | | | | * does not look weird anymore when toggling bluetooth or wifi Change-Id: Ibbf375e241f091bc27b76c273598da9fc0d67ed9 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* Fingerprint: do not error out when stopping to listenAlexander Martinz2016-01-281-2/+8
| | | | | | | | | | | | | | * when stopListening gets called, we cancel via the cancellation signal, which calls the onAuthenticationError callback. * detect if we are canceling and do not execute the error code * fixes the finger print icon hiding when closing the LockPatternActivity, which causes the lock pattern to resize TICKET: RM-208 Change-Id: I5bb62064f885b67836bd78af854cca950c3401fa Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* ProtectedApps: add up navigation and fix action bar iconsAlexander Martinz2016-01-281-3/+9
| | | | | | | | | | | | | * ProtectedApps has up navigation, but the lock pattern has not. I catch myself many times when trying to press the up arrow and noticing later on, that it is not there. * the drawable used as action bar icon is not white, tint it white and use it instead. TICKET: RM-208 Change-Id: Icdd24816af47b16efc38e4e8379811d412f50454 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* Settings : Finish SimPreferenceDialog on dismissDanesh M2016-01-281-1/+6
| | | | | | CYNGNOS-1515 Change-Id: I2f69a876419a0ace61a6a8e682496db0d62bbfa1
* Settings : Fix linked volume crash + inconsistent stateDanesh M2016-01-281-9/+11
| | | | | | | | | | | - Ensure we fetch from Secure, not System - Don't initialize every time we toggle - Set the checkbox state from Settings value since the preference assumes a default of 0 CYNGNOS-1638 Change-Id: Ia519cef2295a6b6083b2b168f4c16df78f423cee
* Settings: hide light pulse settings if not availableRoman Birg2016-01-281-16/+26
| | | | | | | | | Instead of disabling the pulse length and speed hide them, since they will not be enabled during the lifetime of the dialog REF: CYNGNOS-426 Change-Id: Ie0c8b9f27e1de32c9559e5ffdb61c73d8b2ff42f Signed-off-by: Roman Birg <roman@cyngn.com>