OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoSettings: Always set ramp-up time value during bindView
Keith Mok [Tue, 12 Jul 2016 16:45:45 +0000 (09:45 -0700)]
Settings: Always set ramp-up time value during bindView

onProgressChange is not always called if we set the
ramp up time to 5 sec (0 in seekbar value, since it is
the default value, no change).
Causing the text showing the ramp up time text value not
updated and display as empty when user enable/disable
increasing ring volume with ramp up time set to 5 sec.

FEIJ-1572

Change-Id: Id32d6b51aab05e80be59bc1912c4ae7c5d114ac5

7 years agoAutomatic translation import
clyde@build01 [Tue, 12 Jul 2016 00:09:42 +0000 (17:09 -0700)]
Automatic translation import

Change-Id: I8cac94e7ac0bc215be6ea57da04497f0e61ce2e4
Ticket: -

7 years agoSettings: Add adaptive display mode desc. strings
Zhao Wei Liew [Fri, 1 Jul 2016 13:05:34 +0000 (21:05 +0800)]
Settings: Add adaptive display mode desc. strings

Samsung devices support an 'Adaptive' display mode, or more
commonly known as 'Auto'. Add the descriptions for this mode.

Change-Id: I8532c00b01c0adf5d8d4ff0baed13246937d1ced

7 years agoBreak out Bluetooth device icon from dashboard reference.
Dave Kover [Thu, 7 Jul 2016 19:14:46 +0000 (12:14 -0700)]
Break out Bluetooth device icon from dashboard reference.

If a theme wants to use a different visual iconography style in
the subsettings, the bluetooth icon is shared between the dashboard
and that view. By adding this new reference, a themer can choose to
independently theme the subsettings version if their design calls
for that.

Change-Id: Iac3a58175f90357e0c42efe57b1e698d5c8e2ad3
Ticket: CYNGNOS-3176

7 years agoInstalledAppDetails: fix refreshing storage summary after force stop
Altaf-Mahdi [Thu, 7 Jul 2016 08:57:32 +0000 (09:57 +0100)]
InstalledAppDetails: fix refreshing storage summary after force stop

* if app is force stopped, current implementation causes a nasty loop which in turn causes
  very high cpu usage: refreshUi() > checkForceStop() > mCheckKillProcessesReceiver > refreshUi()

* fix storage not being updated by running refreshUi() in onRunningStateChanged from AppInfoBase

Ticket: CYNGNOS-2527

Change-Id: Iec24bb620d1a6287d7ccf583db978ef338ef762e

7 years agoAutomatic translation import
pinky@build01 [Wed, 6 Jul 2016 19:00:06 +0000 (12:00 -0700)]
Automatic translation import

Change-Id: Ifd76aa8307f0bf250dfbf92898c4caee104bcf26
Ticket: -

7 years agoPrevent orientation changes from destroying/recreating security settings
Scott Mertz [Wed, 29 Jun 2016 01:00:08 +0000 (18:00 -0700)]
Prevent orientation changes from destroying/recreating security settings

Logic in SecuritySettings deliberately recreates the entire preference
tree in onResume rather than onCreate.  This causes the state to be
lost when the orientation changes.

Instead of destroying/recreating when the orientation changes, handle
it ourselves.

Change-Id: I6276d8f97cb64a4823286f263642926561d7f2d0

7 years agoSettings: Disable sim switch if subscription isn't valid
Luca Stefani [Sun, 3 Jul 2016 19:56:08 +0000 (21:56 +0200)]
Settings: Disable sim switch if subscription isn't valid

Change-Id: I22ba9a3270da13f77fdd43586b7dc487f0929453

7 years agoSettings: Don't set the icon for sim activation / deactivation dialog
LuK1337 [Sun, 3 Jul 2016 20:11:26 +0000 (22:11 +0200)]
Settings: Don't set the icon for sim activation / deactivation dialog

* This icon doesn't look any good.
  It's better to just get rid of it.

Change-Id: I47f70a80136695e9aa61ff98999a2cf770390079

7 years agoAutomatic translation import
blinky@build01 [Mon, 4 Jul 2016 18:40:57 +0000 (11:40 -0700)]
Automatic translation import

Change-Id: I0563baf29e6b805719a9e4c83437e8e84e3d5dce

7 years agoTelephony(MSIM): Fix ANR on SIM deactivation
Venkatraman Nerellapalli [Sat, 9 Jan 2016 11:50:00 +0000 (17:20 +0530)]
Telephony(MSIM): Fix ANR on SIM deactivation

Dismiss dialog box on confirmation.
SIM activation & deactivation in background thread.

Change-Id: I0268a710f35e30b2abec3dd671942b52fc0e0b46
CRs-Fixed: 957308

7 years agoFix to enable data for non-dds sub.
Ravindra [Tue, 22 Mar 2016 08:41:51 +0000 (14:11 +0530)]
Fix to enable data for non-dds sub.

When data is enabled\disabled on non-dds sub do not update the data base
directly instead call TelephonyManager api to do the same.

CRs-Fixed: 992072

Change-Id: I53b5ed2f4d6afcb05b09d65fd3d9843829cff995

