summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/dashboard
Commit message (Collapse)AuthorAgeFilesLines
* Search - add "live" search resultsFabrice Di Meglio2014-04-161-0/+5
| | | | | | | | | | - now it is possible to have Search results directly when you are typing (and not only when you press on the Search button in the IME) - implement onQueryTextChange(...) - take care about re-runnin the saved query when the app is resumed Change-Id: I021c8a9a95b50dce69ab6dace81eecb2fb188f18
* Search results - just show the first item of ListPreference entriesFabrice Di Meglio2014-04-151-4/+10
| | | | | | | | - need to increment the database model version to force re-indexing - change entries separator from SPACE to PIPE - just show the first entries value in the Search results Change-Id: I747218ff3528c3231c0209f8870c12f65e036070
* Update UI for Search resultsFabrice Di Meglio2014-04-141-7/+4
| | | | | | | | - put the icon on the left - just use the "summaryOn" ellipsized instead of the list of values Change-Id: I7250ff5b7c882b873cfe6bb0ec550a8eaf052d16
* Add support for saving and using the Preference's key valueFabrice Di Meglio2014-04-081-5/+13
| | | | | | | | | | - modify the SQlite data model - update Index code for managing the key value - pass the key when launching a Fragment or and Activity - implement a small animation for highlighting the Preference from a Search result Change-Id: I617643a4e5e3b752ece8f45ce7d5429037e479da
* Add indexing for ListPreferencesFabrice Di Meglio2014-04-021-6/+31
| | | | | | | | | | - now support ListPreferences and save the "entries" attribute - update Index database schema (and increment its version) - do some clever stuff when showing Search results: if there is a "$s" or "%s" in the summary (replacement strings), just use the entries instead Change-Id: If36595c3816706b6349faff7d3c2e725d3ea33f4
* Add indexing for Notifications preferencesFabrice Di Meglio2014-04-011-6/+15
| | | | | | | - also add indexing of CheckBoxPreferences - also some code cleaning Change-Id: I2943caaec3d64fb2a6be85168454fc76fe572afe
* Settings - update for new UI (no more Drawer)Fabrice Di Meglio2014-03-285-313/+831
| | | | | | | | | | | | | | | | | | | - follow the UX spec by no more using a Drawer - the Dashboard is now a Fragment that contains the list of Headers - the search results are also put into a Fragment that is replacing the initial one (Dashboard or other) when expanding the SearchView - use a SearchView for query input - when tapping on a Header or a Search Result, re-launch Settings as an Activity so that we are benefiting from the Activity stack for UP affordance and BACK button - manage UP affordance to show it only when needed - move some Actions to the Menu in the ActionBar for allowing space to the Search action and removing some clutter - fix an issue with the Index and WiFiEnabler and their cached Context that was not updated when there was a Configuration change - simplify the SettingsActivity code by extracting some inner classes Change-Id: I50b5f77bb44a7fade1886114dbbc820609a5e63d
* Add external Preferences indexingFabrice Di Meglio2014-03-191-11/+74
| | | | | | | | | | | | | | - define SettingsSearchIndexablesProvider as an internal SearchIndexablesProvider - protect access thru using android.permission.READ_SEARCH_INDEXABLES - update WallpaperTypeSettings and WifiSettings for taking care of the new model - update the Dashboard for taking care about external Icons for the search result - update sqlite model/version for taking care about Intents (enable launching external applications for showing the settings) Change-Id: I2e38599327e6480f1754f52666becce0884cee9d
* Improve query filtering for SearchFabrice Di Meglio2014-03-061-33/+14
| | | | | | | | | | - there was a crash when inputing "w" then "-" then "-". This crash was due to the InputFilter which got some strange indices from the BaseInputConnection. - so now we are doing our own filtering before sending the query to Sqlite. We only keep Letters / Digits / Spaces. Change-Id: I66dcbebeec9217cf8fd65a16b10fe2304d98cf58
* Merge "Fix bug #13322036 stability-sys: Java crash in com.android.settings: ↵Fabrice Di Meglio2014-03-061-0/+32
|\ | | | | | | android.database.sqlite.SQLiteException: malformed MATCH expression: [ avs- /y@ggmd"*] (code 1)"
| * Fix bug #13322036 stability-sys: Java crash in com.android.settings:Fabrice Di Meglio2014-03-051-0/+32
| | | | | | | | | | | | | | | | | | | | android.database.sqlite.SQLiteException: malformed MATCH expression: [ avs- /y@ggmd"*] (code 1) - the real issue was linked to the double quote - add an InputFilter to the query EditText so that we allow only Letters / Digits / Spaces (and this should works for all Locales) Change-Id: I6016cc25d154b386870379dfa4c79a40c5505530
* | Fix bug #13300024 Settings app crashes on changing device orientationFabrice Di Meglio2014-03-041-22/+0
|/ | | | | | | - remove crashing code. Basically let the Framework do its work. No need to save the state of the EditText by ourselves. Change-Id: I49e98a852f4fcda61eabaa2967d027942905ec27
* Add Search to the Settings App (initial release)Fabrice Di Meglio2014-03-031-0/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - add basic UI for search - build the search Index thru sqlite FTS4 (faster than FTS3) - create the search Index on the fly depending on the locale - re-index if there is a configuration change - re-index too if the Android build version has changed (usefull for an Android OTA or when a new Android version is pushed as we need to recompute the Index) - search thru "title" and "summary" Preference's data - group results in the same order of the Settings categories into the Drawer - rewrite "title" and/or "summary" if they are containing an hyphen "\u2011" - add Preference Keywords (only for the Settings App) in the Index and allow search on them (Wi-Fi network preference is used as an example) Known restrictions: - we cannot yet search for "dynamic settings" - ... nor we cannot search for settings coming from an external App (like the Phone App and its related settings that are surfacing into the Settings App). - will need a few other CLs to add more keywords (and have them translated) Change-Id: I017a4d6c433f28c257c08cacc1bed98c4c517039
* Use Drawer in Settings appFabrice Di Meglio2014-02-031-0/+41
- 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