History log of /packages/apps/Settings/src/com/android/settings/DreamSettings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
138ff8c0457c6e1345015973668d652fa17c7c3b 12-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> 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
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
28ffbd3ba7b47cf38ff33d45b35906ea73171ad8 20-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15086008 NPE observed after user setup device daydream followed by device orientation

- get the Switch reference when the fragment activity has been created
and thus into onActivityCreated(Bundle)

Change-Id: I16c8e42ff225db029d017c392f4273a1fe277a21
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
c2e2f77739ade726832c433063a075626ba316c4 16-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Use SwitchBar for Daydream Settings - a better way

- follow up CL to 41937766981423c9252e12e3319b2e7532739627

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

Change-Id: Ia8392f367ae956a2f805719971e0e1772f9234cd
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
c32b0eff7123482b0a879bda1e19959de83a8995 16-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Use SwitchBar for Daydream Settings

- follow up CL to 41937766981423c9252e12e3319b2e7532739627

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

Change-Id: I89d1c6a5b74a8916d579f73e7b716ec7d41ed2d4
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
35062d6983e352f5cb6c4a6bbf3c1e4e214d44a9 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Make more room in the ActionBar

See bug #14898161

- allow Search Option Menu only on the Dashboard (and no more
in the Settings screens)
- push the "Start Now" Day Dream Option Menu to be a real Menu
so that we can see the "Day Dream" title

Change-Id: I4a7c21fb3599ada8efc82bd5bd8c9f5049937ceb
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
ede14355180b84c634cade7e3f02d67be64cbff4 19-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Make all the Settings Switches appear again

- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
e2b9e07e5f40b64bbdd7984b6d61cda6c1be060b 08-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13880310 Toggle On/Off buttons disappear on hitting Search...
... and back button in sub-settings

- move code managing the Switch from onCreate(...) to onStart()

Change-Id: I747180bea3880e84635134373bf4c681378f3ec8
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
263bcc8b732dbb47d3ce63904e0e05191fabbad6 18-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Use Drawer in Settings app

- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
6251d707b11b9031f2cd2d5ef5c39cc8056745c0 25-Jun-2013 Per Allard <per2.allard@sonymobile.com> 'When to daydream' dialog does not follow the JB dialog design guide

The dialog is a single selection popup and according to the
dialogs design guide the popup should close when the user
has make his/her choice, but in this case it does not.

Change-Id: Iac6bc19146a88236d3253d2d846212ce09b4925b
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
797805909b4852169c1e884a0a458ec1443dab84 12-Mar-2013 Chris Wren <cwren@android.com> allow daydream settings to be keyboard driven.

Bug: 8339092
Change-Id: I9ef93a6633cdaee9bb823da424cd422efffd2475
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
b27223f139248f92637997378d7a38d7d24f6b02 16-Jan-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix Switches padding for Settings app

- use setPaddingRelative() instead of setPadding()

Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
96577681a298b44be2e1133b10bc637623be3b87 02-Oct-2012 Shuhrat Dehkanov <uzbmaster@gmail.com> Grey out settings icon when it is in disabled state

If engine is not active, its settings icon is disabled in
Settings > Language & input > Text-to-speech output screen.
Currently, settings icons for all TTS engines are shown at
the same opacity. This fix dims settings icons of not-selected
engines.
Make sure that more than one TTS engine are installed on the
target, for e.g., Google Text-to-speech Engine and Classic
Text To Speech Engine (SVOX Classic TTS).

Additionally, since setAlpha() is used in multiple places within
Settings package, moved DISABLED_ALPHA declaration to Utils.java
in order to have single point of reference.

Change-Id: Ifa7de79814a2f4a4aa021cd8621cbfab41655680
Signed-off-by: Shuhrat Dehkanov <uzbmaster@gmail.com>
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
c825bc8e17cb60cae88397ab77d1e2711c086624 18-Oct-2012 Daniel Sandler <dsandler@android.com> More descriptive summary for "Sleep Mode" pref.

It will either show "Off" or the name of the selected dream.

Also, move "When to sleep" out onto the visible part of the
action bar if there's room, making it much easier to discover.

Bug: 7320701
Change-Id: I1d4e2c17b764b8ee054dbb17c23f559d735e3450
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
63707af94a8ceb23f39f35454025c94e10d52397 26-Sep-2012 Chris Wren <cwren@android.com> show the dream enable switch in all conditions.

