summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/dashboard/DashboardSummary.java
Commit message (Collapse)AuthorAgeFilesLines
* Disable cellular networks settings menu if airplane mode is enabledLuis Vidal2016-05-121-0/+8
| | | | | | | | Cellular networks settings menu will be disabled if user enables airplane mode Change-Id: I83d78754918d50c02e19121ffcfb673bb1dc5797 TICKET: CYNGNOS-2697
* Settings: add switches for dashboard itemsRoman Birg2015-12-151-2/+11
| | | | | Change-Id: Ibff81510270745807a4b133457d60d47dd629df6 Signed-off-by: Roman Birg <roman@cyngn.com>
* Themes: Use SRC_ATOP tintMode for external tile iconsd34d2015-12-091-0/+1
| | | | | | | | | | | | For more elaborate themes that use a drawable with color and no need for tinting, the tint mode needs to be changed to SRC_ATOP instead of the default SRC_IN. This means that the alpha value from the tint color is discarded and the alpha of the drawable is used instead. Stock still looks as expected so this should be an acceptable compromise to accommodate themes that supply a transparent tint with the intention of no tint being applied. Change-Id: I6852792b6b71ef73c5c0ba6073c88bff8c19456b
* Themes: Expose color for external settings iconsd34d2015-12-031-4/+9
| | | | | | | | | | | | | | | | Marhsmallow now allows for system apps to add settings. An icon is loaded from the external package and a tint is applied to the icon so that it matches other icons in the dashboard. The tint color uses the colorAccent attribute from the currently applied style. Themes can overlay the colorAccent but this color is also used for other elements of the UI which may not be ideal. This patch adds a new color external_tile_icon_tint_color which points to the attribute ?android:attr/colorAccent when not themed. This retains the original look but offers better flexibility for theme designers. Change-Id: I95fe8da0768f29e0b762af3a74fd2afad7b15cd2
* Help fallbacks and intent workJason Monk2015-05-281-1/+2
| | | | | | | | | | - Handle a backup URI, so that if the specified URI is not available, another can be used. - Add some data to help intents when they are intent URIs - Fill in the context with a classname when it isn't present Bug: 15475009 Change-Id: I7050fa61121901929e650b20bd7a0ae21e8ba207
* Tint dashboard items coming from external tilesJason Monk2015-04-231-2/+12
| | | | | | | So they can match the Settings theme. Bug: 20449897 Change-Id: I33ad0d78dad6fbc9dae35552246a559b6508deaf
* Allow help to be defined to intent uriJason Monk2015-04-141-2/+16
| | | | | | | | | Allow help uris to be either an intent uri or as uri (as they were before). Also add a default help uri, and specific helps for several screens. Bug: 15475009 Change-Id: Iff982892973f01d32ff61ea88d4844e9a7153500
* log visibility of viewsChris Wren2015-03-271-1/+9
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Allow system apps to add to settings dashboardJason Monk2015-03-251-1/+11
| | | | | | | | | | | | | | | | | | | Allow system apps to add a tile to the top level of settings that links to an activity through adding a filter for a specific action. Determine the info for the tile based off manifest info for the activity. Also allow the same for managed profiles, but show a dialog in between to select which profile. The category in which the item is to be placed must be in meta-data. The icon and title can be specified through meta-data as well or if unspecified the activity's label and icon will be used. Also added an optional <external-tiles> tag to the dashboard category xml, this allows Settings to put external tiles in the middle of some categories (Personal does this). Bug: 19443117 Change-Id: Idc9938d1549d181103a3030a8784b527215a8399
* More code cleaning for the Home intent filtersFabrice Di Meglio2014-07-231-1/+0
| | | | | | | - remove the Intent.CATEGORY_HOME as it is not useful and cannot be used into an Intent filter Change-Id: I516188ea1c662c3277c64194c229a2e1c03a4e6a
* Code cleaningFabrice Di Meglio2014-07-231-1/+0
| | | | | | - remove those non usefull Intent.CATEGORY_LAUNCHER Change-Id: Ib6e5f4a5265633da85423307fac26a104814f05f
* Fix how Home Activities are refreshedFabrice Di Meglio2014-07-231-10/+35
| | | | | | | | | - remove that HomePackageReceiver from the AndroidManifest that could force Settings to run - use a HomePackageReceiver into HomeSettings and DashboardSummary - fix also the BatteryInfoReceiver for refreshing the Dashboard Change-Id: Id3891529fc176e7e4c450f2ce723f8ac2af66c58
* Remove old accounts tile, replaced by a separate screenAlexandra Gherghina2014-07-141-49/+6
| | | | | | Bug: 15815948 Bug: 15819268 Change-Id: I3b6978cff346c73cca1d6a2c209ffe4c71808244
* Update Dashboard layout againFabrice Di Meglio2014-06-231-3/+1
| | | | | | | | | | - follow UX spec - update also the Search Panels (suggestions / results) to follow the same specs See bug: #15384992 Setting Dashboard - padding updates Change-Id: I3d27a3b3d9779644f8ea123990a0c7bed8d4ba74
* Fix bug #15161058 Stability: ISE in Settings:Fragment ↵Fabrice Di Meglio2014-05-221-7/+12
| | | | | | | | DashboardSummary{588de71} not attached to Activity - prevent rebuilding the UI until the fragment got attached Change-Id: I6d5fcbce2581f3fc9900f1ca4fc8178ee959061e
* Optimize Dashboard loadingFabrice Di Meglio2014-05-221-0/+4
| | | | | | | - prevent loading categories twice - add some logging to see the time taken for building the Dashboard titles Change-Id: I31724c0e66fe3b453a87f12476f58db84c73423f
* Fix bug #15080198 Enabling developer options requires restart of settings to ↵Fabrice Di Meglio2014-05-191-4/+4
| | | | | | | | enter - fix Dashboard categories refresh issue Change-Id: I5bb7fc4a1410df8f5c2d2d13f7625a1ccc8893c3
* Fix bug 14990524 Add account does not refresh the list of accounts in the ↵Fabrice Di Meglio2014-05-151-2/+2
| | | | | | | | | Dashboard - unregister the OnAccountsUpdateListener in Fragment.onDestroy() instead of in Fragment.onStop() Change-Id: I07c92f85bb6efb34771d93158f00b60d93f4c90b
* First batch of new Quantum Theme assetsFabrice Di Meglio2014-05-141-1/+0
| | | | | | - needed for Quantum Theme support Change-Id: I90e8fdbb86a3cc5d5c209d4d345f6d423b2a1d5d
* Fix bug #14399525 settings crash on opening login error notificationFabrice Di Meglio2014-05-091-2/+9
| | | | | | - check if the account istener has been previously added or not Change-Id: Icfd111a406507ac520a396e44710a9d882f2ae4d
* Fix crash when adding accountAmith Yamasani2014-04-301-2/+2
| | | | | | | Remove the listener in onStop(), to be symmetrical with onStart(). Bug: 14393261 Change-Id: I5d4f0ca38d5ef52b97715b8f3791ff2a400c68e2
* Settings new dashboard - part 2Fabrice Di Meglio2014-04-251-11/+142
| | | | | | | | | | | | | | | | | | | | 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
* Settings - update for new UI (no more Drawer)Fabrice Di Meglio2014-03-281-313/+9
| | | | | | | | | | | | | | | | | | | - 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