7 years agoIMS: Set Wifi calling preference to Wifi preferred by default
Benergy Meenan Ravuri [Mon, 15 Feb 2016 12:26:10 +0000 (17:56 +0530)]
IMS: Set Wifi calling preference to Wifi preferred by default

Set Wifi calling preference to Wifi preferred by default instead
of Wifi only

Change-Id: I480db3d211566d0cb414ea50275b554c755b0a03
CRs-Fixed: 977149

7 years agoWi-Fi: Do not display the not scanned saved networks forever
Nalla Kartheek [Fri, 20 Nov 2015 08:02:41 +0000 (13:32 +0530)]
Wi-Fi: Do not display the not scanned saved networks forever

A flag is introduced to signify it these saved profiles were scanned or
not and this commit shall ensure that such entries are displayed only
when the flag indicates to have scanned.

Change-Id: I0c525a493caa39c3bed5149898160dd4662dd0c8
CRs-Fixed: 940917

7 years agoDon't start auto scan if screen recovers from frozen state
venkata Jagadeesh [Wed, 4 Nov 2015 05:59:47 +0000 (11:29 +0530)]
Don't start auto scan if screen recovers from frozen state

Use case:Inquiry initiated from UI after connecting with blackberryZ30

Failure: Inquiry initiated from UI automatically after connecting with
         blackberryZ30,which is not expected

Test steps:
1. Go to BT settings page.
2. Initiate pair and connect remote device from the available devices list

Root cause:mInitialScanStarted set always to false and for every
onActivityCreated,scan will be triggered from UI

Fix: mInitialScanStarted set to false only for new instance,if any screen
recover case,it should not be set as its not a new instance.

Change-Id: Ia38323d5136857e6fe8fa69ed6336d889e29287b

7 years agoFix mcc-mnc population issue in apn editor
Susheel nyamala [Wed, 28 Oct 2015 13:35:21 +0000 (19:05 +0530)]
Fix mcc-mnc population issue in apn editor

When creating a new apn in LTE mode, mcc-mnc values populated on
apn editor are wrong if uicc card is used.
Replace getSimOperator with getIccOperatorNumericForData method,
which returns mcc-mnc values based on PS RAT registered.

Change-Id: I263848bfbeabd4636dccd203c366ab00858ceaaf
CRs-Fixed: 931556

7 years agoUpdate OperatorInfo in Simstatus settings for correct subid
Sridhar Dubbaka [Sun, 18 Oct 2015 20:26:10 +0000 (01:56 +0530)]
Update OperatorInfo in Simstatus settings for correct subid

Update OperatorInfo in Simstatus settings for
correct subid, on which Channel 50 CB message is received.

Change-Id: I0876c94d53f2b4eef8571037c9a0e7d880bc043f
CRs-Fixed: 906537

7 years agoGrey out PIN1 enable/disable option when SUB is not ready
Ruthwar Kumar Ambeer [Thu, 15 Oct 2015 14:09:05 +0000 (19:39 +0530)]
Grey out PIN1 enable/disable option when SUB is not ready

Since it is not possible to interact with UICC card for
PIN1 enable/Disable when SIM is deactivated, PIN1 option
is Disabled in UI.

Change-Id: I64d2ad3a85c15c4ea8936987e384ffd013c1f533
CRs-Fixed: 662114

7 years agoBluetooth : Handle SQL memory situation during OPP.
Sravan Kumar V [Mon, 31 Aug 2015 04:42:04 +0000 (10:12 +0530)]
Bluetooth : Handle SQL memory situation during OPP.

Use case :
1) Use Any tool to Fill memory
2) When available memory is very low, enter
 settings-Bluetooth

Failure :
"Unfortunately, Bluetooth share has stopped" error comes.
Root Cause :
Because of Memory Issue application was unable to perform any SQL
operations.

Fix :
Catch SQLite FullException and SQlite Exception in bluetooth
settings to avoid crash in this use case.

Change-Id: I621816ef6214eead49ba9f5a98a4152572fb1379

7 years agofingerpint: Allow devices to configure sensor location
d34d [Thu, 23 Jun 2016 18:21:45 +0000 (11:21 -0700)]
fingerpint: Allow devices to configure sensor location

The text for enrolling a fingerprint always assumes the sensor is
located on the back.  This patch adds a config integer that defines
where the sensor is located on the device.
  0 = back
  1 = front
  2 = left side
  3 = right side

This patch also adds a new drawable that shows the front of the device
when applicable.

Change-Id: Ia8f5f8ff4ba4d13d35aed3052f60ff665dd4f294
TICKET: CYNGNOS-3089

7 years agoAutomatic translation import
inky@build01 [Wed, 29 Jun 2016 17:50:29 +0000 (10:50 -0700)]
Automatic translation import

Change-Id: I098f8fcf30976e41cb277231b172a0532550b9f9

7 years agosettings: wifi: Default to numeric keyboard for static IP items
Tom Marshall [Tue, 28 Jun 2016 22:26:59 +0000 (15:26 -0700)]
settings: wifi: Default to numeric keyboard for static IP items

CYAN-7646

Change-Id: Ibc02cdcc863d2ae373b24bcfd5b97bf63de99222

