summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
Commit message (Collapse)AuthorAgeFilesLines
* Move icons to fit within Dynamic grid upon resize.cretin452016-05-201-7/+48
| | | | | | | | | | Missed part of this patch during forward port: https://github.com/CyanogenMod/android_packages_apps_Trebuchet/commit/e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58 Issue-id: CYNGNOS-2908 Change-Id: I49fb4e4a1b86d41be263d4f9b84020450f54d3f9 (cherry picked from commit dccaadbe194f435d7bc06843650ab7d4fe21551c)
* Trebuchet: Index folder contents screen and cells on first loadcretin452016-05-101-3/+34
| | | | | | | Issue-id: CYNGNOS-2755 Change-Id: I260d1b098e7759a0134bc40f892b8783452c9528 (cherry picked from commit 499902463bb16aad036a57b9e02b34cb74548acf)
* Show apps as unavailable when on unmounted storaged34d2016-03-151-8/+50
| | | | | | | | | | | This patch allows shortcuts to apps that are currently unavailable due to being on unmounted external storage to remain on the workspace and in folders. The icons will be disabled and grayed out until the external storage is mounted. Issue-id: CYNGNOS-1344 Change-Id: I971483806b27e3a75ef0d5bb89d8dfb86f97511e
* Trebuchet: Guard against NPE while querying for widget updatescretin452016-03-081-2/+5
| | | | | | Issue-id: CYNGNOS-1867 Change-Id: I43db0096da5f35bd2810f8793d8281607afea1ff
* Prevent finalizing of remote folderArtem Shvadskiy2016-02-091-1/+3
| | | | | | Change-Id: I69872c917e710e93db38891817a509c7a3e65e63 issue-id: CYNGNOS-1948 issue-id: CYNGNOS-1951
* Port Remote Folder from 12.1 to 13.Tyson Miller2016-01-281-3/+42
| | | | Change-Id: If8cf9d5f054e8948ead702883b79f28db26c4d8b
* Trebuchet: Fix some monkey test race condition bugscretin452016-01-131-16/+16
| | | | | | Issue-id: CYNGNOS-1587 Change-Id: I45ead8cfbd7fab3a9ae62f878a160a696c411e75
* Trebuchet Statistics:Martin Brabham2016-01-041-3/+34
| | | | | | | | | | | | | | | | | | | - Add plumbing for sending events. - Add aggregation service that runs on some interval - Hook send events into respective UX interactions Change-Id: I77ba0ab75daf845621d800e0adf3e658096926af Trebuchet: send metrics values as strings - Also refer to the declared intent Change-Id: I3c99cc071aa2f4241ea8d3e6d2e8683f1f748e7d Signed-off-by: Roman Birg <roman@cyngn.com> Stop unnecessary exception posting to logcat. Change-Id: I4f741246dc2ee77b24c3bb94075e12535fcd7ead
* Reimplement CM Settings Overview Panel Part 4Yvonne Wong2015-12-081-0/+109
| | | | | | | - Enable protected apps and update workspace/app drawer/widgets view when protected apps change - Change reload launcher to happen after each setting toggle to reduce UI lag Change-Id: I0a4a4a077c3cb94eaccfb4e8c4213135cb99d57e
* Reimplement CM Settings Overview Panel Part 3Yvonne Wong2015-12-031-18/+85
| | | | | | - Enable dynamic grid resizing Change-Id: I95a7f20da48e037a94ce5b6191c5597490d91d9d
* Re-Implementation of hidden foldersVineet Patil2015-11-301-0/+31
| | | | Change-Id: I2cdb881eb6a2608279d30a1cdfc1327a89ae7693
* Reimplement CM Settings Overview Panel in the new Launcher Part 1Yvonne Wong2015-11-301-0/+1
| | | | | | | | | - Adds vertical sliding panel and animations associated with opening and closing the panel - Adds the views for settings and animation for the drawer arrow - Enables hiding workspace icon labels, hiding drawer icon labels, scrolling wallpaper, and larger icons - Changes how ragged grid custom icon sizes gets defined Change-Id: I1a82215a09486b4770494e665e598efdbabd1d3e
* Removing items which are on invalid screenSunny Goyal2015-09-041-12/+19
| | | | | Bug: 23804751 Change-Id: If26a6b201aa6127cfd2a08fc4b408a27d6329bad
* Fixing work folder addition logicSunny Goyal2015-08-201-42/+36
| | | | | | | | | | | > Showing animation when folder is added > Not showing animation while cling is visible > Checking is loader completed from UI thread > Running bind complete runnables when bind is completed Bug: 21772992 Bug: 23181585 Change-Id: I50742850da8294a877478ce02b107a026f68b563
* Merge "Disabling auto restore of widgets. > Always show "Setup" button for ↵Sunny Goyal2015-08-141-1/+7
|\ | | | | | | a widget which has a config activity." into ub-launcher3-burnaby
| * Disabling auto restore of widgets.Sunny Goyal2015-08-141-1/+7
| | | | | | | | | | | | | | > Always show "Setup" button for a widget which has a config activity. Bug: 23155863 Change-Id: I60683889e76be830a76ac1245e079574aaf0ad10
* | Merge "Refreshing widget list when a package containing a widget changes" ↵Sunny Goyal2015-08-131-11/+38
|\ \ | |/ |/| | | into ub-launcher3-burnaby
| * Refreshing widget list when a package containing a widget changesSunny Goyal2015-08-111-11/+38
| | | | | | | | | | Bug: 20698931 Change-Id: I50bafac1fc0a855edb1ace633a8a6f87a5c3040e
* | Disabling home screen migration logicSunny Goyal2015-08-111-2/+1
|/ | | | Change-Id: I506948852945bfb8ebd7a95fc951880ffe9a3e17
* Creating a cache of users to avoid multiple calls to UserManagerSunny Goyal2015-08-041-0/+1
| | | | | Bug: 22805101 Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
* Loading high resolution icons for first 3 items in a folderSunny Goyal2015-08-041-0/+15
| | | | | | | | | > Sometimes a folder gets rearranged, without updating the model, like when an app in uninstalled. In that case, we need to update the icons for folder items, which were previously hidden Bug: 22813360 Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
* Merge "Remove handler for searchables changed broadcast." into ↵Winson Chung2015-08-031-4/+3
|\ | | | | | | ub-launcher3-burnaby
| * Remove handler for searchables changed broadcast.Winson Chung2015-08-031-4/+3
| | | | | | Bug: 22515084
* | Enabling logging for migration taskSunny Goyal2015-07-311-1/+4
| | | | | | | | | | Bug: 22353460 Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
* | Homescreen migration from a larger grid to a smaller grid.Sunny Goyal2015-07-311-2/+20
|/ | | | | | | | | | | | Adding support for restoring from a larger device, if the grid size difference is not more that 1. During restore add all the items in the DB, and run a one-time migration the next time launcher starts. The migration strategy is defined in ShrinkWorkspaceTask.java which involves resizing, moving and removing some items. Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
* Fixing widget restoreSunny Goyal2015-07-201-2/+8
| | | | | | | | > Widget restore active flag was not cleared when the app was downloaded > Icon from session info was not getting cached Bug: 22413379 Change-Id: Ie096b929252200675a76dadd8c25cc3aa433671b
* Fixing AppWidgetInfo not initialized with proper userSunny Goyal2015-07-151-0/+1
| | | | | Bug: 21673750 Change-Id: I1e03c3cb10a87e394e963cc2001c9c1c293eb2ca
* Fixing shortcuts not getting migrated to app iconsSunny Goyal2015-07-131-3/+3
| | | | | Bug: 22410445 Change-Id: I939c59270529daf51638aa30b30763c18a2ce6a5
* Fixing backup restoreSunny Goyal2015-06-251-59/+54
| | | | | | | | | | | | | | | > Not deleting icons from cache, which have not been restored yet > Not checking if activity exists during DB migration. Missing components are removed during loader anyway > Backing up and restoring bitmaps even when iconType is resource. This allows us to show a proper bitmap icon, until the correct resource is available. > Loading proper shortcutResource icon for promiseIcons > Checking against promise intent when verifying duplicates > A launcher App intent can contain EXTRA_PROFILE Bug: 22094970 Change-Id: I982971338846733833ec133119393af0bea0eb08
* Cancelling launcher reload on mcc changeSunny Goyal2015-06-181-19/+0
| | | | | Bug: 21022833 Change-Id: Iccd477e7b1638d162e1a500cdb7a52b8d359c657
* Merge "Widgets model should respect AppFilter." into ub-launcher3-burnabyHyunyoung Song2015-06-181-7/+7
|\
| * Widgets model should respect AppFilter.Hyunyoung Song2015-06-171-7/+7
| | | | | | | | | | | | | | | | | | > This pattern is already used in AllAppsList > mBgWidgetsModel variable cleanup inside LauncherModel. b/21739736 Change-Id: I03a05064ce3c3e5effb09055af9f4d4de2811c95
* | Deleting empty folders based on DB stateSunny Goyal2015-06-121-56/+21
|/ | | | | | | | | > Previously folders were getting deleted based on in-memory loader state. If for some reason, an item failed to load, we would delete the folder from DB as well. Bug: 21354058 Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b
* Catch TransactionTooLargeException when loading widget provider listHyunyoung Song2015-06-081-19/+44
| | | | | | | b/19904873 Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3 Note: fix for almonte will be separate due to diff btw the branches..
* Code cleanupSunny Goyal2015-06-051-7/+0
| | | | | | | | > Removing obsolete logging > Removing unused methods > Removing resource leak warning due to non-static handler class in launcher Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
* Updating widget list when iconCache updatesSunny Goyal2015-06-041-0/+3
| | | | | | | | | > Fixing bug where items were not getting removed from the memcache > Fixing bug where package entries were not getting removing because of component mismatch. Bug: 21612532 Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02
* Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-4/+5
| | | | | | | | | > Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
* Removing some synthetic method creationSunny Goyal2015-06-021-2/+2
| | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* Merge "Fix widget tray crash on screen rotation introduced by ag/694693" ↵Hyunyoung Song2015-05-221-4/+8
|\ | | | | | | into ub-launcher3-burnaby
| * Fix widget tray crash on screen rotation introduced byHyunyoung Song2015-05-221-4/+8
| | | | | | | | | | | | | | | | ag/694693 b/21402209 Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d
* | Refactoring DeviceProfileAdam Cohen2015-05-211-28/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* | Icons are not updated to TYPE_APPLICATION during restoreSunny Goyal2015-05-211-3/+3
| | | | | | | | | | | | | | | | | | | | > Use low res only for app shortcuts > Running icon migration after restore > Running icon migration again for all users > Deduping shortcuts added from widget tray Bug: 20945600 Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
* | Merge "Breaking icon update task so that it doesn't block worker thread" ↵Sunny Goyal2015-05-211-61/+51
|\ \ | | | | | | | | | into ub-launcher3-burnaby
| * | Breaking icon update task so that it doesn't block worker threadSunny Goyal2015-05-211-61/+51
| | | | | | | | | | | | | | | Bug: 20945600 Change-Id: Iaf516577898b51ad6e8a813d7f018ecad969c100
* | | Merge "Load PackageItemInfo in background thread to prevent ANR" into ↵Hyunyoung Song2015-05-211-6/+10
|\ \ \ | | |/ | |/| | | | ub-launcher3-burnaby
| * | Load PackageItemInfo in background thread to prevent ANRHyunyoung Song2015-05-211-6/+10
| |/ | | | | | | | | | | | | | | | | | | | | - Decoupled widget model from widget view, and placed the creation to LauncherModel. - As a result packagemanager operation, iconcache retrieval is all done inside LauncherModel on background thread b/21311085 b/21325319 Change-Id: I294698527db58b89f3da558090a367530c058776
* / Do not trim folder titleSunny Goyal2015-05-211-2/+4
|/ | | | | Bug: 21297281 Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86
* Merge "Moving LauncherAccessibilityDelegate to accessibility package" into ↵Sunny Goyal2015-05-201-2/+2
|\ | | | | | | ub-launcher3-burnaby
| * Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-2/+2
| | | | | | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* | Unify sorting between all apps and widget trayHyunyoung Song2015-05-191-34/+0
|/ | | | | | | | | | | | | | | | | - selected locale names are shown before latin - case independent sorting - main app > enterprise app Future possible refactoring: - Move all the *ItemInfo data structures to model package - Rename the comparator based on NOT what data structure it supports but what functionality it supports (locale? case independent? main app > enterprise app?) b/21271658 b/20339403 Change-Id: I8a776467392e21d5014e85cd3f51931a3ef89724