Commit Graph

11979 Commits

Author SHA1 Message Date
Treehugger Robot
176c0c5d98 Merge "Fix crash while searching in Settings" 2016-11-02 16:37:08 +00:00
Treehugger Robot
917b7b863c Merge "Don't display an invalid Wi-Fi MAC address" 2016-10-28 20:56:35 +00:00
Paul Stewart
1aeb383d73 Don't display an invalid Wi-Fi MAC address
Only display the WifiInfo MAC address if it is a valid address.
Otherwise, display "Unavailable".  The underlying WifiInfo class
now has a default value, and a method that can be used to test
whether or not the contained address is valid.  This change uses
this test and avoids having the confusing default address displayed.

Bug: 32478606
Test: Manual: Turn off WiFi and reboot -- make sure "Unavailable"
      is displayed as the Wi-Fi MAC Address as opposed to "02:00:00:00:00:00"

Change-Id: I912804eb65735375e0ca3c4618a6399543f33b57
2016-10-27 13:34:10 -07:00
Svetoslav Ganov
13088cac84 Add Bluetooth toggle prompts - settings
If permission review is enabled toggling bluetoth on or off
results in a user prompt to collect consent. This applies
only to legacy apps, i.e. ones that don't support runtime
permissions as they target SDK 22.

bug:28715749

Change-Id: I5ae0c532c92b2c05a91f0d769ca6744002747fca
(cherry picked from commit b06766f129)
2016-10-26 13:30:38 -07:00
Juan Flores
92fa371a0b Fix crash while searching in Settings
A crash occurrs when power button is pressed during search in Settings
due to IndexOutOfBoundsException in HeaderViewListAdapter.
When suggestions and results are cleared,
the layouts should be invisible to solve this problem.

Bug: 27913974
Test: manual - search "font" and press power button twice

Change-Id: Ia53d393e695dbb238fc4c82a3fe52ef4250d84c1
2016-10-25 12:12:10 +09:00
Qi Ding
c4772636db Fix searched item isn't highlighted
The searched item isn't highlighted.
To fix this issue, the highlight process should be posted
as Runnable object.

Bug: 31983855
Test: manual - search a item in Settings app

Change-Id: I0dcc5bb52b2faa0a23991459885d8dfcaed0f226
2016-10-06 09:22:00 +00:00
Tomohiro Takeda
6cd4db0576 Fix ApplicationsState.Session memory leak in settings app
Removes the creation of an unused session and some other redundant code
left behind when c5291b87 was applied.

Change-Id: Ie5ec0f00b3240df9cf2c4fa3bd05b49ba45f4547
2016-09-07 14:22:11 +02:00
Christopher Wiley
87e59d0e81 Do not use TetherUtil.setWifiTethering
This functionality is replaced by ConnectivityManager.startTethering()
and ConnectivityManager.stopTethering().

Bug: 30147602
Test: Can toggle tethering on/off via all of settings, quick settings,
      and quick quick settings.
Change-Id: I4d190185c473237982b988f898e76d4997dc401c

(cherry picked from commit 9d251279ca)
2016-08-26 13:26:45 -07:00
Ajay Panicker
717d9f205a Merge "Do not allow apps to cause Bluetooth to be discoverable forever"
am: 692ad7c9ec

Change-Id: I60f576fee6222d0917ce845dd0bc071817d26009
2016-08-18 22:27:24 +00:00
Ajay Panicker
3c1149871d Do not allow apps to cause Bluetooth to be discoverable forever
Trying to set a discoverable timout of 0 for Bluetooth will now
not allow bluetooth to be discoverable forever.

Bug: 28177801
Change-Id: Icfa03e2100f8e7f31415ebab39889b9ec32e6c77
(cherry picked from commit 6dcab67c0c)
2016-08-18 13:28:27 -07:00
Mark Salyzyn
455006c9ca Merge \"Settings: trampoline persist.logd.logpersistd to logd.logpersistd\"
am: a1b40f0267

Change-Id: I38e4c7756a2ea617053656558d8223458d898a28
2016-07-13 18:02:20 +00:00
Mark Salyzyn
bd900c98ef Merge \"Settings: add logpersist kernel only selection\"
am: 3c60540078

Change-Id: Ieefd7e08368174f735b8491f8f01847906e1fd3b
2016-07-12 15:29:51 +00:00
Mark Salyzyn
98849ce7ae Settings: trampoline persist.logd.logpersistd to logd.logpersistd
- Deal with trampoline, where we read logd.logpersistd and
  logd.logpersistd.buffer, write to persist.logd.logpersistd and
  persist.logd.logpersistd.buffer and logd.logpersistd*