7 years agoSettings: Set root access options appropriately
Tom Marshall [Mon, 27 Jun 2016 21:31:57 +0000 (14:31 -0700)]
Settings: Set root access options appropriately

It is possible to be running a user build with a debuggable boot image.
In this case, "su" will not be available.  So only show none/adb.

Jira: BACON-4461

Change-Id: Iaa7df8311b9ea81eabb1566ba6f9159fdc9fab34

7 years agoFix untranslatable
Michael Bestas [Wed, 29 Jun 2016 18:14:31 +0000 (11:14 -0700)]
Fix untranslatable

Change-Id: I22279afa630cd03fe00b58f2c8c6826ea2f2d115

7 years agoSettings : Add country code to blacklist entry dialog
Danesh M [Mon, 20 Jun 2016 21:23:39 +0000 (14:23 -0700)]
Settings : Add country code to blacklist entry dialog

Enforce country code when adding an entry. If the user has regex enabled,
* is added to the list as a choice. This avoids the confusion users are currently
facing where blocking only the number + regex doesn't work, since country code is expected.

Eg :

206* won't work
+1206* works

CYNGNOS-3049
BACON-4953

Change-Id: I9236898f17fcef425e561aaa10e56c5e8c2171a7

7 years agoMake sure LiveDisplay toggle default values are correct.
Danny Baumann [Sat, 25 Jun 2016 11:43:54 +0000 (13:43 +0200)]
Make sure LiveDisplay toggle default values are correct.

Change-Id: If04c3eca9d62d977c4ecd79bda52a88a3e07ce3b

7 years agoUI: Ensure "use for" options displayed when in landscape orientation
lijun.xie [Thu, 16 Jun 2016 05:35:21 +0000 (13:35 +0800)]
UI: Ensure "use for" options displayed when in landscape orientation

Items under the "use for" section of the "Paired devices" dialog for
bluetooth connected headsets can be cut off on some devices when in
landscape mode.  This patch encloses those items in a ScrollView so
the user can scroll the off screen items into view and enable/disable
them.

[Procedures]
1.Go to Settings -> bluetooth
2.Paired with a bluetooth headset
3.Click on the setting of bluetooth headset
4.check the menu list and rotate the phone
5.and can not sliding the list

Change-Id: I52f4d494ca3c71a9ed88b2679868e77b092b4710

7 years agoSettings: Fix possible NPE
Michael W [Sat, 18 Jun 2016 19:50:37 +0000 (21:50 +0200)]
Settings: Fix possible NPE

extras seems to be null sometimes so the call to
extras.get() causes an NPE

Change-Id: I8a95da51aadda8fd6191131570a2f4b2bed762e7
Reference: BugDumps 13-20160610-16 L#64

7 years agoSettings: handle 'always ask' for SMS subscription on 3rd party apps
Roman Birg [Mon, 20 Jun 2016 18:16:18 +0000 (11:16 -0700)]
Settings: handle 'always ask' for SMS subscription on 3rd party apps

We need to ensure that the SMS app has a valid subscription to use as
3rd party apps don't know how to use our custom "always ask" logic.

Don't allow the user to choose "always ask" if a 3rd party SMS app is
currently the deafult.

Ticket: CYNGNOS-3068

Change-Id: I4aabf43adfb4fdc39e7656aa872abf73d9a5edbe
Signed-off-by: Roman Birg <roman@cyngn.com>
7 years agoAutomatic translation import
blinky@build01 [Mon, 20 Jun 2016 20:29:59 +0000 (13:29 -0700)]
Automatic translation import

Change-Id: I25897fe9a0ce867df8c7df0a6e3f232e23519a49

7 years agoSettings : Move trust agent search index to LockscreenSettings
Danesh M [Fri, 17 Jun 2016 21:15:00 +0000 (14:15 -0700)]
Settings : Move trust agent search index to LockscreenSettings

Ensure smart lock takes you to LockscreenSettings instead of
SecuritySettings
CYNGNOS-3053

Change-Id: I2d6f4b29cfad259cebfb3ee97b055f59a131d3de

7 years agoBring back the custom wallpaper picker [3/5]
d34d [Tue, 7 Jun 2016 22:35:50 +0000 (15:35 -0700)]
Bring back the custom wallpaper picker [3/5]

Change-Id: I546a6ce67627c22cfbc7f6f061c21954183936b7
TICKET: OSS-62

7 years agoAutomatic translation import
inky@build01 [Fri, 17 Jun 2016 21:02:01 +0000 (14:02 -0700)]
Automatic translation import

Change-Id: I553fea6885f7da29740630a236f986a6b1a135fe

7 years agoSettings: Apply decor padding in landscape storage wizard
Scott Mertz [Mon, 13 Jun 2016 22:52:18 +0000 (15:52 -0700)]
Settings: Apply decor padding in landscape storage wizard

The header was appearing below the status bar when in landscape
mode.  Add a padding in landscape so the text appears below the
status bar.

FEIJ-1157
Change-Id: I4d3c46958442b517186cc7d796bdd1552c0bdffe

