Commit Graph

24 Commits

Author SHA1 Message Date
Jason Monk
062f736c8b Adding zen mode condition dialog
So that when you turn on priority or none in settings, you can
select the end condition.

Depends on framework changes: I9300af4f8b6d80042452b75db3418b20c5c5cc81

Bug: 15454830
Change-Id: I7856beabdd54de2ef10fa5c3d38bf27f36014693
2014-09-10 20:32:39 +00:00
John Spurlock
1e7dbd455e Settings: Use the same day sequence for downtime.
Make the starting day (Monday) the same between
the selection dialog and the summary text.

Bug:17390052

Change-Id: I4f884cb5e02c1cc2642ab05915cd94c655b9f362
2014-09-10 11:57:46 -04:00
John Spurlock
8ef00dfe4b Settings: Fix ordering for interruptions alarm warning.
And update the string to the latest.

Bug:16662819
Change-Id: I42b38ab4721180babfd816a34a1fb1c368546cca
2014-07-30 12:33:04 -04:00
John Spurlock
de99ccf18b Settings: Disable Interruptions > From when N/A.
Bug:16486621
Change-Id: Id720337905051a11ca95fac53f89963495998924
2014-07-22 21:40:41 -04:00
John Spurlock
5461239187 Settings: Tweak zen alarm info string.
Use standard styling and remove the bit about timers.

Bug:16487906
Change-Id: I28b8ac61981a2e9956d41768ee1185dc5ad950f3
2014-07-22 19:51:40 -04:00
John Spurlock
07f7efba67 Settings: Update to follow new volume design.
- "Sound & Notification"  (not Notifications)
- Remove ringer-mode pref.
- Add zen-mode pref to renamed "Interruptions" screen.
- Implement two separate "Sound" & "Notification" sections.
- Remove "Showing notifications" screen, migrate settings.
- Remove custom category styling now that we have a platform style.
- Implement new "days" sleep mode and corresponding dialog pref.
- Corresponding changes to indexable resources.

Associated frameworks/base change:
  I35afe38646f04d2ba0dbac11c2c6356120a33694

Bug:15831713
Change-Id: I6ed56791784968adfbd684f490dbbebed285a2dd
2014-07-07 18:37:06 -04:00
Fabrice Di Meglio
138ff8c045 Make the SwitchBar appear immediately
- change the way the SwitchBar is shown and hidden
- save its state
- remove the delay transition code

Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
2014-06-12 11:13:23 -07:00
John Spurlock
c65bd0c940 ZenSettings: Hide the settings-specific condition picker.
Bug:15424280
Change-Id: Iacfce340d070bf9873603865d59552709a329de9
2014-06-04 14:35:43 -04: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
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
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
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
John Spurlock
ac1c42f5dc Clean up search metadata for notification pages.
Remove custom providers for screens added purely via xml.
Add data keys for those that remain.

Change-Id: I28172a1937e40e853f929f3332e3640e63b65141
2014-05-19 15:24:34 -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
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
John Spurlock
0e0122a999 Compile against renamed condition field.
Change-Id: I6a4a28987902551ebf7b775705bed5a6e91f9dca
2014-05-02 00:09:43 -04:00
John Spurlock
04a73fe3c0 Zen mode settings fixes.
- Fix wiring for the "At night" section. Remove fragile index-based
  logic by adding value support to DropDownPreference.
- Actually refresh zen config if it changes.
- Only show the enter zen dialog for user-initiated changes.

Change-Id: Ic3a3b9864942fb3ebf18cd838339de2ff28f9394
2014-05-01 23:07:23 -04:00
John Spurlock
23e221cd93 Settings preference for choosing long-term conditions.
Requires change Icba2b8b2 in frameworks/base

Change-Id: I9d7a4f668e3b0e721646e42fa080f201c53a7fe9
2014-05-01 15:14:18 -04: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
623a0e9f45 Add zen-mode exit condition dialog to settings.
Change-Id: I7e0f06e681d5c198ae23eaafaa4498939e6453d8
2014-04-28 19:25:41 -04:00
John Spurlock
c41dfb4f6c Update zen mode settings strings.
Change-Id: I0caeed5825cedb6be16384df4988aab0ea5cdbc6
2014-04-28 11:41:20 -04:00
John Spurlock
6d26d10fb3 Notification settings: update lockscreen option language.
When device is locked:
 - Show all notification content
 - Hide sensitive notification content

Change-Id: I641bca5f1b5f0ab1b2dc381fc0af7f32a9f2bc6d
2014-04-23 11:37:27 -04:00
John Spurlock
cc819a67f4 Do not disturb settings page.
General section:
Create switches for Phone calls & Messages.  Contact
filtering disabled for now.

Automatic section:
Add mode switching based on a simple overnight schedule.

Bug:14211946
Change-Id: Ibb4e916cd5c9970f483858db91d6165507ceeb1a
2014-04-22 10:23:16 -04:00
John Spurlock
4a35051565 App-level notification configuration settings page.
New sub-page off of notification settings to ban/unban
apps and navigate to an app's notification configuration
activity (if configured).

Centralized all notification settings artifacts under a new
settings subpackage.

Bug: 13935172
Change-Id: I53b75c02f0091900734d17dc9217035d0df9b466
2014-04-21 12:19:14 -04:00