- Ensuring all icons, even those that are pulled from our database cache, are always the correct size
- Solves bug where loading icon for shortcuts with missing activities on a GB->ICS upgrade caused uneven labels (Bug 5111191)
Change-Id: I4b8a97c3b0fa02fd189f82d0c01444f47fee2205
Note that this change is necessary because the launcher might
receive the PM broadcast before the SearchManagerService does.
Change-Id: I5a03e2fb16dee232a83d24b834ef6bd0eaabe774
- no longer reloading DB on each configuration change
- adding/updating items in DB on background thread
Change-Id: Ie140f31608df84b0ca2d45eb7a210a8a3b36b52f
-> Seamless* transition from dropping item onto another
to the creation of a folder containing those items
-> Seamless* transitions when adding the third item
to a folder
-> Cleaned up the code in FolderIcon in order to achieve
above
Change-Id: Iaf2519ac480acfdc928cc2b7585f28bc7d50bd23
We need to save the icon *after* we have loaded all the other information about it.
Also, add a check that if apps on SD aren't possible, don't even bother saving the icon. This saves
~200 ms on each run of the loader.
Bug: 3240615
Change-Id: Idc2329a868ab970b51deec341ffa8a47a344e110
Otherwise we can load widgets and other resources from the wrong Configuration.
This doesn't completely fix the bug, but it makes it much less likely. We tell
the launcher once at the beginning of starting a reload because of SD cards coming
back, and once when we bind.
cherry pick of I99ee6af38bef91e261832bad4dec978a5d4a8b3d
Bug: 3126698
Change-Id: I917bdb3982e3eea4924c6e9a8f3c037fd493f415
The pause is mostly notable when a sync is happening at the same time.
The related function addItemToDatabase() is unchanged by this CL
though as it populates item.id and would need more invasive changes
elsewhere.
Change-Id: I6538445aeb15d9efedf99f262c39f6175f7f1e0e
Merge commit '673aefe8b2b27790d704cc15282c8989a132877b'
* commit '673aefe8b2b27790d704cc15282c8989a132877b':
When the SD card comes back, we need to show the apps on it.
The problem was that we were doing startLoader, but once the
apps are loaded, all that does is re-bind everything. Before
a recent change of mine, we were clearing mWorkspaceLoaded and
mAllAppsLoaded. But that's not good either, because it meant
that there needed to be a lock that the main thread and the
worker thread were both acquiring, which was causing ANRs.
Instead, now we schedule two messages - one to add the apps
back into the list, and one to update everything to use
those new icons.
Bug: 3065061
Change-Id: If9d36d4b55a7ba72fcf48a5ed8941bb9466bebe6
Merge commit 'd98979b8147065878719cd2adb039317ba3abe0a'
* commit 'd98979b8147065878719cd2adb039317ba3abe0a':
Reload everything when coming back from the SD being unmounted.
We could do this more efficiently by only updating the packages that
have changed, but that would involve a big rewrite.
Bug: 3020854
Change-Id: Ie7e3bee20f45dc5efa93d960902e9dfb79c4a3a5
also:
- Long press on empty space on workspace now brings up customization tray
- Fixed: while dragging, items appeared to be dropping on folders two cells to the right
- Fixed: Disabling drops on folders when the workspace is shrunken
- Fixed: account for scaling of dragged items when checking if they overlap
with shrunken workspace screens
- Making folder icons dimmable to match shortcuts and widgets
- When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most
- Refactored drag/add mechanism, removing array of occupied cells from CellInfo
- Removed dead code/variables
Merge commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13'
* commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13':
Make LauncherModel.deleteItemFromDatabase write to disk async.
Adding pages for customization drawer with initial implementation of proposed flow
layout for widgets. Fixes for keeping all apps, and widgets in sync with Launcher
Model, optimizations for reloading all apps pages when invalidating. Adding some
animations for tab transitions and feedback when long pressing to add certain items.
Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e
This commit eliminates the notion of in-place rotations and a bunch of
associated complexities (including the notion of canonical coordinates).
Further, the number of x and y cells per workspace screen is now being stored
in a single location in the XML definition of Workspace. This fixes a couple
bugs where incorrect values were being used. Finally, eliminated the notion of
"shortAxis" and "longAxis" in terms of padding and cell count. These have been
translated to corresponding x and y axis values.
Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c