Commit Graph

13750 Commits

Author SHA1 Message Date
Dianne Hackborn
7158e62992 Tweak battery usage to match red lines.
Most of this is done, the main thing missing is the color
of the bars which seems like a framework issue.

Note that this introduces a change to the global theme
making colorControlActivated the specified blue color,
which impacts all of the settings UI.  (Except apparently
progress bars, and thus the bug.)

Change-Id: I4a5ca8c3b94dc23b8f065f60fe697ee0e76ff47d
2014-06-02 17:21:13 -07:00
Fabrice Di Meglio
734290e9ea Merge "Setting Dashboard - padding updates" into lmp-preview-dev 2014-06-03 00:16:43 +00:00
Fabrice Di Meglio
e89aecdd0f Setting Dashboard - padding updates
- following UX design for N5 device

See bug #15384992

Change-Id: Id548ae0937b1aa9b7a9e1ae5c6a6b8299ff51eb6
2014-06-02 17:14:11 -07:00
Fabrice Di Meglio
6ba7075ae8 Merge "Entire Switch bar should be a touch state" into lmp-preview-dev 2014-06-02 23:30:30 +00:00
Fabrice Di Meglio
e9cb75c636 Entire Switch bar should be a touch state
- add click listener for toggling the Switch and its text
- add Ripple background to the SwitchBar to make a nice Ripple
when there is a click/touch

See bug #15385724 Entire Switch bar should be a touch state

Change-Id: I26ef77ace596029e9c3e1e17b153b54df4a9110e
2014-06-02 16:29:18 -07:00
Adrian Roos
4e2104b119 Merge "Follow up to "A better brightness"" into lmp-preview-dev 2014-06-02 23:19:53 +00:00
Fabrice Di Meglio
4c44873435 Merge "Push Local Printer Search action to the ActionMenu" into lmp-preview-dev 2014-06-02 22:41:06 +00:00
Fabrice Di Meglio
11a67c14a2 Push Local Printer Search action to the ActionMenu
See bug #14325350 Printing > CloudPrint ActionBar is overcrowded

Change-Id: I9c7ca08ecbcf2a918239d952dc8c23315c46f152
2014-06-02 15:38:45 -07:00
Adrian Roos
8ab0954a24 Follow up to "A better brightness"
Original change I122e1218dd0072c979a59bdafd3e0b6f4eec99ab was missing
search provider logic adjustments and length limits on the added strings.

Bug: 15313133
Change-Id: I8910dd60111c87f5494db7bac76a351e89c1a99b
2014-06-03 00:00:11 +02:00
John Spurlock
2ca1a3f5ff Settings: update bug report shortcut summary.
Now mentions the power menu instead of Quick Settings.

Bug:15385554
Change-Id: I48c0625efc4589478e2866b3c7991cdb46e8204f
2014-06-02 15:24:07 -04:00
Fabrice Di Meglio
23c6666a88 Add Indexing and Search for ChooseLockGenericFragment - DO NOT MERGE
Manual report of 0897f975c1

 - clean some imports
- add key and title to security_settings_picker.xml
- add ChooseLockGenericFragment in SearchIndexableResources

Change-Id: I3ab77677f3d926b0a3eb9be5d77ee23b568856aa
2014-05-30 17:59:00 -07:00
John Spurlock
a391d9c6ac Merge "ZenSettings: Only show "next day" if start >= end time." into lmp-preview-dev 2014-05-30 23:08:13 +00:00
John Spurlock
c2f06e06c2 ZenSettings: Only show "next day" if start >= end time.
Bug:15345316
Change-Id: Ic1130dc639f63ae6026f7c7ba2a0ad9402557ce7
2014-05-30 19:04:53 -04:00
Fabrice Di Meglio
2aa322991d Merge "Fix bug #15335840 "Safety information" search suggestion shown though ..."Safety information" setting is not available in settings app" into lmp-preview-dev 2014-05-30 22:36:05 +00:00
Fabrice Di Meglio
b2385ea462 Fix bug #15335840 "Safety information" search suggestion shown though
..."Safety information" setting is not available in settings app

- implement a SearchIndexProvider for DeviceInfoSettings and
remove some Preference indexing depending on the device state
and configuration
- remove old non used Preferences
- some code cleaning

Change-Id: I3b2c9dc7cb9f1137b553fed9330aeea4020bd2f8
2014-05-30 15:35:06 -07:00
Chris Wren
d711b22130 Merge "Support audience filtering in the Zen Mode settings." into lmp-preview-dev 2014-05-30 21:37:56 +00:00
Fabrice Di Meglio
2bc41e29b9 Merge "Fix bug #15342475 Settings search ranking improvement" into lmp-preview-dev 2014-05-30 21:09:17 +00:00
Fabrice Di Meglio
eed44c9d5f Fix bug #15342475 Settings search ranking improvement
- introduce the "base rank" concept. All SearchIndexablesProvider
will have a base rank and the Settings one will get a "0" base rank.
- use a map whose key is the authority name for the provider to get
and store the base rank
- if a base rank is not defined, use the current max defined one and
increment it to define the new one.

