Commit Graph

14339 Commits

Author SHA1 Message Date
Salvador Martinez
60bd509d4e Added guard to logging in AsyncTask
am: 030eeeee6d

Change-Id: I5ad7dec889004484117a621a18e61c477c0c94d6
2016-08-25 19:59:34 +00:00
Todd Kennedy
d5824967ee Implement Web Action settings
Users can enable / disable Web Action from "Opening links" under
the apps setting.

Bug: 28140107
Change-Id: I4ed4b77953952a56316b780a54a482d0c564cbe4
Test: manual testing of the settings app
2016-08-25 12:56:37 -07:00
Salvador Martinez
2acb2257cd Updated Nexus imprint screen
The fingerprint settings screen looked ugly so an
icon was added and the styles used in the
preferences normalized so everything lines up
and is flush now.

Test: Visually Inspect
Bug: 27834731
Change-Id: I208d7fc2aecbe64d3a0b771fc73f49c9612f6efa
(cherry picked from commit 3d2d5e040a)
2016-08-25 19:55:11 +00:00
TreeHugger Robot
8da706f6ff Merge "Updated Nexus imprint screen" 2016-08-25 19:51:02 +00:00
Salvador Martinez
030eeeee6d Added guard to logging in AsyncTask
An async task was trying to get the context
in an InstrumentedFragment. This could return
null if the context disappears before the new
thread gets to that line. Logging will now
be aborted if context is null to avoid this.

Test: Manual/Monkey Stability Test
Bug: 31058928
Change-Id: Iae97d389e58a76b0f213a2749415501894ebf649
(cherry picked from commit 566b66e27c)
2016-08-25 17:45:24 +00:00
Doris Ling
6cf7d7c9b7 Add ObservableDialogFragment to log DialogFragments.
Bug: 30681529
Test: RunSettingsRoboTests

ObservableDialogFragment can be used as host of VisibilityLoggerMixin,
allowing us to log visibility change for all dialogs easily.

Change-Id: I973db929d8494d3756584ca60df3b2e87d96c757
2016-08-25 10:42:50 -07:00
Andre Lago
7b92e281a7 [Settings App] Get ringtone titles from Ringtone
Instead of using custom code to get ringtone titles, use the Ringtone
API which already returns 'None' if the Uri is null

Bug: 31084929
Change-Id: Ifff3eaa3591e90020a2ac108a5916e19fb71e0bd
2016-08-25 16:27:46 +00:00
Noah Wang
ff23df19ba Inflate necessary previews upon user interaction instead of
inflating everything on creation of the screen. This will
improve the speed of opening the screen and refreshing screen upon
commiting change.

Test: Manually tested by interacting with ViewPager and SeekBar.
Bug: 30697309
Change-Id: Ieb2fac95696b8be33fd508f3b75741529b68e946
(cherry picked from commit 5666ddfe5d)
2016-08-25 07:39:08 +00:00
Doris Ling
7b3a5e0bd2 Fix crash in ChooseLockPassworkFragment. am: f958f2e14e am: 773a2ab217
am: 6ffe36cf79

Change-Id: I6792e6ac9bd209c7e2dc8b20a5173bb01ed788bc
2016-08-25 02:18:35 +00:00
Doris Ling
6ffe36cf79 Fix crash in ChooseLockPassworkFragment. am: f958f2e14e
am: 773a2ab217

Change-Id: Iaf85188f0b3df6884a876aa120b13fead5478295
2016-08-25 02:06:58 +00:00
Doris Ling
773a2ab217 Fix crash in ChooseLockPassworkFragment.
am: f958f2e14e

Change-Id: I5df6a8989513347f6f55cc5fff9c54852c2a80ec
2016-08-25 02:00:57 +00:00
TreeHugger Robot
b6ad0f9349 Merge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev 2016-08-25 01:44:22 +00:00
Doris Ling
465e926542 Fix animation video render issue when Settings->Moves is resumed from
screen off.

Re-initialize the animation video if necessary when the preference is
visible to the user.

Fixes: 31023261

Test: manual -
1. Go to Settings -> Moves and verify that the animation video are
displayed correctly on load.
2. Press power button to turn screen off, then on again. Verify when
Moves settings resumes, the animation video is displayed correctly.
3. Repeat #2 above but let display time out instead of turning off
screen by power button.

Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993
(cherry picked from commit 008ba4ec40)
2016-08-25 01:02:49 +00:00
Fan Zhang
1bab964a5d Don't remove wifi preferences when updating AP to avoid GC. am: 3f0e1344d3 am: bc6e2c49f0
am: d96bc5b5a6

Change-Id: Id10ded6d97308c175194ffb59afdd89e924ed1c8
2016-08-25 00:51:34 +00:00
Salvador Martinez
3d2d5e040a Updated Nexus imprint screen
The fingerprint settings screen looked ugly so an
icon was added and the styles used in the
preferences normalized so everything lines up
and is flush now.

