summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DreamSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* Simplify and improve dream, LLS and weather provider layouts.Danny Baumann2016-04-271-4/+3
| | | | | | | In particular, make sure the selection ripple extends to the edges of the screen. Change-Id: Ie5694dfea8fd14810895581e4e7daef15c8890c3
* log visibility of viewsChris Wren2015-03-271-0/+6
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Make the SwitchBar appear immediatelyFabrice Di Meglio2014-06-121-10/+7
| | | | | | | | - change the way the SwitchBar is shown and hidden - save its state - remove the delay transition code Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
* Fix bug #15086008 NPE observed after user setup device daydream followed by ↵Fabrice Di Meglio2014-05-191-7/+5
| | | | | | | | | device orientation - get the Switch reference when the fragment activity has been created and thus into onActivityCreated(Bundle) Change-Id: I16c8e42ff225db029d017c392f4273a1fe277a21
* Use SwitchBar for Daydream Settings - a better wayFabrice Di Meglio2014-05-151-5/+7
| | | | | | | | - follow up CL to 41937766981423c9252e12e3319b2e7532739627 Related to bug #14898161 On/Off switches must move down from Action Bar Change-Id: Ia8392f367ae956a2f805719971e0e1772f9234cd
* Use SwitchBar for Daydream SettingsFabrice Di Meglio2014-05-151-29/+21
| | | | | | | | - follow up CL to 41937766981423c9252e12e3319b2e7532739627 Related to bug #14898161 On/Off switches must move down from Action Bar Change-Id: I89d1c6a5b74a8916d579f73e7b716ec7d41ed2d4
* Make more room in the ActionBarFabrice Di Meglio2014-05-131-2/+2
| | | | | | | | | | | 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
* Make all the Settings Switches appear againFabrice Di Meglio2014-04-181-1/+1
| | | | | | | - use the ActionBar Theme context when creating the Switch for getting the correct Theming Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
* Fix bug #13880310 Toggle On/Off buttons disappear on hitting Search...Fabrice Di Meglio2014-04-081-6/+16
| | | | | | | | ... and back button in sub-settings - move code managing the Switch from onCreate(...) to onStart() Change-Id: I747180bea3880e84635134373bf4c681378f3ec8
* Use Drawer in Settings appFabrice Di Meglio2014-02-031-1/+0
| | | | | | | | | | | | | | | | | | | | - 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
* 'When to daydream' dialog does not follow the JB dialog design guidePer Allard2014-01-231-0/+1
| | | | | | | | 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
* allow daydream settings to be keyboard driven.Chris Wren2013-03-121-1/+5
| | | | | Bug: 8339092 Change-Id: I9ef93a6633cdaee9bb823da424cd422efffd2475
* Fix Switches padding for Settings appFabrice Di Meglio2013-01-151-1/+1
| | | | | | - use setPaddingRelative() instead of setPadding() Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
* Grey out settings icon when it is in disabled stateShuhrat Dehkanov2012-11-281-1/+1
| | | | | | | | | | | | | | | | | | 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>
* More descriptive summary for "Sleep Mode" pref.Daniel Sandler2012-10-181-2/+12
| | | | | | | | | | 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
* show the dream enable switch in all conditions.Chris Wren2012-09-261-14/+17
| | | | | Bug: 7229905 Change-Id: I3fc3b2e8ce1e8bb08c72daed9c5d33ce5ff343c6
* Dream Settings: Disable settings icon if not selected.John Spurlock2012-09-101-0/+2
| | | | | Bug:7129176 Change-Id: I6ceb6b7bd37032197ab3777901156c9424cbc301
* Dream settings: list items back to constant heightJohn Spurlock2012-09-051-24/+29
| | | | | | | | | | | 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
* More traditional list item style for dreams settings.John Spurlock2012-08-301-40/+78
| | | | | | | | | | | | | 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
* New dream settings - first cutJohn Spurlock2012-08-291-91/+250
| | | | | | | | | | | | | | | 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
* Settings: Minimal refactor to support new dreams api.John Spurlock2012-08-231-3/+11
| | | | | | | | | 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
* Re-enable dreams: SettingsJohn Spurlock2012-08-021-79/+63
| | | | | | | | | | | | 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
* Make Settings app aware of layout directionFabrice Di Meglio2012-07-241-1/+1
| | | | | | - see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: I696c0f66a16640af767da3c05b5d300fd2284ecb
* Show screen saver toggle on tablets.Daniel Sandler2011-11-291-12/+13
| | | | | Bug: 5669263 Change-Id: I16ca00ff96b17cc367c4f6fa4260da5a08480ac0
* Settings changes for Android Dreams (now Screen Candy).Daniel Sandler2011-11-171-62/+92
| | | | | | | | | | | - new preference design - remove candy-specific timeout - use new settings keys Requires Change I31f31b3 Bug: 5591015 Change-Id: I45cb6ea5c68f9932c6d4e65e2b219331d48a62d6
* Dream (screensaver) settings.Daniel Sandler2011-05-261-0/+128
Depends on change Ied691856 for Settings.Secure.DREAM_TIMEOUT and Settings.Secure.DREAM_COMPONENT. Change-Id: Ib6f74b74036e12637efb891b97e459a4e33444e7