Then we will compute the real rank this way:

rank = (providerRank > 0) ? baseRank + providerRank : baseRank

Change-Id: Ifa82bfcdfc07f25c4a5f304f47550686f7d4c13d
2014-05-30 14:05:32 -07:00
Chris Wren
7ad86dce1c Support audience filtering in the Zen Mode settings.
Depends-On: I7c91dec1afeb54505426c4da59ec4d072a60c240
Change-Id: Idf5523e225c1368a43bf46338490c69ed9dffd09
2014-05-30 16:33:28 -04:00
Santos Cordon
3afbdf0060 Update showCallScreen to use Telecomm (6/6)
Use TelephonyManager instead of ITelephony for showCallScreen so that
the invocation routed to telecomm instead.

Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
2014-05-29 22:35:43 -07:00
Fabrice Di Meglio
d4757e088b Merge "Fix bug #15330860 “More...” item in Settings should not have an icon" into lmp-preview-dev 2014-05-30 02:43:29 +00:00
Fabrice Di Meglio
09786c529b Fix bug #15330860 “More...” item in Settings should not have an icon
- update the string to say "NFC & more"

Change-Id: Ic61e4a85cc6dfd6f32443656d9fb3ef5f9577a6e
2014-05-29 19:19:52 -07:00
Fabrice Di Meglio
c9a972ab2a Merge "Fix bug #15330860 “More...” item in Settings should not have an icon" into lmp-preview-dev 2014-05-30 01:23:10 +00:00
Fabrice Di Meglio
aa66e80944 Fix bug #15330860 “More...” item in Settings should not have an icon
- actually the issue is that the string was containing an ellipsis
so remove it

Change-Id: I37f7db91fd86ba93d533d2a78c75813d2adbbc7e
2014-05-29 18:21:37 -07:00
Fabrice Di Meglio
bc16c5ddac Merge "Update ActionBar for using contentInsetStart" into lmp-preview-dev 2014-05-30 00:47:43 +00:00
Fabrice Di Meglio
6338695711 Update ActionBar for using contentInsetStart
- also align SwitchBar ON/OFF text

See bug: #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: Ie8224be169ac975b5f71ca23f0c87f385554878e
2014-05-29 15:18:01 -07:00
John Reck
84f2d7ee4c Merge "Remove unsupported visual_lines" into lmp-preview-dev 2014-05-29 18:01:41 +00:00
John Reck
dec9ce489c Remove unsupported visual_lines
Change-Id: I710ad2d3f121203f64ea8246a1a85662b335b9e3
2014-05-29 10:16:33 -07:00
Brian Carlstrom
238be024d7 Merge "Move to dalvik.vm.lib.2 to force default to libart" into lmp-preview-dev 2014-05-28 21:39:36 +00:00
Brian Carlstrom
3bc8aaad29 Move to dalvik.vm.lib.2 to force default to libart
Bug: 14298175
Change-Id: I5ebd13eebf42c998418ef79381d9c8b89aaf5c0c
2014-05-28 14:31:47 -07:00
John Spurlock
4e4cdeffdb Settings: Remove sound settings.
- Move the remaining conditional preferences into
  the combined Sound & Notifications screen.
- Refactor the "Other sounds" sub-settings screen to
  provide a home for the new preferences.
- Migrate docking sounds, conditional on config.
- Migrate docking media, conditional on config.
- Migrate emergency tones, conditional on CDMA.
- Move all boilerplate preference <-> setting plumbing into
  a separate helper.
- Since some preferences in Other sounds are now conditional,
  create a special indexer for searching.
- Remove SoundSettings (and xml), create aliases in the manifest
  to avoid breaking shortcuts.

Bug:15279526
Change-Id: I5ae3ecda2f899b1948f7908bd217a799326c2c56
2014-05-28 16:37:43 -04:00
Dave Langemak
9e8bd809fc Merge "Move mobile data dis/enable to Telephony" into lmp-preview-dev 2014-05-27 21:25:52 +00:00
Fabrice Di Meglio
9c3c57f7ae DO NOT MERGE: Fix bug #15161058 Stability: ISE in Settings:Fragment DashboardSummary{588de71} not attached to Activity
- prevent rebuilding the UI until the fragment got attached

