Commit Graph

673 Commits

Author SHA1 Message Date
Alan Viverette
5c8f1352e4 DO NOT MERGE Material theme
BUG; 15467097
Change-Id: Ifeda3f6cc1554c4d31357d5010df6958113df964
2014-06-06 14:33:10 -07:00
Fabrice Di Meglio
b76de1d4fa Tune Dashboard layouts following UX spec - part 3
- remove this ugly 12dp at the bottom of the Dashboard and
use 1dp instead

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I07695b2084a389552fb8a0e89663304c0c29cf58
2014-06-06 12:22:32 -07:00
Fabrice Di Meglio
132652c557 Do not show the Preference summary in Search results
- as the summary was sometimes showing "Unknown" or even not the
real Preference value (we dont have right now the capability to
know the current value of a Preference), so it is better to be
safe than sorry.

Change-Id: I009c31fc41ad35a630f4b34aa0ef998932f65263
2014-06-05 19:15:02 -07:00
Fabrice Di Meglio
21d26574eb Tune Search layouts following UX spec
See bug: #15384992 Setting Dashboard - padding updates

Change-Id: Ia7839459b3d67529db55e70c0ecda3da9b37d840
2014-06-05 18:32:44 -07:00
Fabrice Di Meglio
1b5266070b Merge "Tune Dashboard layouts following UX spec - part 2" into lmp-preview-dev 2014-06-06 00:39:47 +00:00
Fabrice Di Meglio
eb072e125b Tune Dashboard layouts following UX spec - part 2
- set a fixed size for the Dashboard icons (and thus fix the
Account type icons size isssue)
- tune layout for N7 tablet

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I0306f1ec2309e859e044e8490cef468def8d38fb
2014-06-05 17:36:45 -07:00
Alan Viverette
a83a532dde Add defaults for caption colors and edge type, fix preview size
BUG: 15116066
BUG: 8151470
Change-Id: Ieca00f0da209138bdfa691715720263ef5406773
2014-06-05 13:51:58 -07:00
Fabrice Di Meglio
bf088b5f5d Merge "Tune Dashboard layouts following UX spec" into lmp-preview-dev 2014-06-05 20:15:29 +00:00
Fabrice Di Meglio
c3febdf02f Tune Dashboard layouts following UX spec
See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I2554fa73ca293e10490982df58a42d293b48d311
2014-06-05 13:12:30 -07:00
John Spurlock
72d3c27d6a Settings: Notification string tweaks.
- Sounds & Notifications -> Sound & Notifications
- Notification station title -> Notification log
- Use dark theme for station to ensure icon is visible, boost
  all text to theme's primary color.

Bug:15435289
Change-Id: I8a3b999a42ad4cb09e190bf887ae854f8a288d40
2014-06-05 12:04:02 -04:00
John Spurlock
5b82f4f2c7 Settings: Use standard small text for subtitle.
In App notifications.

Bug:15423920
Change-Id: I493189d92b4e1447c4dd40bd5070a36d2e176bb0
2014-06-04 12:28:21 -04:00
Fabrice Di Meglio
d15de56ba1 Update Recents Searches and Search Results padding
- for matching the ones from the main Dashboard too
- udpate also the Titles to match the categories title appearance
from the Dashboard

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I6d4731dbbd049b77e8c103bc21e9d0be5c0234dd
2014-06-03 13:32:21 -07:00
Dianne Hackborn
a4e854fa5b Merge "Tweak battery usage to match red lines." into lmp-preview-dev 2014-06-03 00:21:30 +00:00
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
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
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
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
Dianne Hackborn
5a9ace3a7a Update battery use chart to better match new mocks.
Change-Id: I714cb30ccd9b8144785aee16a23ae2b723df4347
2014-05-21 14:19:11 -07:00
Fabrice Di Meglio
53e255242f Merge "Tune SwitchBar padding" 2014-05-21 02:01:20 +00:00
Fabrice Di Meglio
40a66f4c14 Tune SwitchBar padding
- remove hardcoded values
- use UX specs padding values for Phone and Tablet UI