- Deal with an as designed requirement that empty values do not
  automatically trampoline, to properly communicate state.
- check logd.logpersistd.enable boolean for support

Bug: 28936216
Bug: 29831823
Change-Id: Ib460ca90738ffdee17084349c1035701301c52bc
2016-07-12 07:22:41 -07:00
Mark Salyzyn
338377b3a0 Settings: add logpersist kernel only selection
Bug: 28936216
Bug: 29831823
Change-Id: I9bfbb2717c2d4d39bfda6b92221a38985a4f4973
2016-07-12 07:22:41 -07:00
Jason Monk
d944277d1f Merge \"Fix DND conditional null state\" into nyc-dev
am: 733649c2fa

Change-Id: I65fd9c378937f9ce634a679e6779368aa63fc143
2016-06-27 18:42:15 +00:00
Jason Monk
733649c2fa Merge "Fix DND conditional null state" into nyc-dev 2016-06-27 18:36:21 +00:00
Jason Monk
095d9e3d3f Fix DND conditional null state
Persist all of the data it needs to produce the UI.

Change-Id: Ifb143b2cd3fef075cd77feaf53051eb8b7153a51
Fixes: 27664882
2016-06-27 12:29:47 -04:00
Jason Monk
55f6f052e4 Fix crash in AppDataUsage
am: 3763b581a3

Change-Id: I17025581ac647185444b0eaf4ff7f572bca23efd
2016-06-24 20:26:50 +00:00
Jason Monk
3763b581a3 Fix crash in AppDataUsage
Better handling of detecting apps

Change-Id: I15644c8d28f394aeac021af856d0d755d7a986c6
Fixes: 29609311
2016-06-24 10:37:12 -04:00
Felipe Leme
a6ec072541 Don\'t toggle Data Saver again until it receives a callback.
am: 484caa3035

Change-Id: Ib4b48a02015b81791d5bb77242968ca7c66b0621
2016-06-24 01:15:45 +00:00
Felipe Leme
484caa3035 Don't toggle Data Saver again until it receives a callback.
BUG: 29253107
Change-Id: I4371f947086a45be6709d2a560d27d1f5f0e79c4
2016-06-23 16:16:32 -07:00
Jason Monk
4c33973714 Merge \"Workaround to avoid crash in user photo selection\" into nyc-dev
am: 8f75abf92f

Change-Id: Ic0378c50fdc7661e76eed36acc9e935351998f04
2016-06-22 19:50:01 +00:00
Jason Monk
8f75abf92f Merge "Workaround to avoid crash in user photo selection" into nyc-dev 2016-06-22 19:45:07 +00:00
Jason Monk
bc1764f404 Merge \"Protect against crash in font size\" into nyc-dev
am: 4b336099f1

Change-Id: Ida2f0e275cea74516616374b858816f162f76dd3
2016-06-22 19:09:27 +00:00
Jason Monk
4b336099f1 Merge "Protect against crash in font size" into nyc-dev 2016-06-22 19:04:16 +00:00
Jason Monk
f7b1ae4ef3 Workaround to avoid crash in user photo selection
Bug: 29556966
Change-Id: I0715dee2a4cef2252b4ed1cc4d242b8b3d0ab45c
2016-06-22 14:46:56 -04:00
Jason Monk
4f8f4f2ec2 Protect against crash in font size
Change-Id: Ib3578e0e82388a4f6aa3eeade0d990fc107b9c14
Fixes: 29438848
2016-06-22 13:10:25 -04:00
Jason Monk
cd2d94b2d1 Merge \"Fix tethering re-enable after edit.\" into nyc-dev
am: dbb5a0b918

Change-Id: Ia9f2e65710a94f314f8bb2b8ec875088c9ccc59f
2016-06-22 15:36:36 +00:00
Jason Monk
dbb5a0b918 Merge "Fix tethering re-enable after edit." into nyc-dev 2016-06-22 15:22:10 +00:00
Jason Monk
29e4b2bc30 Merge \"Update battery content descriptions with labels\" into nyc-dev
am: 2a6b3d4db1

Change-Id: I0e81816f4eb2e99b10d4cbb46d97f0a370159a6c
2016-06-22 13:32:23 +00:00
Jason Monk
2a6b3d4db1 Merge "Update battery content descriptions with labels" into nyc-dev 2016-06-22 13:22:45 +00:00
Dan Sandler
698fe0a9b0 Merge \"Show \"0\" instead of \"0 B\" in storage settings.\" into nyc-dev
am: 87fcf9e95f

