summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/dashboard
Commit message (Collapse)AuthorAgeFilesLines
* Settings: Wrap invocation on search view.Adnan Begovic2016-05-191-1/+3
| | | | | | | Exception thrown during monkey testing. Change-Id: I2f08df1e36c386aec0d57e3b6714cdbdd0f29246 TICKET: FEIJ-677
* Disable cellular networks settings menu if airplane mode is enabledLuis Vidal2016-05-122-1/+17
| | | | | | | | Cellular networks settings menu will be disabled if user enables airplane mode Change-Id: I83d78754918d50c02e19121ffcfb673bb1dc5797 TICKET: CYNGNOS-2697
* Settings: fix mobile network switch being uncheckedRoman Birg2015-12-161-23/+2
| | | | | | | | Sometimes when connected to Wifi, the mobile data switch gets checked off, even though mobile data is enabled. Change-Id: I4d28366f9c7aa63d20b215d39bdcb04f7b6e83dc Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: add switches for dashboard itemsRoman Birg2015-12-155-2/+324
| | | | | 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
* import new view enums into MetricsLoggerChris Wren2015-07-101-1/+1
| | | | | Bug: 21114836 Change-Id: I9a6e00ab8d85726ca6505a28ca7a52aef5aa1e1a
* Add action for search results including the countJason Monk2015-06-231-0/+2
| | | | | Bug: 20293458 Change-Id: I9d3f04fb74c0e978e69e17898b703e270298fcbc
* 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
* Merge "Fix crash in settings from incorrect parcelization"Jason Monk2015-04-151-1/+1
|\
| * Fix crash in settings from incorrect parcelizationJason Monk2015-04-151-1/+1
| | | | | | | | | | Bug: 20159614 Change-Id: Id7bf48f2337c8764a37b5f6ff836fbae4019c747
* | 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-272-3/+17
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Allow system apps to add to settings dashboardJason Monk2015-03-254-3/+60
| | | | | | | | | | | | | | | | | | | 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
* Settings: Remove all unused imports.John Spurlock2015-03-181-1/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* Fix bug #17526111 Keyboard should dismiss when Settings search query is ↵Fabrice Di Meglio2014-11-061-1/+2
| | | | | | | | | submitted - dismiss keyboard when the query is submitted by returning the correct value to onQueryTextSubmit() Change-Id: I3da0606ea7c5e65c860784a867a54ad30589b3a7
* 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 Search Suggestions and Results PanelFabrice Di Meglio2014-07-011-4/+0
| | | | | | | | | - fix overdraw use as less backgrounds as possible - make it look like the Dashboard with padding left and right See bug: #15384992 Setting Dashboard - padding updates Change-Id: I30ff33e51bc3c73e888d45f0ce6e16784eb6721c
* Fix bug #15827043 - Stability: CursorIndexOutOfBoundsException in Settings: ↵Fabrice Di Meglio2014-06-231-0/+6
| | | | | | | | | | | | Index -1 requested, with a size of 38 - ahhhh Monkeys, do not allow to have position < 0 Similar fix than the one done for: mSuggestionsListView.setOnItemClickListener(...) in I3a8ded4c1471a1589134826539c9db1b551f49dd Change-Id: I6ef266852e2c2ab5d0d0f6b4faf358b22d12bf6b
* Update Dashboard layout againFabrice Di Meglio2014-06-234-14/+28
| | | | | | | | | | - 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 #15611108 Stability: CursorIndexOutOfBoundsException in Settings: ↵Fabrice Di Meglio2014-06-131-0/+5
| | | | | | | | | | Index -1 requested, with a size of 1 - do not allow to have position < 0 A use case was generated by the Monkeys where they were capable to click on the Header. Change-Id: I3a8ded4c1471a1589134826539c9db1b551f49dd
* Tune Recents Search and Search ResultsFabrice Di Meglio2014-06-091-0/+11
| | | | | | | | | - add the capability to scroll recents and results with their header (old request from UX) See bug: #12910134 Implement Search into the Settings App Change-Id: If3c4a23b928b189803f2ef8e13a61746c2790b4b
* Fix bug #14499324 Label of the "Language & input " page doesn't get updatedFabrice Di Meglio2014-06-092-2/+2
| | | | | | | | ...as per the newly selected language - use also title resource id when possible Change-Id: Ibeb95d605cd79910c18f4529b749645c9ed0fc17
* Do not show the Preference summary in Search resultsFabrice Di Meglio2014-06-051-28/+0
| | | | | | | | | - as the summary was sometimes showing "Unknown" or even not the real Preference value (we dont have right now the capability to know the current value of a Preference), so it is better to be safe than sorry. Change-Id: I009c31fc41ad35a630f4b34aa0ef998932f65263
* Tune Search Results layoutFabrice Di Meglio2014-06-031-6/+11
| | | | | | | | - make the summary view as GONE when its text is empty See bug: #12910134 Implement Search into the Settings App Change-Id: Iafd680706b937137eaa30692e1c57a77cb5d7fc8
* DO NOT MERGE: Fix bug #15161058 Stability: ISE in Settings:Fragment ↵Fabrice Di Meglio2014-05-271-7/+12
| | | | | | | | | DashboardSummary{588de71} not attached to Activity - prevent rebuilding the UI until the fragment got attached Change-Id: I6d5fcbce2581f3fc9900f1ca4fc8178ee959061e (cherry picked from commit 53d76860a53c1463d182d4f3d28ce8e9f48454f3)
* DO NOT MERGE: Optimize Dashboard loadingFabrice Di Meglio2014-05-271-0/+4
| | | | | | | | - prevent loading categories twice - add some logging to see the time taken for building the Dashboard titles Change-Id: I31724c0e66fe3b453a87f12476f58db84c73423f (cherry picked from commit b644f29313c086806d1ba5ad3db8ac36d2bf3c4f)
* Update Search recents behaviorFabrice Di Meglio2014-05-231-29/+30
| | | | | | | | | | | | | - per UX request - Search recents show now by defaults with the recent searches when the SearchView is empty - when we press on a Serach recent, we are showing the Search results and the recents are disappearing - when keying text in the SearchView, we hide the recents and start showing the results - we still save the Search query when hitting on a result Change-Id: I6c2be21660a30f6973dea27d4852b2068a05963d
* 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
* Update Search results layoutFabrice Di Meglio2014-05-191-0/+4
| | | | | | See bug: #13140648 Settings needs to support the new Quantum Paper theme Change-Id: If3174fee563ef204eb939576e4c7ef4d986735e3
* 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-142-2/+0
| | | | | | - needed for Quantum Theme support Change-Id: I90e8fdbb86a3cc5d5c209d4d345f6d423b2a1d5d
* Code cleaning: remove all remaining references to the old Header classFabrice Di Meglio2014-05-131-177/+0
| | | | | | - goodbye Header(s) ! Change-Id: Ied27f1f01dbed9c51cc74d28800d9ca7cab47d5a
* Fix bug #14323469 Settings crash on selecting keyword from recent searchesFabrice Di Meglio2014-05-121-3/+38
| | | | | | | | | | | ... after changing orientation - set the SearchView for the SearchResultsFragment when the SearchView is instantiated in the onCreateOptionsMenu(Menu) - take care of the correct showing of the Recent Searched (suggestions) Change-Id: Idfa17436d4a2436e0947ce1e1692355def3821a3
* 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
* Add touch feedback and focus on Dashboard tilesFabrice Di Meglio2014-05-091-0/+2
| | | | | | | - use a touch-feedback background - declare DashboardTileView as focusable Change-Id: I67ae19cd20374e531660232034528c995f595900
* Merge "Add a CREATOR in DashboardCategory to support Parcelable"Amith Yamasani2014-05-011-0/+15
|\
| * Add a CREATOR in DashboardCategory to support ParcelableAmith Yamasani2014-05-011-0/+15
| | | | | | | | | | Bug: 14410901 Change-Id: I52f85e8d4254caf1a3d0c26bf1805580f78fba99
* | 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-255-286/+370
| | | | | | | | | | | | | | | | | | | | 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 new dashboard - part 1Fabrice Di Meglio2014-04-242-0/+307
| | | | | | | | - make the Settings dashboard definition be hierarchical (non flat) and use categories and tiles - code cleaning: remove mHeaderIndexMap Change-Id: I16581a736ac5c8388a182d83159161fe3bb04f4b
* Add saved Search queries featureFabrice Di Meglio2014-04-231-63/+222
| | | | | | | | | | | | - update SearchResultsSummary fragment to have two lists: one for Search suggestions (saved queries) and one for Search results - a tap on a saved query will launch that Search query - show the list of saved queries when tapping on the SearchView - do some fancy hidding / unhidding of the saved queries list and results list Change-Id: If15055ab78b0ec5eef4e543173dc7b866bd08e27
* Save Search queriesFabrice Di Meglio2014-04-211-3/+63
| | | | | | | | | | - update database model for adding a table for saving a query and its timestamp - update database version - save the query when the User tap on a Search result - remove old queries (no more than 5 are saved) Change-Id: I4ddff0ad660944c7fd53be64ac95397850dc60d0
* Remove non needed code for HeaderAdapterFabrice Di Meglio2014-04-211-10/+0
| | | | | | | | | | | | - before, we were showing a Swich for WiFi and Bluetooth entries in the Headers. As this is no more the case, remove the code that is no more usefull. - as a side effect, we are also removing the call to update the Search Index that was running when the Settings app was resuming or pausing. Change-Id: I26b40df5c7a664d196a249840638d89909b6bc24
* 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