7 years agoSettings: Dissallow privacy guarding system apps on overlay.
Adnan Begovic [Fri, 20 May 2016 19:28:25 +0000 (12:28 -0700)]
Settings: Dissallow privacy guarding system apps on overlay.

  Bandaid fix for google play services inundating the permission
  dialog request queue within AppOps service and causing watchdog
  to consistently kill the system server's activity manager service
  which is deadlocked retrieving dialogs from the queue.

Change-Id: I10c432cebe6a4199517839598046eee7d19dcf72
TICKET: CYNGNOS-2869

7 years agoSettings: Remove hide navigation bar settings
Keith Mok [Tue, 14 Jun 2016 16:44:34 +0000 (09:44 -0700)]
Settings: Remove hide navigation bar settings

Remove hide navigation bar settings in Expanded
desktop if the device has no on-screen navigation
bar currently available.

FEIJ-1194

Change-Id: I4d0a5cc453a13140236f5e2e9f39e970fe759607

7 years agoSettings: fix crash when reset App preference
Ankit Gupta [Tue, 7 Jun 2016 23:11:40 +0000 (16:11 -0700)]
Settings: fix crash when reset App preference

1. mExtraInfoBridge is null when there is no change
made in any app. Calling reset app preference cause
crash in this state.

2. move initialization of mApplication to onViewCreated
from onCreateView to make sure View has been created.

Issue-id: OPO-760

Change-Id: I7a26b27325b54694d2513e8365482c221a5c6b13

7 years agoString improvements
Michael Bestas [Fri, 10 Jun 2016 15:38:17 +0000 (18:38 +0300)]
String improvements

Change-Id: I36662b94a4f2f020c756446b7b2a039eb451fd62

7 years agoAutomatic translation import
pinky@build01 [Thu, 9 Jun 2016 21:50:57 +0000 (14:50 -0700)]
Automatic translation import

Change-Id: I66b9ba2d1c8c4d52b55208b1e3042f52aa9173bb

7 years agoSettings: Allow sorting Applications by size
Roman Royer [Thu, 5 May 2016 02:04:36 +0000 (19:04 -0700)]
Settings: Allow sorting Applications by size

Allow sorting applications by size in Settings->Apps just like in Settings->Storage/USB->Apps
Removed extra whitespace

Change-Id: I9e022162110e1feff20f257992086e66735e0f5e

7 years agoKeyguard: Get your weather on... the lock screen [3/3]
d34d [Mon, 6 Jun 2016 16:45:48 +0000 (09:45 -0700)]
Keyguard: Get your weather on... the lock screen [3/3]

Change-Id: I9b411c86ea02dd95379fe6fcd1814c81c1c7ef0b

7 years agoUse child fragment manager for nested dialog fragment
Artem Shvadskiy [Fri, 3 Jun 2016 21:19:45 +0000 (14:19 -0700)]
Use child fragment manager for nested dialog fragment

Change-Id: I7748b15f45c88b00bc1251121d6760cf16e25646
issue-id: CYNGNOS-2911

7 years agoSettings: use subid & imsi for MSIM apn lookups
Roman Birg [Wed, 1 Jun 2016 17:39:30 +0000 (10:39 -0700)]
Settings: use subid & imsi for MSIM apn lookups

Ticket: PAELLA-158

Change-Id: Icca65a9a46533e1bbcfd4dd08e974d736ea1253b
Signed-off-by: Roman Birg <roman@cyngn.com>
7 years agoAutomatic translation import
inky@build01 [Tue, 7 Jun 2016 00:44:22 +0000 (17:44 -0700)]
Automatic translation import

Change-Id: Ie5bb0b8e6e1980a4e29cedea2820beb893fb7e23

7 years agoRadio info to control QC dbg prop's
Deepak Kundra [Sat, 28 May 2016 03:18:17 +0000 (20:18 -0700)]
Radio info to control QC dbg prop's

Issue-id:FEIJ-679

Change-Id: Ia1c9e5d5899ae173d4fd7fa9b2339013b42f115b

7 years agoAutomatic translation import
clyde@build01 [Fri, 3 Jun 2016 22:14:45 +0000 (15:14 -0700)]
Automatic translation import

Change-Id: I75ed7f58e6fbc7a961b4fe10278393ffde4ef418

7 years agoSettings: fix toggling lockscreen rotation toggle [2/3]
Dan Pasanen [Mon, 2 May 2016 14:34:44 +0000 (09:34 -0500)]
Settings: fix toggling lockscreen rotation toggle [2/3]

Change-Id: I4339afcf7befb70f459b088be9e1fc62a0465b4f

7 years agoLockscreen -> lock screen
Michael Bestas [Thu, 2 Jun 2016 12:46:02 +0000 (15:46 +0300)]
Lockscreen -> lock screen

Change-Id: I1653d92869f4cfd37f3758be178b856a1031cb9b

7 years agoAutomatic translation import
inky@build01 [Wed, 1 Jun 2016 19:02:41 +0000 (12:02 -0700)]
Automatic translation import

Change-Id: Ida39cf15dc6a0a21286d0177a21437747b616775