Change-Id: Ic907c52860a1cc17acddd271943c8b2da20fb957
2014-05-20 18:59:21 -07:00
Andres Morales
f03c422652 Merge "Revert "Settings for NFC Unlock"" 2014-05-20 23:40:30 +00:00
Fabrice Di Meglio
d2b64f339a Fix bug #15001610 Java crash in settings is observed while adding Google account on wiped device
- update Settings main layout to be able to show the Buttons
- make WifiPickerActivity a SettingsActivity and remove dead code
- fix reference to Buttons for using the Settings IDs instead
of the Framework ones

Change-Id: I23bfd1b8290fc007e6e80aa9a6297e55e7f6004e
2014-05-20 14:23:56 -07:00
Fabrice Di Meglio
8b81bfff2e Update Dashboard font sizes to match UX spec
- 16sp for title (medium text)
- 14sp for sub-title (small text)
- 14sp for category title

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

Change-Id: I04eb99b4df1ffcb60bb906ed3e1ea588e886dba4
2014-05-20 10:27:05 -07:00
Andres Morales
ad0c06aca3 Revert "Settings for NFC Unlock"
This will be rolled into a Trustlet

This reverts commit fd2b629335.

Change-Id: I921f0838d4646799b6664da64a578a209e9c037e
2014-05-20 16:59:25 +00:00
Fabrice Di Meglio
29d8e8bc0d Merge "Update Search results layout" 2014-05-19 23:56:39 +00:00
Fabrice Di Meglio
3f6d2e422b Update Search results layout
See bug: #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: If3174fee563ef204eb939576e4c7ef4d986735e3
2014-05-19 16:55:26 -07:00
Fabrice Di Meglio
bc2111be4f Merge "Update Dashboard padding" 2014-05-19 22:12:31 +00:00
Fabrice Di Meglio
7f2363e903 Update Dashboard padding
- make it the same as the one used for PreferenceFragments

Change-Id: I9575f0fef4492d76afb25b10af201839709517e9
2014-05-19 15:11:24 -07:00
John Spurlock
dc76fcaef8 Fix icon padding in app notification settings.
Change-Id: I93da362f0bd6b3f388864a961c2365163c44e474
2014-05-19 15:21:19 -04:00
John Spurlock
81bef1d745 VolumeZen: Sound & Notifications settings.
- Add sound settings under the newly combined Sound & Notifications
  top-level settings page.
- New slider preferences for setting audio stream volumes.
- Migrate checkbox prefs to switch prefs.
- New settings subpage for touch sounds.
- New settings subpage for "Showing notifications"
- New setting pref for displaying intercepted notifications in zen mode.
- New tri-state lockscreen notifications pref.
- Add priority + sensitivity options to app notification dialog.
- Remove badges on app notifications row, migrate to subtitle text.
- Migrate strings to common spot in strings.xml
- Remove heads up setting.
- Remove tweaks category (unused).
- Clean up notification settings, separate out into a code section per option.
- Clean up _settings.xml files, prefix each pref with option name.
- Add appropriate indexing data to each settings page.

Depends on f/b change Ic30aa575ae07650cee62c8c1d83b6bc69395cf0d

Change-Id: If700385a7d0057f6c4c4bcf6e648dcf88b8ebff2
2014-05-18 15:37:09 -04:00
Fabrice Di Meglio
ba046c034c Add padding at the end of the Dashboard list
See bug #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: I3aa01a346933eb9269d2466c07b6b5ebd6fc3cc1
2014-05-16 18:59:14 -07:00
Fabrice Di Meglio
74fb759f50 Merge "Improve the Dashboard layout" 2014-05-16 23:16:36 +00:00
Fabrice Di Meglio
94c9e177a4 Improve the Dashboard layout
- make the category text header taller and centered

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

Change-Id: I557211db923f106a83d65d090ce610c76fa53d5e
2014-05-16 16:13:40 -07:00
Martijn Coenen
00dbb74b8d HCE foreground support.
Allow users to configure they want to favor the foreground
app for tap&pay.
Change-Id: I25e1058e84f468e47fd40f43b65389c04373a3ab
2014-05-16 09:10:30 -07:00
Fabrice Di Meglio
8fb5d4a0ea Use SwitchBar for DoNoDisturb Settings
- follow up CL to 4193776698

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: If1ce0eb147ade8485107ee948b0d03cf688bcf06
2014-05-15 20:19:52 -07:00
Fabrice Di Meglio
92f02e4d2a Merge "Use SwitchBar for Accessibility Settings" 2014-05-16 00:47:20 +00:00
Fabrice Di Meglio
6220275d6d Use SwitchBar for Accessibility Settings
Deals with Talkback / Captions / Magnification Gestures

