After initiating a scroll while dragging an item on the home screen, don't flip
so quickly to the next page. Instead, require a bit of additional movement to
trigger the next scroll.
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
- explicitly keeping track of state in Workspace
- cancelling animations before starting new ones
- adding additional state variable for workspace for in-progress transitions
- updating Scroller object if we jump to a certain location
Change-Id: I5ddf51bae543ec89b2a44ab651d7269eb4859a6d
Merge commit '6a5f4d8526944ad4189072543ec4cc3f6d638b6f'
* commit '6a5f4d8526944ad4189072543ec4cc3f6d638b6f':
Adding more specific title for pick-application dialog.
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
-Added background outline fade in / out
-Modified the feel of scrolling: now using quintic
interpolator and modified the influence of
scroll velocity
Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781
Conflicts:
src/com/android/launcher2/CellLayout.java
- This prevents a particular crash where a widget that no longer exists is queried for it's app icon
Change-Id: I84b450d37c01d995bb249aae8cdf8e5c032883cf
-Added background outline fade in / out
-Modified the feel of scrolling: now using quintic
interpolator and modified the influence of
scroll velocity
Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781
Merge commit '4a79a04bcd5f8c4d4fab7bcc46eea9e19a3dc63e'
* commit '4a79a04bcd5f8c4d4fab7bcc46eea9e19a3dc63e':
When we're launching apps, we need to always use startActivitySafely.
It's possible that the app doesn't implement the component as promised, and the launcher shouldn't
crash.
Bug: 3005141
Change-Id: Ieac51433a467fd12160247bfd281828a69f5f7d2
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