OSDN Git Service

android-x86/packages-apps-Settings.git
8 years agoFix up increasing ring tone volume preview behaviour.
Danny Baumann [Fri, 29 May 2015 06:48:46 +0000 (08:48 +0200)]
Fix up increasing ring tone volume preview behaviour.

Change-Id: Ibe7fdf1ee7f0aa1c7c76052df69fa92e8b6a2ffd

8 years agoSettings: update FOTA link to be implicit
Roman Birg [Wed, 25 Nov 2015 20:14:20 +0000 (12:14 -0800)]
Settings: update FOTA link to be implicit

MC-826

Change-Id: Ife9c6a7779d1ff9f74e2ba9e13b1b3948fb2c4d4
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAllow launching notification manager settings externally
Michael Bestas [Tue, 21 Apr 2015 22:38:22 +0000 (01:38 +0300)]
Allow launching notification manager settings externally

Change-Id: Ic9acab571fc78d139d4924f9a95194423bf1d267

8 years agoSupport multiple SAR values, separate args list with ','
Edward Wang [Fri, 15 Jan 2016 00:04:10 +0000 (16:04 -0800)]
Support multiple SAR values, separate args list with ','

Issue-Id: YAM-68

Change-Id: I21fcb3128a115388ed25d61daae88f4f3356929a
(cherry picked from commit c4ce19ad8fb570d9d561d3a560f6eeeeccc99de5)

8 years agoSettings: show warning in lock screen settings when disabled by qs
Roman Birg [Sat, 9 Jan 2016 00:29:34 +0000 (16:29 -0800)]
Settings: show warning in lock screen settings when disabled by qs

Tapping the setting will re-enable the lock screen.

Ref: CYNGNOS-1513

Change-Id: Ifbd53fb3d1cd199c85dedb0d96b01e8f29e7c024
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Set regulatory information dialog to non-translatable.
Adnan Begovic [Tue, 12 Jan 2016 22:06:02 +0000 (14:06 -0800)]
Settings: Set regulatory information dialog to non-translatable.

Change-Id: I0d5012dc84ec8e6488b0b09d82e2d7bce1afdd38

8 years agoSettings: Show ringtone per sim for multi sim device
Adnan [Tue, 6 Jan 2015 20:23:30 +0000 (12:23 -0800)]
Settings: Show ringtone per sim for multi sim device

TICKET: CYNGNOS-1589
Change-Id: I56244242cece2c0ab732a2edb8d8c57e9d2c29b3

8 years agoSquash commit of SAR and IC Code.
Adnan Begovic [Fri, 16 Jan 2015 16:31:29 +0000 (16:31 +0000)]
Squash commit of SAR and IC Code.

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

8 years agoSettings: Add CMMetricsLogger constants to proper pages.
Adnan Begovic [Mon, 11 Jan 2016 21:58:26 +0000 (13:58 -0800)]
Settings: Add CMMetricsLogger constants to proper pages.

Change-Id: I6e1d0ec2be4c6da51267c163575472827c9c50cd

8 years agoAutomatic translation import
Michael Bestas [Mon, 11 Jan 2016 20:43:05 +0000 (22:43 +0200)]
Automatic translation import

Change-Id: I6a73233e7c5689c683bc444bcea93b910f69124e

8 years agoLower minimum vertical range for data usage.
Danny Baumann [Wed, 6 Jan 2016 08:56:20 +0000 (09:56 +0100)]
Lower minimum vertical range for data usage.

Both 50MB and 20MB are kinda arbitrary, but the latter provides a better
overview for people with small data plans and/or at the beginning of a
month.

Change-Id: I99bd9e220592f0f7acdb00f40635dfc574b4e81b

8 years agoUpdate vertical axis bounds when resetting network policy.
Danny Baumann [Wed, 6 Jan 2016 08:50:47 +0000 (09:50 +0100)]
Update vertical axis bounds when resetting network policy.

Makes sure axis gets updated when entering app data usage details.

Change-Id: I5a8573a1bcbab08da2c9eee4538b4e133008343c

8 years agoRevert "Hide usage graph on app usage details pages."
Danny Baumann [Wed, 6 Jan 2016 08:10:37 +0000 (09:10 +0100)]
Revert "Hide usage graph on app usage details pages."

This reverts commit 1740ce4f0ca39635eeb8a286bc271dd11438ff09.