Bug: 7229905
Change-Id: I3fc3b2e8ce1e8bb08c72daed9c5d33ce5ff343c6
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
0abbc1ede13e851e9f1107ad8b67346546bc76ca 10-Sep-2012 John Spurlock <jspurlock@google.com> Dream Settings: Disable settings icon if not selected.

Bug:7129176
Change-Id: I6ceb6b7bd37032197ab3777901156c9424cbc301
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
1537e8b3e8d81bf404f6aa70c8ca514f3ff62dd5 04-Sep-2012 John Spurlock <jspurlock@google.com> Dream settings: list items back to constant height

Expanding/collapsing items removed, settings icon shown on right
with divider if applicable.

New "Start" action on the action bar to start dreaming. This is
no longer in preview/test mode, but a call to .dream().

Bug: 7010260
Change-Id: Ia1d8b9a70218dcc598bf62befbf545f572bbc6b1
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
7af2aa52ac2e458969abeaefec217f6a4f976767 30-Aug-2012 John Spurlock <jspurlock@google.com> More traditional list item style for dreams settings.

Other improvements:
- remove "Start dreaming now", promote "When to dream" to action bar
- added logging
- hide dream settings button if n/a
- new flat style for settings/preview + dividers
- refresh dreams list when packages are installed/uninstalled
- added placeholder for help url

Bug:7010260
Change-Id: Ia443b4f76678eaf1a52b907d50aefb0d8f7e4748
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
6df18e2713a15a52567ac1a833953ac4bfa38f15 22-Aug-2012 John Spurlock <jspurlock@google.com> New dream settings - first cut

First draft implementation of mocks for dream settings.

Want to merge for the weekly build, so a few things remain, namely:
- flat style for preview/settings buttons + dividers
- animation between dream row expanded/collapsed state
- wire up the help url
- possibly ditch the non-standard style
- add logging
- refresh when packages are installed/uninstalled

Bug:7010260
Change-Id: I96e3ab944170925bd76edf7b8b1127adfffc6262
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
e5a84b2ea19711ac2ce641163acdb6a9a30662ed 22-Aug-2012 John Spurlock <jspurlock@google.com> Settings: Minimal refactor to support new dreams api.

Fix breaking changes to the dreams api. Master toggle
and multiple dreams support in Settings will be done in
a subsequent change.

Bug:7028665
Change-Id: Ia56dd00ec50323fbba06473b1747e5015a3f1898
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
d541b6fd1c2c93df83dcc169a300202c677bb8cd 31-Jul-2012 John Spurlock <jspurlock@google.com> Re-enable dreams: Settings

Re-arrange settings and captions for dreams. Activation on sleep
and activation on dock now independent. Sleep activation defaults to off,
dock activation defaults to on (replacing dock mode).

Also use dream manager service for testing dream preference, and properly
disable preferences if both dream activations are disabled.

Change-Id: I76f5ba115c7678826a09077dd393acc55c2bca26
Bug: 6921930
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
79d8e80a304922c34a6bd344f1fa49dd7dfd106d 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Make Settings app aware of layout direction

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I696c0f66a16640af767da3c05b5d300fd2284ecb
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
c949ef6e64adcf1c1590ec15cc5d4a4403e77ddf 29-Nov-2011 Daniel Sandler <dsandler@android.com> Show screen saver toggle on tablets.

Bug: 5669263
Change-Id: I16ca00ff96b17cc367c4f6fa4260da5a08480ac0
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
6f0ea441e465a0af646f8952f820a92f6902c8d9 17-Nov-2011 Daniel Sandler <dsandler@android.com> Settings changes for Android Dreams (now Screen Candy).

- new preference design
- remove candy-specific timeout
- use new settings keys

Requires Change I31f31b3

Bug: 5591015
Change-Id: I45cb6ea5c68f9932c6d4e65e2b219331d48a62d6
/packages/apps/Settings/src/com/android/settings/DreamSettings.java
2943cfa60670c1fc0d11d3cb4d0b67ec87e4181b 15-Apr-2011 Daniel Sandler <dsandler@google.com> Dream (screensaver) settings.

Depends on change Ied691856 for
Settings.Secure.DREAM_TIMEOUT and
Settings.Secure.DREAM_COMPONENT.

Change-Id: Ib6f74b74036e12637efb891b97e459a4e33444e7
/packages/apps/Settings/src/com/android/settings/DreamSettings.java