7 years agoSettings: Add per app controls for LP keyguard notifications (2/2)
Lars Greiss [Mon, 24 Nov 2014 22:50:07 +0000 (23:50 +0100)]
Settings: Add per app controls for LP keyguard notifications (2/2)

Nice done by google but the UX is a problem especially for ppl who are using a lot apps and just want
to see from important apps the notifications on the lockscreen.

This commit adds the ability to

- enable/disable per app the keyguard notification at all
- enable/disable per app ongoing notifications on the keyguard

We handle this over the app policy conf file like the other per app notification options

TICKET: CRACKLING-1127
Change-Id: I12df484379621c3baba333d30a8b545b3a0ec0ae

7 years agoAutomatic translation import
Jessica Wagantall [Fri, 27 May 2016 01:57:52 +0000 (18:57 -0700)]
Automatic translation import

Change-Id: I319222d474b4254d912be3ad8a29a2a5f578b1ac
Ticket: RM-214

7 years agoSettings: Disable cancelable with multi-windows confirm dialog
Keith Mok [Tue, 24 May 2016 22:30:28 +0000 (15:30 -0700)]
Settings: Disable cancelable with multi-windows confirm dialog

When muliti-windows confirm dialog is dismissed by back button,
the status will become inconsistent.

Change-Id: Ie00099dce395f08d9ad782482863f2120977d240

7 years agoSettings: Update oem unlocking status with back button
Keith Mok [Tue, 24 May 2016 22:25:09 +0000 (15:25 -0700)]
Settings: Update oem unlocking status with back button

When oem unlocking confirm dialog dismiss by back button,
the enable oem lock status is not consistent.

FEIJ-780

Change-Id: I42a33896c8d844d965cfc706872903175ffbf1cc

7 years agoSettings: Update oem unlocking status when dismiss
Keith Mok [Tue, 24 May 2016 15:46:20 +0000 (08:46 -0700)]
Settings: Update oem unlocking status when dismiss

When oem unlocking confirm dialog dismiss, need
to update the checkbox status also.

FEIJ-780

Change-Id: I9b5c4446ecd9736051fb7b6c12ad22aa0d985a85

7 years agoFix NPE when user has his lockscreen set to "None"
LuK1337 [Tue, 24 May 2016 15:51:54 +0000 (17:51 +0200)]
Fix NPE when user has his lockscreen set to "None"

Change-Id: Ib4d9612de740009f68f995fdb00c0e5bb38858f6

7 years agoSettings: Remove redundant definition of SoundSettingsActivity.
Adnan Begovic [Sat, 21 May 2016 00:54:32 +0000 (17:54 -0700)]
Settings: Remove redundant definition of SoundSettingsActivity.

  Causes CTS cross-profile intent verification failure.

Change-Id: Id1c92c45cb1fb89e34598d54b9eb45497d629eac
TICKET: FEIJ-104

7 years agoSettings: Fix blur preference removal
luca020400 [Mon, 23 May 2016 07:06:16 +0000 (09:06 +0200)]
Settings: Fix blur preference removal

* The preference lives in the General category group

Change-Id: Ia6ab514557f6ff0c731a9d2a342f8bfea98bd0a6

8 years agoGive user control over lock screen blur
d34d [Tue, 10 May 2016 16:25:31 +0000 (09:25 -0700)]
Give user control over lock screen blur

This will provide control over blurring since the current implementation
assumes it is always on provided the device config specifies it
supports blur.

Change-Id: I7add45c607fcf47777d61629a3fc6245ffedb339

8 years agoAutomatic translation import
Jessica Wagantall [Sat, 21 May 2016 00:04:28 +0000 (17:04 -0700)]
Automatic translation import

Change-Id: I2ed8183e1f98487f6af5d998a7a73efba5c535c3
Ticket: RM-214

8 years agoSettings : Rebuild app list after reset
Danesh M [Thu, 19 May 2016 22:59:09 +0000 (15:59 -0700)]
Settings : Rebuild app list after reset

If the user resets app states, we need to rebuild the list
so the new app info is fetched

FEIJ-706
FEIJ-511

Change-Id: I5d6261d38dc2f06e37b29e6b7ba1f7a1e49a6ab8

8 years agoSettings: Wrap invocation on search view.
Adnan Begovic [Thu, 19 May 2016 22:46:43 +0000 (15:46 -0700)]
Settings: Wrap invocation on search view.

  Exception thrown during monkey testing.

Change-Id: I2f08df1e36c386aec0d57e3b6714cdbdd0f29246
TICKET: FEIJ-677

8 years agoSettings: Fix Storage Applications Manager dropdown
raroyer [Tue, 3 May 2016 05:27:25 +0000 (22:27 -0700)]
Settings: Fix Storage Applications Manager dropdown

Disabled Filter Dropdown in LIST_TYPE_STORAGE is hidden but pops up when clicked, does nothing.  Disabling completely.

Change-Id: Id497e59876f0d0adb5997eb300596f17fe9f5cdb

8 years agoSettings: persist "always ask" sms sim selection
Roman Birg [Wed, 18 May 2016 02:33:42 +0000 (19:33 -0700)]
Settings: persist "always ask" sms sim selection

The dialog was prompted, and the user has picked always prompt, don't
ask them again, the Messaging app will need to request which SIM to use.