- follow up CL to 4193776698

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: Ibda0ed05b399f1b2b4464c5b22a3e9fd3d378867
2014-05-15 17:44:26 -07:00
Andres Morales
ae04155bbe Fix issues in Wi-Fi NFC tag code
An NPE + multiple comments

Change-Id: I04ffe10874cc2e9aa9f68bc551b8da98eb6f1640
2014-05-15 16:34:51 -07:00
Fabrice Di Meglio
4193776698 Introduce SwitchBar widget
- SwitchBar is a LinearLayout that containts a TextView and a Switch and
is intended to replace all Switches that are put in the ActionBar as a
custom view
- use the new SwitchBar for WifiSetting only for now (a later CL will
take care of all the other Setting that are using a Switch in the
ActionBar)

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
2014-05-14 16:42:06 -07:00
Paul Lawrence
3873a193d5 Make pattern visible at decryption time
Set background to gray to enable this. Probably not the idea final
look, but at least gets the feature usable.

@bug 14883421

Change-Id: Ie599b969d5da8bc21c81c4b974263554697922a6
2014-05-13 13:47:53 -07:00
Fabrice Di Meglio
39490546d3 Add touch feedback and focus on Dashboard tiles
- use a touch-feedback background
- declare DashboardTileView as focusable

Change-Id: I67ae19cd20374e531660232034528c995f595900
2014-05-09 18:18:05 -07:00
John Spurlock
c9afadb04b Add condition provider access to settings.
Pull NotificationAccessSettings out into a reusable base class
and reuse all of it for a new condition providers settings page.

As with notification listeners, the entire section is hidden if
no apps provide conditions.

Change-Id: Ib5273f3362e392d99647347c23a514e4590f7ac9
2014-04-29 20:21:08 -04:00
John Spurlock
c41dfb4f6c Update zen mode settings strings.
Change-Id: I0caeed5825cedb6be16384df4988aab0ea5cdbc6
2014-04-28 11:41:20 -04:00
Fabrice Di Meglio
769630c895 Settings new dashboard - part 2
Introduce the new Dashboard (a grid like presentation of
Settings top categories) per UX specification.

- the Dashboard is composed of "categories" and in each of them
you have "tiles"
- implement a new layout for showing top categories
(DashboardContainerView). This layout basically acts like a
grid
- depending on the device configuration make the grid with 1
column in portrait / 2 colums in landscape (phones) OR 2 columns
in portrait and 3 in landscape (tablets)
- take care of Accounts adding and removing (as it changes the
number of tiles to show)

Also remove all the old code related to Headers

Change-Id: Ie29944132c1b4c3f7b073d5a7d4453b8f5ec19a7
2014-04-25 17:24:18 -07:00
Dianne Hackborn
0be7598cb8 Show time remaining / to charge.
Rework the battery graph to include the time remaining or
time to charge.

Change-Id: Ib26b761cb10e01f5f3aa4189db10d44b8ce62f89
2014-04-24 12:05:51 -07:00
Jeff Davidson
0b35070410 Merge "Refactor SmsListPreference into AppListPreference." 2014-04-24 16:49:19 +00:00
Fabrice Di Meglio
018004496d Merge "Add saved Search queries feature" 2014-04-23 17:35:52 +00:00
Fabrice Di Meglio
d297a58402 Add saved Search queries feature
- update SearchResultsSummary fragment to have two lists:
one for Search suggestions (saved queries) and one for
Search results
- a tap on a saved query will launch that Search query
- show the list of saved queries when tapping on the SearchView
- do some fancy hidding / unhidding of the saved queries list
and results list

Change-Id: If15055ab78b0ec5eef4e543173dc7b866bd08e27
2014-04-23 10:35:10 -07:00
Amith Yamasani
6f3a760dad Merge "Temporary color change to make lock pattern screen visible" 2014-04-22 19:20:15 +00:00
Amith Yamasani
9690b19636 Temporary color change to make lock pattern screen visible
Fixes the white on white in Settings when creating or confirming
a lock pattern.

Change-Id: Ie4770edbabb76b984e17b84f8f1e7c991bb2316b
2014-04-22 09:37:49 -07:00