Change-Id: I94d18998914552d21099b12b22471ea93857cf52
2016-06-21 18:18:21 +00:00
Daniel Sandler
87fcf9e95f Merge "Show "0" instead of "0 B" in storage settings." into nyc-dev 2016-06-21 18:11:11 +00:00
Jason Monk
cf7c2374a9 Fix tethering re-enable after edit.
Sometimes the tether state change comes in late (or seemingly not
at all).  Also listen for wifi ap state changes as a fallback for
this case.

Change-Id: I6677c4277453be881967a3cf2234de11cd0237b8
Fixes: 28851179
2016-06-21 14:06:48 -04:00
Jason Monk
d589bafc4a Update battery content descriptions with labels
Change-Id: I0ad4ca753f8f5e1a01e2e21181526ddb921d487a
Fixes: 28301362
2016-06-21 13:36:57 -04:00
Zoltan Szatmary-Ban
63170fbf7a Fix non-app non-user preferences in Settings > Data usage
am: afea1cae25

Change-Id: I09905ec152a16e12436927bd514fb6cbe5afb59a
2016-06-21 15:52:33 +00:00
Zoltan Szatmary-Ban
afea1cae25 Fix non-app non-user preferences in Settings > Data usage
Bug:29466113
Change-Id: Ib7a6d477146a856c0cb9c49143ffbf4fb99e38ed
2016-06-21 12:57:30 +01:00
Dan Sandler
89d5659643 Show "0" instead of "0 B" in storage settings.
Two benefits:
  - "0 B" might be a little confusing for sighted users
  - "zero bee" is definitely confusing for TalkBack users

Nonzero storage items will still read as "640 KB" which
should be enough for anyone.

Change-Id: I5c89f7c6382ca14fb91d7d1dd145977f855618ae
Fixes: 27973778
2016-06-21 00:33:16 -04:00
Julia Reynolds
07e85aa5c0 Merge \"Fix NPE printing notification actions.\" into nyc-dev
am: 43b04bcc7d

Change-Id: I2763437122129654485c80b7652729526042321a
2016-06-20 18:58:07 +00:00
Julia Reynolds
9bcc04c5db Fix NPE printing notification actions.
Change-Id: Icb52e7bc632bf7109a75a7695fb253b2183e7360
Fixes: 29017025
2016-06-20 10:23:44 -04:00
Jason Monk
989a52dc8d Merge \"Protect against crash in memory details\" into nyc-dev
am: c3ec1ab889

Change-Id: I64ec49c820c21971056b342908a1e0c33d394d72
2016-06-17 17:44:25 +00:00
Jason Monk
11bad8d93e Make sure screen pinning desc is part of view hierarchy
am: 0c2ccba2f9

Change-Id: I20e98baa0be229a72673ef18eccd35bc713f75ad
2016-06-17 17:44:25 +00:00
Jason Monk
c3ec1ab889 Merge "Protect against crash in memory details" into nyc-dev 2016-06-17 17:22:03 +00:00
Jason Monk
7a19965c9f Protect against crash in memory details
Change-Id: Ie80efa04d0c6bc9c117802e5a7018d448f4dc7b8
Fixes: 29308942
2016-06-17 10:12:37 -04:00
Jason Monk
0c2ccba2f9 Make sure screen pinning desc is part of view hierarchy
Change-Id: I2c2e25e129d8530512e1a1f4ee6a7483b5322286
Fixes: 29243233
2016-06-17 10:05:06 -04:00
Adrian Roos
380b01a00e Merge \"Remove RemoteInput on lockscreen setting\" into nyc-dev
am: 333ba2df01

Change-Id: Ib9419acf4b09dd17fd15b53d32ce4616cbec94fa
2016-06-16 23:41:25 +00:00
Adrian Roos
333ba2df01 Merge "Remove RemoteInput on lockscreen setting" into nyc-dev 2016-06-16 23:33:56 +00:00
Yohei Yukawa
cfe0f07499 Merge \"Teach hard keyboard settings about correct user ID\" into nyc-dev
am: db6f1f2cb5

Change-Id: Ie23d6efbd6c751f6f1cd7701754dbad61375f8bd
2016-06-16 21:40:53 +00:00
Yohei Yukawa
db6f1f2cb5 Merge "Teach hard keyboard settings about correct user ID" into nyc-dev 2016-06-16 21:24:05 +00:00
Adrian Roos
38e4e5dca6 Remove RemoteInput on lockscreen setting
Bug: 29370898
Change-Id: I6fef3deb55357e8569e023968967663582974f79
2016-06-16 13:29:11 -07:00