Ticket: CYNGNOS-2185, CYNGNOS-2570

Change-Id: I95a510974b89945da252f4c6c3e905e9a0de81af
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings : Add title to xml preference screens
Danesh M [Thu, 19 May 2016 19:07:08 +0000 (12:07 -0700)]
Settings : Add title to xml preference screens

Search indexing was inserting null as the title, which results
in the default "Settings" title if the user selects a search result.
This is inconsistent with the title the user sees when they manually navigate
to that preference screen.

FEIJ-512

Change-Id: I6f6ed7b851c998aa2cb5531bef04e8000ccb8ddd

8 years agoRevert "wifi: forward port avoid poor connection setting"
nadlabak [Fri, 13 May 2016 13:33:34 +0000 (15:33 +0200)]
Revert "wifi: forward port avoid poor connection setting"

This reverts commit d77990f4cccd4fdc4bd479305ae6c2419d2f8610.

Change-Id: I0987d8eb9e8e6c7730f0576f174b61115973d5fb

8 years agoSettings: update time zone strings on date change
Luis Vidal [Mon, 16 May 2016 23:35:35 +0000 (16:35 -0700)]
Settings: update time zone strings on date change

If the user changes the date, most obvious case being from 1970, to a
current date, and the user's selected Locale's country time zones have
been changed (according to ICU), we must update the time zone strings in
the system.

Ref: CYNGNOS-453

Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 926c3b0a50e521368628ef0d9975c99fa4cd3480)

Change-Id: I487c54cd4f933286c5004d24a3f8730ee2d4e4f6

8 years agoAutomatic translation import
Abhisek Devkota [Tue, 17 May 2016 20:12:22 +0000 (22:12 +0200)]
Automatic translation import

Change-Id: I2384c6bcba0d6e3a921315ba981525d942060b00

8 years agoSettings: Ignore process kill receiver events if activity is destroyed.
Adnan Begovic [Wed, 11 May 2016 21:22:59 +0000 (14:22 -0700)]
Settings: Ignore process kill receiver events if activity is destroyed.

  Following the logic for refresh ui attempts to getContext() from the
  underlying activity which may have already been destroyed causing
  an NPE.

Change-Id: Ibe110022ebedcc55a01f3bda66501580c8d92fed
TICKET: NIGHTLIES-2935

8 years agoClose "Protected apps" activity during power cycle
Kamaljeet Maini [Tue, 10 May 2016 23:25:17 +0000 (16:25 -0700)]
Close "Protected apps" activity during power cycle

Protected apps activity in Settings is accessed after entering
correct pattern. If user turns off/on the phone while Protected
apps is in foreground, the user must enter pattern again before
using the Protected apps.

Added code in onPause method to close the Protected apps activity
if the user has already been authorized and there is no screen
orientation change.

Change-Id: Ie36ac0f54cce62228f6d0d56fef2e1f24096a803
Issue-Id: FEIJ-491

8 years agoSettings: Move vibrator value restore to onActivityStop
luca020400 [Tue, 10 May 2016 20:56:23 +0000 (22:56 +0200)]
Settings: Move vibrator value restore to onActivityStop

Change-Id: Ia35f1dcffd86c8c2717e68cd91537d652ecfa982

8 years agoAutomatic translation import
Abhisek Devkota [Sun, 15 May 2016 00:47:33 +0000 (02:47 +0200)]
Automatic translation import

Change-Id: Ibe9208e0bacb2af41239bc770df6b1b87df67264

8 years agoAutomatic translation import
Abhisek Devkota [Sat, 14 May 2016 09:18:01 +0000 (11:18 +0200)]
Automatic translation import

Change-Id: I7ee9dc842c846c2177383128a5a13e9fbb69b63c

8 years agoUse correct icon for sim card
Arvin Quilao [Tue, 3 May 2016 02:19:04 +0000 (10:19 +0800)]
Use correct icon for sim card

Instead of storage/sdcard icon, use the correct
vector drawable sim card icon.
Change-Id: I8349eae870b774671e635aabfb42b2b455ff1cd3

8 years agoCleanup cm_arrays
Michael Bestas [Fri, 13 May 2016 20:36:56 +0000 (23:36 +0300)]
Cleanup cm_arrays

* Remove unused resources
* Set untranslatables
* Convert remaining arrays to string references

Change-Id: I8ae61eb81e0148e8b6954ebc46960348bf35044c

8 years agoProfiles: Disable notification item if ringtone & notification volumes are linked
Luis Vidal [Wed, 11 May 2016 23:58:54 +0000 (16:58 -0700)]
Profiles: Disable notification item if ringtone & notification volumes are linked

The notification item will be disabled if the notification and
ringtone volumes are linked. This is to keep consistency with the
sound settings

Change-Id: Ibbe7612eae5e9b7b18d63450ab8331f02becf5ca
TICKET: CYNGNOS-958

8 years agoSettings : Filter livelockscreen, button for secondary users
Danesh M [Thu, 12 May 2016 02:27:30 +0000 (19:27 -0700)]
Settings : Filter livelockscreen, button for secondary users

Secondary users should not be able to configure either of those.