Test: Visually Inspect
Bug: 27834731
Change-Id: I208d7fc2aecbe64d3a0b771fc73f49c9612f6efa
2016-08-24 17:51:14 -07:00
Fan Zhang
1dda6f6430 Don't remove wifi preferences when updating AP to avoid GC.
am: 9d031f2fbc

Change-Id: I3b589d86fc6ecd1a6caf0db9f3b9f7674dbe046a
2016-08-25 00:44:53 +00:00
Fan Zhang
1330f130d6 Don't remove wifi preferences when updating AP to avoid GC.
am: 9d031f2fbc

Change-Id: I0a4c7204dcb79880aee5db620b9642b8a1314757
2016-08-25 00:44:53 +00:00
TreeHugger Robot
e96d65deea Merge "Added guard to logging in AsyncTask" 2016-08-25 00:36:32 +00:00
Fan Zhang
d96bc5b5a6 Don't remove wifi preferences when updating AP to avoid GC. am: 3f0e1344d3
am: bc6e2c49f0

Change-Id: Id21a0340fd29bee4ee5bdf721d3ec7b44be8a961
2016-08-25 00:30:17 +00:00
Fan Zhang
bc6e2c49f0 Don't remove wifi preferences when updating AP to avoid GC.
am: 3f0e1344d3

Change-Id: I3062dbcb338d5068afbd8318e23a778659641744
2016-08-25 00:20:20 +00:00
Doris Ling
f958f2e14e Fix crash in ChooseLockPassworkFragment.
Check for null activity when the handler receives messages to ensure
that the fragment is still attached to the activity.

Fixes: 31034901

Test: Manual - Manually try to update password, verify it works. Run
monkey test on settings package and verify no crash seen.

Change-Id: I9753729ee64458fa1bc25d78abc946d2563a5067
2016-08-24 17:17:52 -07:00
TreeHugger Robot
06609bec29 Merge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev 2016-08-25 00:09:49 +00:00
Fan Zhang
9d031f2fbc Don't remove wifi preferences when updating AP to avoid GC.
Bug: 30870531

Removing wifi preferences every time will force update create a new set
of preferences, which leads to higher chance of GC.

Change-Id: Ifea2f63a3b54fa0d5861fb34a348d81e99bcab68
2016-08-24 22:49:13 +00:00
Fan Zhang
3f0e1344d3 Don't remove wifi preferences when updating AP to avoid GC.
Bug: 30870531

Removing wifi preferences every time will force update create a new set
of preferences, which leads to higher chance of GC.

Change-Id: Ifea2f63a3b54fa0d5861fb34a348d81e99bcab68
2016-08-24 15:31:10 -07:00
Salvador Martinez
566b66e27c Added guard to logging in AsyncTask
An async task was trying to get the context
in an InstrumentedFragment. This could return
null if the context disappears before the new
thread gets to that line. Logging will now
be aborted if context is null to avoid this.

Bug: 31058928
Change-Id: Iae97d389e58a76b0f213a2749415501894ebf649
2016-08-24 15:11:21 -07:00
Noah Wang
714474079a Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change. am: 5666ddfe5d am: 509449d34f
am: 4e1499da6e

Change-Id: I61fd482993d0e0a880f70282cb59ca09b58a137e
2016-08-24 21:44:22 +00:00
Noah Wang
4e1499da6e Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change. am: 5666ddfe5d
am: 509449d34f

Change-Id: Id9d77a210032c7ac71d7c445aea9b13648c1b6b0
2016-08-24 21:30:04 +00:00
Noah Wang
509449d34f Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change.
am: 5666ddfe5d

Change-Id: I4df4b99664e4ce608efbcf909172e38e8b5cc86d
2016-08-24 21:27:03 +00:00
Noah Wang
eed4d98eca Merge "Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change." into nyc-mr1-dev 2016-08-24 21:16:14 +00:00
TreeHugger Robot
f33034a114 Merge "Add lifecycle observers for future mixin structures." 2016-08-24 19:12:12 +00:00
Noah Wang
5666ddfe5d Inflate necessary previews upon user interaction instead of
inflating everything on creation of the screen. This will
improve the speed of opening the screen and refreshing screen upon
commiting change.

Test: Manually tested by interacting with ViewPager and SeekBar.
Bug: 30697309
Change-Id: Ieb2fac95696b8be33fd508f3b75741529b68e946
2016-08-24 12:05:26 -07:00
Fyodor Kupolov
bf88b269ca Ignore onPreferenceChange for top level preference
Top level preferences are handled in onClick. Returning true would 
toggle the state of the switcher.