Change-Id: I6d5fcbce2581f3fc9900f1ca4fc8178ee959061e
(cherry picked from commit 53d76860a5)
2014-05-27 21:01:29 +00:00
Fabrice Di Meglio
42c4b0abe5 DO NOT MERGE: Optimize Dashboard loading
- prevent loading categories twice
- add some logging to see the time taken for building the Dashboard titles

Change-Id: I31724c0e66fe3b453a87f12476f58db84c73423f
(cherry picked from commit b644f29313)
2014-05-27 20:58:43 +00:00
Robert Greenwalt
34cdd1a8fd Move mobile data dis/enable to Telephony
ConnectivityService doesn't do this anymore.

bug:15077247
Change-Id: I3208c91b2c0369b594987f39ca29da7478435513
(cherry picked from commit 0d4c500e98)
2014-05-27 19:39:53 +00:00
John Spurlock
6654884417 Merge "Settings: Hide phone-related settings on tablets." into lmp-preview-dev 2014-05-27 19:23:24 +00:00
John Spurlock
57c713d1d9 Settings: Hide phone-related settings on tablets.
Bug:15002393
Bug:15091008
Change-Id: I8238b7990572f46e1530a800897ab2d39a189055
2014-05-27 14:39:02 -04:00
John Spurlock
85315533a1 Settings: Performance tweaks for SeekBarVolumizer.
Bind to existing volumizer instance when possible.

Bug:15091992
Change-Id: I26248967ff85fdb7a850451336d6850e508d4f18
2014-05-27 13:12:35 -04:00
John Spurlock
85ba0ee6ec Fix crash when launching zen mode settings.
The switch bar is only accessible in onActivityCreated.  Defer
initialization until then.

Bug:15214851
Change-Id: Ie026d46250dae397ba0af02e833bb178631fe708
2014-05-24 14:40:05 -04:00
Fabrice Di Meglio
7ca0cd415c Merge "Make smooth transition between Search fragment and the others" into lmp-preview-dev 2014-05-24 01:31:43 +00:00
Dianne Hackborn
0171fdba7b Merge "Fix issue #15185822: Stability: ArithmeticException: divide by zero" into lmp-preview-dev 2014-05-23 23:59:24 +00:00
Dianne Hackborn
a32d81797f Fix issue #15185822: Stability: ArithmeticException: divide by zero
Also small visual improvements.

Change-Id: I55dc30539a4ef67e9261f338c8c5a729a6958d9b
2014-05-23 16:47:37 -07:00
Fabrice Di Meglio
59a4055cbb Make smooth transition between Search fragment and the others
- use TransitionManager.beginDelayedTransition() and
getFragmentManager().executePendingTransactions()

Change-Id: I5d583916afb8b87dfe2b17b4e685ef5384c5fbd2
2014-05-23 16:46:50 -07:00
Fabrice Di Meglio
7e4855e8f6 Update Search recents behavior
- per UX request
- Search recents show now by defaults with the recent searches
when the SearchView is empty
- when we press on a Serach recent, we are showing the Search results
and the recents are disappearing
- when keying text in the SearchView, we hide the recents and start
showing the results
- we still save the Search query when hitting on a result

Change-Id: I6c2be21660a30f6973dea27d4852b2068a05963d
2014-05-23 16:09:53 -07:00
Fabrice Di Meglio
2416a3e071 Seventh batch of new Quantum Theme assets
- needed for Quantum Theme support

See bug #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: I93b060d016620a304f2e34cee498f9e2357a6cb6
2014-05-23 14:01:34 -07:00
Fabrice Di Meglio
5370e2e775 Merge "Sixth batch of new Quantum Theme assets - DO NOT MERGE" into lmp-preview-dev 2014-05-23 20:10:09 +00:00
Fabrice Di Meglio
a218d0ed73 Sixth batch of new Quantum Theme assets - DO NOT MERGE
- needed for Quantum Theme support

See bug #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: Iaec517aa448b1590bcb355ac8694b2e4e0c90292
(cherry picked from commit 5847373448)
2014-05-23 19:31:21 +00:00
Fabrice Di Meglio
52ed90b311 Fifth batch of new Quantum Theme assets - DO NOT MERGE
- needed for Quantum Theme support

See bug #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: I04e31e277d59d97f7871dde6bdb6a7099c7a8d65
(cherry picked from commit dcfa52c524)
2014-05-23 19:27:42 +00:00
Fabrice Di Meglio
058df7d01f Merge "Fix bug #15173703 Crash in Settings is observed when Android Beam page orientation is changed. DO NOT MERGE" into lmp-preview-dev 2014-05-23 17:57:24 +00:00
Alan Viverette
49dbbe17b8 Update references to private assets in Settings
Change-Id: Id7a788c3f7015baf991427082b6592589e62d372
2014-05-22 20:43:37 -07:00