OPO-696

Change-Id: I43409c090fb12df576c29297fb506c70e6583bce

8 years agoDisable cellular networks settings menu if airplane mode is enabled
Luis Vidal [Fri, 6 May 2016 22:54:36 +0000 (15:54 -0700)]
Disable cellular networks settings menu if airplane mode is enabled

Cellular networks settings menu will be disabled
if user enables airplane mode

Change-Id: I83d78754918d50c02e19121ffcfb673bb1dc5797
TICKET: CYNGNOS-2697

8 years agoAdd config to hide/show weather menu
Luis Vidal [Wed, 11 May 2016 00:16:47 +0000 (17:16 -0700)]
Add config to hide/show weather menu

This config controls whether the weather menu
should be displayed in settings

Change-Id: I89502d22cb56496825f497e6b19fce3d8e0a7a3c
TICKET: CYNGNOS-2796

8 years agoAutomatic translation import
Abhisek Devkota [Tue, 10 May 2016 23:20:26 +0000 (16:20 -0700)]
Automatic translation import

Change-Id: I534298276780b88f87567ab977bd8ce1d1a856e4
Ticket: RM-232

8 years agoAutomatic translation import
Michael Bestas [Tue, 10 May 2016 15:38:09 +0000 (18:38 +0300)]
Automatic translation import

Change-Id: Idf93c9826109ee82aa18fc78a5fe6dff47bc5588

8 years agoDisable battery pulsing if segmented battery LED is enabled
LuK1337 [Wed, 4 May 2016 15:43:43 +0000 (17:43 +0200)]
Disable battery pulsing if segmented battery LED is enabled

Change-Id: Ic5b4e7ce7830c43e84f9a14919ea85bbe993ac99

8 years agoAdd option to select temperature unit
Luis Vidal [Wed, 27 Apr 2016 05:42:21 +0000 (22:42 -0700)]
Add option to select temperature unit

Added a menu in the weather settings to select the
temperature unit. This setting will be visible only
if the user has at least one weather service provider
installed.

The weather settings layout was refactored to make room
for this new preference

Change-Id: I5e9f206573e0ff95fcee31a010b52530a907acc6
TICKET: CYNGNOS-2605

8 years agoUpdate power control widget preview image.
Dave Kover [Thu, 5 May 2016 00:25:21 +0000 (17:25 -0700)]
Update power control widget preview image.

The image was not reflective of the current design of the widget.

Change-Id: Ia3fe45337359edbb0c469ff2e1d2fd1f1351b8f0
Ticket: FEIJ-305

8 years agoWifiSettings : Fix forgetting saved networks crash after rotation
Danesh M [Thu, 5 May 2016 02:10:11 +0000 (19:10 -0700)]
WifiSettings : Fix forgetting saved networks crash after rotation

FEIJ-310

Change-Id: If6e3e28025ae4eba0bf20d53c68b7d840f76ce6c

8 years agoSettings: sync qs invert color with color inversion in Settings
Ankit Gupta [Tue, 3 May 2016 20:41:41 +0000 (13:41 -0700)]
Settings: sync qs invert color with color inversion in Settings

Color inversion in settings is not consistent with the quick
settings tiles for the inverted color.
This patch registers the invert color settings variable to
content resolver to apply any change to it from either
qs tiles or settings menu.

Change-Id: Ib1433238d4985e930f3a1c650198dbeb05ccba52
Issue-id: FEIJ-164

8 years agoPartial revert "Settings : Add per app internet/data control"
Sam Mortimer [Sun, 1 May 2016 18:11:45 +0000 (11:11 -0700)]
Partial revert "Settings : Add per app internet/data control"

This reverts commit a3549a2715e47ce07297315586ea9c5798da2997

Revert changes only to:
src/com/android/settings/privacyguard/PrivacyGuardManager.java
src/com/android/settings/privacyguard/AppInfoLoader.java

We currently have inconsistent behaviour where:

*) if pg is on by default, a newly installed app will not
   have restricted network access

*) if the pg state for an app is toggled off/on it will end
   up with restricted network access

Newly installed apps where pg is on should result in the
same end state compared to flipping pg guard off/on per app.

This partial revert stops the data control setting changing
when pg state is changed on a specific app.

Change-Id: I1eba14204abe0d137ebd45c5a6a3b7db354339bb

8 years agoProtected apps: fix rotation states
Roman Birg [Tue, 3 May 2016 22:37:46 +0000 (15:37 -0700)]
Protected apps: fix rotation states

Don't try to relaunch the activity if it's already been launched.

Ticket: FEIJ-224

Change-Id: I597417570f2f937afb0195fecd7dc406ff2508f3
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoLockPatternView: persist state across rotates
Roman Birg [Tue, 1 Sep 2015 22:25:01 +0000 (15:25 -0700)]
LockPatternView: persist state across rotates

We need to persist and restore the activity states across rotates so the
user doesn't have to restart from the beginning.

Ref: CYNGNOS-141

Change-Id: I18458d55748666b439cf7b6fcecd81ee5c4c7865
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoLLS: Load title and summary from ext. package if avail.
d34d [Tue, 3 May 2016 15:29:28 +0000 (08:29 -0700)]
LLS: Load title and summary from ext. package if avail.