Test: Manually tested App & content access page
Bug: 30909943
Change-Id: I9487044aa67c20c9cb0e9bb9de8911f17e05d808
2016-08-24 18:06:33 +00:00
Fan Zhang
e668afed14 Merge "Use isOemUnlockEnabled to drive oem unlocking toggle." into nyc-mr1-dev am: 2c8178db3a am: a9d2aa8dfa
am: 77ba0620ea

Change-Id: I7a557b4ce9923b7d9b3bd2add8c02fdbadfe589d
2016-08-24 16:18:02 +00:00
Svetoslav Ganov
c459be6e29 Merge "Only sync adapters with access can see an account - settings" into nyc-mr1-dev am: de090f3f85 am: 3300192cdb
am: 6c5c9ba8cb

Change-Id: Ib4a9e14a63bc6f2cb4cd49b1c20e3efacc95f204
2016-08-24 16:17:57 +00:00
Sudheer Shanka
87ec133f52 Merge "Show summary of "Add user" item" into nyc-mr1-dev am: acd34a9c72 am: 35221c350d
am: e9f958f2b6

Change-Id: I050044222863cca5884461a555c05f47d2cc9a0e
2016-08-24 16:16:52 +00:00
Maurice Lam
0b9da48d9f Merge "Position fingerprint progress in the center on landscape" into nyc-mr1-dev am: 497704a2cf am: b62638e83b
am: ce6a2356ad

Change-Id: I3c0a875966275473a8d411ca444e29fae22c7357
2016-08-24 16:16:50 +00:00
Andrew Sapperstein
f36eac3889 resolve merge conflicts of 6890d53 to master
Change-Id: I61c1ed150fe311c4e07df524b5c0577f35d3bd60
2016-08-24 10:50:28 -04:00
Pat Tjin
28fcccd185 Merge "Remove duplicate KEY_DEVICE_MODEL string set" 2016-08-24 04:48:08 +00:00
Doris Ling
77ba0620ea Fix animation video render issue when Settings->Moves is resumed from screen off. am: 008ba4ec40
am: 12967ed1a8

Change-Id: Ief21c41a4caaa4f20b12cd9987c8fba32fe16f2a
2016-08-24 04:11:42 +00:00
Doris Ling
12967ed1a8 Fix animation video render issue when Settings->Moves is resumed from screen off.
am: 008ba4ec40

Change-Id: I48898d70a02a96a4fc76aa04bfeab309d6e9785f
2016-08-24 04:08:55 +00:00
Doris Ling
b88068a876 Merge "Fix animation video render issue when Settings->Moves is resumed from screen off." into nyc-mr1-dev 2016-08-24 04:05:39 +00:00
Fan Zhang
6c5c9ba8cb Use isOemUnlockEnabled to drive oem unlocking toggle. am: 83f91f61ae
am: 2fd3f18e27

Change-Id: Ied30f294df99b869e06ee4dc11c300da3fd70ade
2016-08-24 02:33:38 +00:00
Svetoslav Ganov
e9f958f2b6 Only sync adapters with access can see an account - settings am: 6f9bf1da90
am: a2c7515a3f

Change-Id: I4b0d16639837e73fced0260e93b29c08aa4b7346
2016-08-24 02:10:20 +00:00
Yoshinori Hirano
ce6a2356ad Show summary of "Add user" item am: 2ce843b00e
am: 9224414477

Change-Id: Iee1fe204b1d48b57c8d0577eb86dc3518c144b6f
2016-08-24 02:10:16 +00:00
Doris Ling
6890d538ae resolve merge conflicts of f757d1e to nyc-mr1-dev-plus-aosp
Change-Id: I1e53b78977bb32fe34462cf46bbfe66626574e65
2016-08-23 19:02:31 -07:00
TreeHugger Robot
98d840576e Merge "Refactored Screenshot preference to be dependent on context preference." 2016-08-24 01:37:57 +00:00
Fan Zhang
2fd3f18e27 Use isOemUnlockEnabled to drive oem unlocking toggle.
am: 83f91f61ae

Change-Id: I11d1210beaa26a0bad54e03f7a08817a3c500fe3
2016-08-24 00:36:10 +00:00
TreeHugger Robot
2c8178db3a Merge "Use isOemUnlockEnabled to drive oem unlocking toggle." into nyc-mr1-dev 2016-08-24 00:31:54 +00:00
Svetoslav Ganov
a2c7515a3f Only sync adapters with access can see an account - settings
am: 6f9bf1da90

Change-Id: Ia97c5fe3a1101b9472bc8370671fba838d59edf7
2016-08-23 23:35:21 +00:00
Matthew Fritze
90d59f2332 Refactored Screenshot preference to be dependent on context preference.
Tests: Manual. 

Change-Id: I2fde1a67ade4bf89bf38b4eae0ca98074cca868c
Fixes: 30681087
2016-08-23 23:32:46 +00:00