The data usage graph is useful information to show for a single app as
well (as it shows the app's share of data usage compared to the total).
Additionally, this commit broke navigation back from data usage when
entering it from an app's details pane.

Change-Id: Ia1de61d24aebfef3537e4d2c358e63b12a588838

8 years agoSome text are missing in eject sdcard warning
Henrik Baard [Mon, 14 Dec 2015 09:16:28 +0000 (10:16 +0100)]
Some text are missing in eject sdcard warning

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

8 years agoSettings: Set default value for 'Volume keys control ringer stream'
Gabriele M [Wed, 30 Dec 2015 23:39:17 +0000 (00:39 +0100)]
Settings: Set default value for 'Volume keys control ringer stream'

The option is enabled by default, but we show it as disabled,
so set the default value to true.

Change-Id: I757d51b45cf0634497f1aad81e155148f2a688dc

8 years agoSettings: request runtime permissions inside VoiceWakeup
Roman Birg [Fri, 8 Jan 2016 23:14:46 +0000 (15:14 -0800)]
Settings: request runtime permissions inside VoiceWakeup

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>
8 years agoSettings: increase default regulatory info drawable dimensions
Scott Mertz [Mon, 11 Jan 2016 18:58:40 +0000 (10:58 -0800)]
Settings: increase default regulatory info drawable dimensions

BitmapDrawable.getIntrinsicWidth/Height returns the bitmap density
scaled to the display density, not the actual bitmap height/width.
The default drawable is 1x1, but on xxhdpi devices, the resolution
is 4x4.  This causes the regulatory information text to never be
shown on xxhdpi devices even when the png has not been overlayed.
Increase the dimension limit to a reasonable 32x32 image.

Change-Id: Id6429d46f8612352d7930fdad4a6d125e7939ea2

8 years agoSettings: EL AOSP translation fixes
Michael Bestas [Fri, 28 Mar 2014 21:28:45 +0000 (23:28 +0200)]
Settings: EL AOSP translation fixes

Come on AOSP, we're fixing these since ICS...

Change-Id: Ic94f25a2335d187c98d8712e8dbd3bcaac82cfb9

Settings: Modify AOSP EL translations

Change-Id: I7e3a59412a2884c26a5eb165676e381d003f0fca

8 years agoImprove DPI warning string
Michael Bestas [Mon, 11 Jan 2016 01:55:02 +0000 (03:55 +0200)]
Improve DPI warning string

Change-Id: I3dae9dfc15a2dcfbbb59dcdf3f6d44d694598c05

8 years agoBlacklistSettings : Ensure contact picker mirrors edit state
Danesh M [Thu, 7 Jan 2016 23:51:15 +0000 (15:51 -0800)]
BlacklistSettings : Ensure contact picker mirrors edit state

Change-Id: I376c6724de733548a2a95ac35e399c1b0ec33015

8 years agoSettings : Disable editing existing entries for blacklist
Danesh M [Thu, 7 Jan 2016 23:51:15 +0000 (15:51 -0800)]
Settings : Disable editing existing entries for blacklist

OPO-322

Change-Id: Ib8971510c2af15b2737755c2c3f10cd31da1652e

8 years agoIntegrate mobile network settings into SIM settings for MSIM.
Danny Baumann [Tue, 5 Jan 2016 09:37:37 +0000 (10:37 +0100)]
Integrate mobile network settings into SIM settings for MSIM.

Change-Id: I3ab67d0dcb2979d2b527d40642d0c0f5b3e07034

8 years agoRemove a few MSIM tab hosts.
Danny Baumann [Tue, 5 Jan 2016 08:44:58 +0000 (09:44 +0100)]
Remove a few MSIM tab hosts.

Change-Id: Idd0b7738685ba05fc7c6a85306fcf5e5b08203ff

8 years agoSettings: add link to statusbar icon config screen
Roman Birg [Mon, 4 Jan 2016 22:29:06 +0000 (14:29 -0800)]
Settings: add link to statusbar icon config screen

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>
8 years agoSettings: remove voice wakeup link as necessary
Roman Birg [Wed, 6 Jan 2016 17:31:10 +0000 (09:31 -0800)]
Settings: remove voice wakeup link as necessary

- Package check wasn't using the package constant
- Hide link for secondary users

Change-Id: Id3c8269311d5cfabd146af7ce1687cdbdb35a19c
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoFix zen mode allowed event preference summary.
Danny Baumann [Mon, 4 Jan 2016 14:24:03 +0000 (15:24 +0100)]
Fix zen mode allowed event preference summary.

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

8 years agoRemove ic_menu_add.png drawables
d34d [Tue, 5 Jan 2016 21:59:39 +0000 (13:59 -0800)]
Remove ic_menu_add.png drawables

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

8 years agoMerge tag 'android-6.0.1_r10' into HEAD
Jessica Wagantall [Tue, 5 Jan 2016 19:43:48 +0000 (11:43 -0800)]
Merge tag 'android-6.0.1_r10' into HEAD

Ticket: CYNGNOS-1404
Android 6.0.1 release 10

Change-Id: I40f4f8e3e1c508807323ec222eeb4baeb329fd5e

8 years agoMove more CAF strings and cleanup
Michael Bestas [Mon, 4 Jan 2016 22:38:53 +0000 (00:38 +0200)]
Move more CAF strings and cleanup

* 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

8 years agoregulatory: Make the image fill the whole parent
Diogo Ferreira [Tue, 5 Jan 2016 15:28:58 +0000 (15:28 +0000)]
regulatory: Make the image fill the whole parent

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

8 years agoSettings: Set value on external display mode settings change.
Adnan Begovic [Mon, 4 Jan 2016 22:22:09 +0000 (14:22 -0800)]
Settings: Set value on external display mode settings change.

Change-Id: Ia321f17f255ff8b1db78bd26f25128191aff2060
TICKET: CYNGNOS-1386

8 years agoHide manual provisioning switch when extphone framework is not present
LuK1337 [Sun, 3 Jan 2016 21:32:00 +0000 (22:32 +0100)]
Hide manual provisioning switch when extphone framework is not present

* It doesn't work without it.

Change-Id: Iec11ec2006059f26668f2a6fee4c2c9ca6650119

8 years agoThemes: Add main dashboard background back from lollipop
Bryan Owens [Tue, 15 Dec 2015 22:38:04 +0000 (16:38 -0600)]
Themes: Add main dashboard background back from lollipop

-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>
8 years agoSettings : Filter settings for secondary users
Danesh M [Tue, 29 Sep 2015 21:12:12 +0000 (14:12 -0700)]
Settings : Filter settings for secondary users

Filter blacklist for secondary user
Filter default sms if user can't sms/call
Filter phone ringtone/vibrate on calls for secondary user

issue-id: CYNGNOS-904

Change-Id: I008215f885e819bd3229a4f9a6c6ca6fc09df6c5

8 years agoSettings: Fix NPE in PowerMenuActions
BadDaemon [Sat, 3 Oct 2015 15:09:47 +0000 (17:09 +0200)]
Settings: Fix NPE in PowerMenuActions

Reproduction:
Open Settings->Keys->Power Key
Lock Device
Unlock device
-> NPE

Happens because UsersPref has already been removed

Change-Id: I8d8cbda14d7373dca46671acb16a8abb68e9ee4a

8 years agoSettings : Update filterSpam to new contract
Danesh M [Sun, 6 Sep 2015 04:08:10 +0000 (21:08 -0700)]
Settings : Update filterSpam to new contract

Needed for http://review.cyanogenmod.org/#/c/108424/

Change-Id: I5ad5f376d37e5bf0b213f9266581b5c503971174

8 years agoRevert "Introduce SystemSettingsCheckBoxPreference"
Michael Bestas [Sun, 3 Jan 2016 01:13:44 +0000 (03:13 +0200)]
Revert "Introduce SystemSettingsCheckBoxPreference"

* No longer used

This reverts commit c9c271d0552c1bd091b3938f88f062d44626ce94.

Change-Id: I55ad36d31cea3e9370cab8ade036587d5ae618f6

8 years agoLaunch app privacy settings when tapping on PG notification (2/2)
Lars Greiss [Sat, 25 Apr 2015 00:15:15 +0000 (03:15 +0300)]
Launch app privacy settings when tapping on PG notification (2/2)

Based on https://github.com/SlimRoms/packages_apps_Settings/commit/46bb1442aa96aad6890e3ce7b6f3c0466ababf25

JIRA: CYAN-6077
Change-Id: I8632e8c944c1d5d7ad2fb2a2276bae5fe2d4a0a0

8 years agoprivacyguard: Add Superuser summary
Diogo Ferreira [Mon, 5 Jan 2015 18:19:12 +0000 (18:19 +0000)]
privacyguard: Add Superuser summary

Adds superuser summary to the privacy guard "Advanced" menu, this
is useful for auditing purposes. The tab is only visible when root
for apps is enabled.

Change-Id: I0b71c51d10e44e69102c311e526cdb1fde9bda26

8 years ago[1/2] Settings AppOps: show/hide app type and allow/deny counters
Sam Mortimer [Tue, 25 Nov 2014 22:18:22 +0000 (14:18 -0800)]
[1/2] Settings AppOps: show/hide app type and allow/deny counters

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

8 years agoUpdate privacy guard reset icon
Michael Bestas [Sun, 11 Jan 2015 22:09:26 +0000 (00:09 +0200)]
Update privacy guard reset icon

Change-Id: Ia636b08fea0d21c0185d053ecf601d1ddcf5a828

8 years agoSettings: Convert AppOps array items to string references
Michael Bestas [Sat, 8 Mar 2014 01:18:34 +0000 (03:18 +0200)]
Settings: Convert AppOps array items to string references

* Avoid future breakage
 This will need conversion of all AOSP translated arrays to strings

Change-Id: I2e52e4013d1232d529ce5b9e3aae3502c42e938a

8 years agoAppOps: Use switch widget for non-strict ops.
Shashank Mittal [Fri, 1 Aug 2014 20:05:35 +0000 (13:05 -0700)]
AppOps: Use switch widget for non-strict ops.

There are few Ops for which 'Always Ask' mode is not allwoed.
So use switch widget to control such Ops.

Change-Id: Ic7464a207c00e4cb9efff57c1f060e04379c1ee7

8 years agoAppOps: Add more operations in app ops settings.
Shashank Mittal [Fri, 6 Sep 2013 02:01:47 +0000 (19:01 -0700)]
AppOps: Add more operations in app ops settings.

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

8 years agoAppOps: Add 'Always ask' option under appOps setting.
Shashank Mittal [Fri, 7 Mar 2014 01:16:49 +0000 (17:16 -0800)]
AppOps: Add 'Always ask' option under appOps setting.

Add always ask option for each operation.

Change-Id: Ia4f331a5b7d0b1c8ae6946c55a4f78818fe0454f

8 years agoSettings: Respect legacy quick pulldown row.
Adnan Begovic [Wed, 23 Dec 2015 18:34:48 +0000 (10:34 -0800)]
Settings: Respect legacy quick pulldown row.

Change-Id: I5d4096160956e02c90edf75a3dfdee93e6632bbe

8 years agosettings: adds OVERRIDE_WIFI_CONFIG permission
Xuefer [Sat, 19 Dec 2015 16:06:36 +0000 (00:06 +0800)]
settings: adds OVERRIDE_WIFI_CONFIG permission

need to manage saved WiFi access point imported by other apps like some backup app

Change-Id: I81ff5b2d9f7f714b028b7e0996cb85608643ad98
Signed-off-by: Xuefer <xuefer@gmail.com>
8 years agoFingerprint: Forward challenge extras
d34d [Tue, 29 Dec 2015 19:51:21 +0000 (11:51 -0800)]
Fingerprint: Forward challenge extras

The forward port of custom pattern sizes introduced a bug that would
cause an NPE when trying to add a fingerprint for security. This patch
forwards the extras associated with the challenge that would have
normally been passed directly in to the ChooseLockPattern fragment.

Change-Id: I3ad994b2604ff45b573c011c3588afe8b35bfdd3
TICKET: CYNGNOS-1490

8 years agoSettings: Expose backgroundTint from Single Button Panel
Nicholas Chum [Sat, 5 Dec 2015 05:31:26 +0000 (21:31 -0800)]
Settings: Expose backgroundTint from Single Button Panel

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

8 years agoSettings: Expose Fingerprint Enrollment Checkmark Tint to an XML
Nicholas Chum [Fri, 11 Dec 2015 00:42:57 +0000 (16:42 -0800)]
Settings: Expose Fingerprint Enrollment Checkmark Tint to an XML

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

8 years agosettings: Animation scale seekbars
Steve Kondik [Fri, 2 May 2014 05:43:12 +0000 (22:43 -0700)]
settings: Animation scale seekbars

 * Use a seekbar preference to allow setting arbitrary animation scale values

Change-Id: I4ceaf0dc74e6e044e36cf3652bfc1efb33890380

8 years agoProfiles: Cleanup the code
Michael Bestas [Sun, 27 Dec 2015 19:35:01 +0000 (21:35 +0200)]
Profiles: Cleanup the code

* Fix code style
* Fix a couple mismerges
* Align strings with cm-12.1

Change-Id: I0795c114014e53101c7d6697bb9a229c003973ab

8 years agoSettings: improve empty Profile trigger icons
Roman Birg [Thu, 2 Apr 2015 19:56:56 +0000 (12:56 -0700)]
Settings: improve empty Profile trigger icons

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

8 years agoSettings: make empty profile views fit on hdpi
Roman Birg [Thu, 2 Apr 2015 00:15:22 +0000 (17:15 -0700)]
Settings: make empty profile views fit on hdpi

Change-Id: I2a03fc0fa4775ffddeca4713a0bbeff36ab552dd
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoImprove profile setting layouts.
Danny Baumann [Fri, 27 Mar 2015 08:38:42 +0000 (09:38 +0100)]
Improve profile setting layouts.

Make their look consistent to the stock preferences look.

Change-Id: I4fca6ab57eb549c0d8f28e5d4f1462fcead47bef

8 years agoprofiles: Make the actions wizard buttons show up
Diogo Ferreira [Thu, 4 Dec 2014 12:41:42 +0000 (12:41 +0000)]
profiles: Make the actions wizard buttons show up

The "back" and "finish" buttons weren't being shown at all in this
layout, which made it impossible to add profiles.

Change-Id: Ib6b52430c25ed7445ca8e3c1249b7fccd21c3c69

8 years agoProfiles: remove unused code
Scott Mertz [Sun, 1 Feb 2015 06:00:34 +0000 (22:00 -0800)]
Profiles: remove unused code

Change-Id: Icfbe90f25f537a673a1b749c217dca9efb6a1c70

8 years agoSettings: always allow profile app groups to be linked/unlinked
Roman Birg [Tue, 3 Mar 2015 23:21:54 +0000 (15:21 -0800)]
Settings: always allow profile app groups to be linked/unlinked

Change-Id: I271d409f925805d26c918d156e8ae41253cc08b1
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings : Save instance state for app group deletes
Danesh M [Wed, 23 Sep 2015 04:55:16 +0000 (21:55 -0700)]
Settings : Save instance state for app group deletes

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

8 years agoSettings: fix empty Wifi triggers screen
Roman Birg [Wed, 21 Jan 2015 19:27:48 +0000 (11:27 -0800)]
Settings: fix empty Wifi triggers screen

Change-Id: If6b3a71e0ed28558d74132ddd4594b98bf2955e9
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: make empty profile trigger screens more useful
Roman Birg [Tue, 6 Jan 2015 23:55:09 +0000 (15:55 -0800)]
Settings: make empty profile trigger screens more useful

Change-Id: I7e4061615f2bb1c1fabd37c8f5b792b04a99a2c8
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: merge ProfilesList into ProfilesSettings
Roman Birg [Thu, 12 Mar 2015 23:42:51 +0000 (16:42 -0700)]
Settings: merge ProfilesList into ProfilesSettings

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>
8 years agoProfiles: Fix override item summary not displaying none
LuK1337 [Fri, 25 Dec 2015 10:47:40 +0000 (11:47 +0100)]
Profiles: Fix override item summary not displaying none

* Mismerge from cm-12.1

Change-Id: Ica5bce4f1b371dcf2ad23ba8f938d449a9397339

8 years agoHide usb mode chooser dialog after disconnected
Du, Changbin [Thu, 17 Dec 2015 02:26:26 +0000 (10:26 +0800)]
Hide usb mode chooser dialog after disconnected

Add a UsbDisconnectedReceiver to listen usb state event, and hide
the usb mode chooser dialog if usb disconnected.

Change-Id: I871f56cb5a310e20950926180d9747dd9fad9754
Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
8 years agoapn: Update the add actionbar icon
Diogo Ferreira [Wed, 14 Jan 2015 14:53:32 +0000 (14:53 +0000)]
apn: Update the add actionbar icon

The add icon was using pre-L drawables and looked out of place.

Change-Id: I4851c41091985ab1eca42e40d56e987262ee0cee

8 years agoAutomatic translation import
Michael Bestas [Fri, 25 Dec 2015 17:36:29 +0000 (19:36 +0200)]
Automatic translation import

Change-Id: Ib491ce3d4325bd3b562355e6f896149d2df2ddaa

8 years agoSettings: Fix the failing strings
Michael Bestas [Fri, 1 Aug 2014 15:34:15 +0000 (18:34 +0300)]
Settings: Fix the failing strings

Change-Id: I93865d793eef711f8738e00e843e9d4670724c66

8 years agoDevelopment Settings: fix setting reset on disable
Thiago Vinícius Freire de Araújo Ribeiro [Sun, 5 May 2013 16:58:59 +0000 (13:58 -0300)]
Development Settings: fix setting reset on disable

When Development Settings are disabled, some settings are
reset to values other than the default. This fixes it.

 - Adb notify should reset to enabled

 - Verify apps over usb should reset to enabled

Change-Id: Ifa1ee25cfab32b7a236e02055006f0d2a4b07f37

8 years agosettings: Fix NPE in sounds settings for wifi only devices
Christopher R. Palmer [Wed, 23 Dec 2015 01:31:39 +0000 (20:31 -0500)]
settings: Fix NPE in sounds settings for wifi only devices

Change-Id: I98864f29db62d517f0f88560ea62af18a43f585e

8 years agoSettings: Fix some settings
lion0738 [Wed, 23 Dec 2015 03:29:07 +0000 (12:29 +0900)]
Settings: Fix some settings

these settings are moved to CMSettings.

Change-Id: I88d78a708b11a02a4987c522dfca41f9aaab1396

8 years agoSettings: Fix NFC Tap & pay removal
AdrianDC [Sun, 20 Dec 2015 21:39:58 +0000 (22:39 +0100)]
Settings: Fix NFC Tap & pay removal

Change-Id: I7169c74e445628b56410d5949270d4fa04ba234c
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoRevert "Settings: Show Baseband version on MSIM devices"
Michael Bestas [Tue, 22 Dec 2015 22:22:46 +0000 (14:22 -0800)]
Revert "Settings: Show Baseband version on MSIM devices"

* Not necessary, baseband is already shown without this.

This reverts commit 3e2025a54fe23a7a0b541e2ca29b7e38f9ad4610.

Change-Id: Ibdf650be1637f8ba75d65379043795d1a52f3ded

8 years agoIntroduce SystemSettingsCheckBoxPreference
Danny Baumann [Thu, 13 Nov 2014 01:14:27 +0000 (17:14 -0800)]
Introduce SystemSettingsCheckBoxPreference

  -Originally part of a3342e2 (Add back notification
   light settings.)

Change-Id: I474a14a1b395407f5ca273a5d6a3a7f03f7e4698

8 years agobluetooth: Show a refresh icon on the select devices screen
Diogo Ferreira [Thu, 4 Dec 2014 18:16:57 +0000 (18:16 +0000)]
bluetooth: Show a refresh icon on the select devices screen

The refresh menu is hidden behind an overflow which is
pointless. This patch shows the refresh icon if there is
enough room.

Change-Id: I35f19c42054b05388f7b8fcb82e0f3bd60e2d618

8 years agoSettings: Conditionally remove Buttons tile from Dashboard
Brandon McAnsh [Tue, 18 Nov 2014 20:29:21 +0000 (15:29 -0500)]
Settings: Conditionally remove Buttons tile from Dashboard

Change-Id: Iaddd3dd87ea2b0b04e3f312a156a6a25a948d039
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
8 years agoLight settings: reduce tone if preview image color is very light
Sam Mortimer [Tue, 25 Nov 2014 05:51:27 +0000 (21:51 -0800)]
Light settings: reduce tone if preview image color is very light

Prevents material whiteout in color preview.

Change-Id: Idfa47e57bdb669b17b610b737d0fe2c942b47d78

8 years agoSettings: Show Baseband version on MSIM devices
Willi Ye [Sun, 16 Nov 2014 11:33:52 +0000 (12:33 +0100)]
Settings: Show Baseband version on MSIM devices

Change-Id: Ie527e224e2c2197ff5d46abbcf8401439df12472

8 years agoAlways show band 0 (Automatic)
Dave Daynard [Sun, 22 Dec 2013 00:34:44 +0000 (19:34 -0500)]
Always show band 0 (Automatic)

None of the phones I tested ever displayed Automatic band selection as a
choice, probably because no baseband is going to report it supports
mythical band 0. Make sure it is always displayed.

nuclearmistake's notes:
Without this, a wipe is required to set band mode to automatic.
If someone in singapore set the their phone to US mode, and was only
offered "US" and "Europe" band modes, they would have to WIPE to
return the band mode setting to automatic. The enumeration of the modes
is slightly less broken after the previous commit, BUT band mode 0
should be in this list... always. all the time.

Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Change-Id: I5082b04ee63a2916941fd1db40762fa990d59583

8 years agoAdd missing blacklist xxhdpi drawables.
Danny Baumann [Thu, 13 Nov 2014 01:14:27 +0000 (17:14 -0800)]
Add missing blacklist xxhdpi drawables.

Change-Id: I327f408ff344e9358c479cf5fe9dc341918511b2

8 years agoSettings: respect telephony config for profiles override
Roman Birg [Thu, 17 Dec 2015 01:43:11 +0000 (17:43 -0800)]
Settings: respect telephony config for profiles override

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>
8 years agoSettings: display light pulse dialog settings conditionally
Roman Birg [Wed, 15 Jul 2015 20:28:14 +0000 (13:28 -0700)]
Settings: display light pulse dialog settings conditionally

If the device doesn't support LED pulsing, don't show the settings.

REF: CYNGNOS-403
Change-Id: I2316a4fd7a3a27c9bc046eda3bd374acc1edcf37
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings : Show wifi usage tab by default
Danesh M [Fri, 18 Dec 2015 22:27:53 +0000 (14:27 -0800)]
Settings : Show wifi usage tab by default

Change-Id: I6b479a1c8eaaa1cbbe900614a4de3fde0874156d

8 years agoSettings: Move NFC payment under NFC category
Michael Bestas [Sat, 19 Dec 2015 15:39:54 +0000 (17:39 +0200)]
Settings: Move NFC payment under NFC category

Change-Id: I906315a63a05dd152d8f8910c13959cf0091ab50

8 years agoSettings: update About screen device model fields
Roman Birg [Tue, 21 Apr 2015 19:43:14 +0000 (12:43 -0700)]
Settings: update About screen device model fields

- Changed "Model name" to "Device model", this queries ro.product.model
- Added an optional "Device name" field which queries ro.product.name
- The new "Device name" field is disabled by default

Change-Id: If837674091b4612124e1eff00e884823be767f47
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoPower Menu: remove power as an option
Dave Kessler [Wed, 18 Feb 2015 08:24:25 +0000 (10:24 +0200)]
Power Menu: remove power as an option

This is the only way to power the device off. Also, if the user
toggles all the options off an empty dialog will open.  Lets make
this feature a little more user-friendly and remove power as an
optional entry.

Change-Id: I10b2d7c844fa40ae9583d3114ec99b0825c21cd9

8 years agoSettings: Add some more entries into 'SMS message limit' menu
kuci [Thu, 16 Jan 2014 19:21:33 +0000 (20:21 +0100)]
Settings: Add some more entries into 'SMS message limit' menu

* Add None, 5 and 10 entries into 'SMS message limit' menu.
* Properly write limit value to Settings.Global
* The default SMS limit for Android 4.2.2 upwards is 30 per minute.
  Update string to reflect the correct time interval

Change-Id: I8b206ae6c9f73378da65b09e68898de31439cc59

8 years agoSettings: Cleanup ALL the strings
Michael Bestas [Sat, 19 Dec 2015 00:36:22 +0000 (02:36 +0200)]
Settings: Cleanup ALL the strings

* Match cm-12.1

Change-Id: I7928655125f360de62c25313d01a228e7cd886b5

8 years agosettings: LiveDisplay color profiles
Steve Kondik [Wed, 19 Aug 2015 12:40:36 +0000 (05:40 -0700)]
settings: LiveDisplay color profiles

 * Add support for using the new DisplayMode HAL, which
   configures the display for a preset mode.
 * Clean up the settings a bit, and move advanced stuff
   under an advanced category.

Change-Id: If386c93da99346fbee156b057274b60fd064b49d

8 years agoSettings: Utilize frameworks sms prompt interfaces as fallback.
Adnan Begovic [Wed, 16 Dec 2015 21:10:19 +0000 (13:10 -0800)]
Settings: Utilize frameworks sms prompt interfaces as fallback.

Ticket: CYNGNOS-1440
Change-Id: I0890d5cc25124dc94434216763cb8965986ca4b3

8 years agoSettings : Launch demo mode on triple tap of build date
Danesh M [Fri, 18 Dec 2015 20:00:27 +0000 (12:00 -0800)]
Settings : Launch demo mode on triple tap of build date

Change-Id: I85341ad7f9c8bba107e26e5e12924906466b0c76

8 years agoSettings : Cleanup control media volume toggle
Danesh M [Fri, 18 Dec 2015 00:59:45 +0000 (16:59 -0800)]
Settings : Cleanup control media volume toggle

Change-Id: I1e887e6a109aa75fcb1d1e74216fceb1cc91ab59

8 years agoSettings : Add warning for lcd density
Danesh M [Thu, 17 Dec 2015 22:55:41 +0000 (14:55 -0800)]
Settings : Add warning for lcd density

BACON-4492

Change-Id: I5f5f9d71b29bef61e39029334f62aa1df2ed48dc

8 years agoSettings : Add volume link notification
Danesh M [Thu, 17 Dec 2015 18:38:20 +0000 (10:38 -0800)]
Settings : Add volume link notification

Change-Id: I06027bc4f13c8a60b19a2b7ded73ce76da4e4f02

Tablets don't need to link volumes they don't have

This feature broke the notification volume slider in settings for
devices without telephony service (tablets) and isn't applicable
anyways since they don't have ringtone volume streams.

Change-Id: Ifff10ecd35b53f5fc08a36332814fb00d20b4350

8 years agosetings: Fix livedisplay settings
Steve Kondik [Mon, 13 Jul 2015 21:51:34 +0000 (14:51 -0700)]
setings: Fix livedisplay settings

 * Since moving this to internal settings vs. kernel settings, the
   parameters were wrong and changes set via settings weren't being
   applied. Fixit.

Change-Id: I0676f6069729878b644914abe0ad0bca8a053c9e

livedisplay: Add an "off" state

 * Don't force "day" to be the default state.
 * Change minimum value for color calibration to 20% so blackout doesn't
   happen when all sliders are at minimum.
 * Also improve a few strings to describe what day and night means.

Change-Id: Ib2a617488fffb128c8e3e9e52d64fac6b261e53d

livedisplay: Fix for multiuser

Change-Id: If0ef1da91cf5310308abf08806f7902e25080d2c

8 years agoSettings: adapt lock screen visualizer toggle
AdrianDC [Thu, 17 Dec 2015 12:53:10 +0000 (13:53 +0100)]
Settings: adapt lock screen visualizer toggle

 * Do not show the Visualizer toggle for Screen lock : None
 * Show the Visualizer toggle for Screen lock : Swipe
 * Add a missing key field (Screen lock : Swipe)

Change-Id: I460693201142f0d7d5eb34dea91f4f5db33a00d4
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoSettings: Fix the SoundSettings activity and intents
AdrianDC [Wed, 16 Dec 2015 23:42:59 +0000 (00:42 +0100)]
Settings: Fix the SoundSettings activity and intents

 * Mainly fixes the QS Volume Panel long-press

Change-Id: Ie3e15255ba5f9ef9a3702ed28b72daa3e348536b
Signed-off-by: AdrianDC <radian.dc@gmail.com>
8 years agoSettings: add lock screen visualizer toggle
Roman Birg [Wed, 16 Dec 2015 23:38:18 +0000 (15:38 -0800)]
Settings: add lock screen visualizer toggle

Change-Id: I7aaa972ba521bebbef7f47bbe502fb6e4f0c3a6a
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoAllow disabling the privacy guard notification - port from cm-12.1 (1/3)
Chirayu Desai [Mon, 7 Dec 2015 22:07:11 +0000 (14:07 -0800)]
Allow disabling the privacy guard notification - port from cm-12.1 (1/3)

Change-Id: Iebf4545c1a65b10036a4865bae29d14e86b12d07

8 years agoSettings: fix mobile network switch being unchecked
Roman Birg [Tue, 24 Mar 2015 01:21:36 +0000 (18:21 -0700)]
Settings: fix mobile network switch being unchecked

Sometimes when connected to Wifi, the mobile data switch gets checked
off, even though mobile data is enabled.

Change-Id: I4d28366f9c7aa63d20b215d39bdcb04f7b6e83dc
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: add dashboard switch view for sw600dp
Roman Birg [Fri, 20 Mar 2015 23:54:58 +0000 (16:54 -0700)]
Settings: add dashboard switch view for sw600dp

Change-Id: I19797bc2b05539700ab4f3e8bf960fc37047d448
Signed-off-by: Roman Birg <roman@cyngn.com>