Query for packages that support the
ACTION_OPEN_LIVE_LOCK_SCREEN_SETTINGS and load the title and summary
for the preference from that package.

If no other packages exist or we are unable to load the title AND
summary, then we use the defaults and carry on as usual.

Change-Id: Ibbd5347aa35994877fa067b29cacbe9a9ed12dad
TICKET: CYNGNOS-2696

8 years agoSettings: Make sure to rebuild on app entries loaded.
Adnan Begovic [Tue, 3 May 2016 20:54:42 +0000 (13:54 -0700)]
Settings: Make sure to rebuild on app entries loaded.

  Previously, notifydatasetchanged would only be called in oncreate,
  and any further callbacks from the application state session would
  be ignored. Now, make sure to handle the various scenarios and rebuild
  as necessary, notifying the ui as needed.

Change-Id: I61572ff082629046d1fdf5fedb1e8ec37343f588
TICKET: FEIJ-334

8 years agoSettings: fix backlight illumination wrong summary
Roman Birg [Mon, 25 Apr 2016 22:12:43 +0000 (15:12 -0700)]
Settings: fix backlight illumination wrong summary

This fixes the visual indicator of the button illumination summary after
trying to disable. Previously after setting the timeout to never, would
display a summary of "1", or with 5, it would end up displaying 6 after
applying the settings.

Ticket: CYNGNOS-2565

Change-Id: Ia982e4849d0099b6e208b362770a431dc89dd2f1
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: refresh ui on foce stop/diable
Roman Birg [Mon, 25 Apr 2016 19:00:02 +0000 (12:00 -0700)]
Settings: refresh ui on foce stop/diable

Fixes the storage summary not updating after force closing, enabling,
or disabling the app.

Ticket: CYNGNOS-2527

Change-Id: I000459d27d06071a36ab0ac6761c1af56c132dde
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSettings: Ensure user has to wait 30 before retrying pattern
cretin45 [Thu, 28 Apr 2016 20:33:51 +0000 (13:33 -0700)]
Settings: Ensure user has to wait 30 before retrying pattern

Issue-id: FEIJ-257, FEIJ-273

Change-Id: I08f16c6863ca5bbdb586d756da813453124851b2

8 years agoAutomatic translation import
Michael Bestas [Thu, 28 Apr 2016 21:45:13 +0000 (00:45 +0300)]
Automatic translation import

Change-Id: Ibcb688db7bff937cd92b2a0be1a784830b2e3dc7

8 years agoSettings: restore proper live display color profile
Roman Birg [Tue, 26 Apr 2016 22:53:43 +0000 (15:53 -0700)]
Settings: restore proper live display color profile

Select currently selected, not default, profile.

Ticket: CYNGNOS-2575

Change-Id: I8db23feefd88776949fe0af356b320b8b4a7b8cb
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoSimplify and improve dream, LLS and weather provider layouts.
Danny Baumann [Mon, 11 Apr 2016 11:07:34 +0000 (13:07 +0200)]
Simplify and improve dream, LLS and weather provider layouts.

In particular, make sure the selection ripple extends to the edges of
the screen.

Change-Id: Ie5694dfea8fd14810895581e4e7daef15c8890c3

8 years agoSetting : Don't show search for activities not within same shared user id
Danesh M [Tue, 26 Apr 2016 01:26:37 +0000 (18:26 -0700)]
Setting : Don't show search for activities not within same shared user id

Ticket: CYNGNOS-2522

Change-Id: I00d0a0e4d9ecc619846ce5e4e8fe8f6d7eeb4887

8 years agosettings: Remove LiveDisplay preferences if not available
Steve Kondik [Tue, 26 Apr 2016 05:46:17 +0000 (22:46 -0700)]
settings: Remove LiveDisplay preferences if not available

 * This really shouldn't be the case, but apparently some devices
   are misconfigured and are overriding the GPU-based CMHW
   implementation which would ensure the basic capabilities are
   available.

Change-Id: I9f72cb58c9bbb63e0fdec4085b17a089f9d50174

8 years agoSettings: fix incorrect default sim/sms/data selection logic
Roman Birg [Fri, 22 Apr 2016 16:43:18 +0000 (09:43 -0700)]
Settings: fix incorrect default sim/sms/data selection logic

change id I8ba32f3b203751e79697c7dcbc2cfcf1c6ae4ad0 broke this and
assumed all needed a default index of 0; set it to -1 only for the data
selection.

Ticket: CYNGNOS-2388, CYNGNOS-2212

Change-Id: Ic81d1151aa71017e261107f1d67785cc50f2bd7f
Signed-off-by: Roman Birg <roman@cyngn.com>
8 years agoThemes: Add tint mode so custom icons can show in power usage detail
Randall Rushing [Tue, 5 Apr 2016 16:24:26 +0000 (11:24 -0500)]
Themes: Add tint mode so custom icons can show in power usage detail

adding to this original commit: http://review.cyanogenmod.org/#/c/136136/

Change-Id: Id38035d8eaa4c3bd004fe747a5df3899646e5cdc
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>