History log of /packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0270039b98ec2cb4e641c88dabea0ca157d55596 12-May-2017 Tony Wickham <twickham@google.com> Accessibility fixes for moving items

- Don't open popup when using "move item" action
- Don't announce "Item moved" if dropping on original cell

Bug: 33501751
Change-Id: I7236cd51fc00c357a1d7597e2fcb68c3a7c16b0b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
aa6f66aad29171bda85e0633c93530beefdac307 09-May-2017 Jon Miranda <jonmiranda@google.com> Fix bug where deep shortcut drag view target was skewed to the right.

Bug: 38140665
Change-Id: I9386bf70cf51b6be33264f85cbfe9e8049d0c32e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1237df0a7cb89570b90b30fa30a3c76417ce3b64 24-Feb-2017 Tony Wickham <twickham@google.com> Update icon badges to match spec

- Size defined as percentage of app icon size
- Width changes when there are 2 or 3 digits (round rect)
- Offset slightly away from the app icon
- Had to move drawing to BubbleTextView instead of
FastBitmapDrawable
- Hide badge when dragging and while popup is open
- Tweaks for some color/text parameters

Bug: 35744066
Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b07a355fe24d70b4affbe2afaf74a8568b2e0e08 27-Feb-2017 Louis Begin <w15621@motorola.com> Add checks for FeatureFlags.QSB_ON_FIRST_SCREEN

When false, it correctly does not show the QSB but leaves
a default style search bar which cannot be removed.

Add checks to control default view visibility in device
profile layout & re-layout, QSB container and in
Workspace's onMeasure

Bug: 35967694

Change-Id: I3d0f89e1022d838eeb95762fd1fb3f7257956c41
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
608d0dba8717326319800a78cfa85f3ad08b9549 28-Feb-2017 Jon Miranda <jonmiranda@google.com> Close Folder before doing any automatic updates.

We already close the Folder when Work Profile apps are
auto added to the Work Profile Folder. This change extends that
functionality to when apps are being auto removed from the
Work Profile Folder.

Bug: 35845161
Change-Id: I2aa6a6a0ed28a95f6a59a549430f91482583548b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
93bc3c1e41b45d0a331db2589fd4c6a731cb591d 16-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Separating methods for updating the model to a sepatate class." into ub-launcher3-master
43bf11d9c95f76c2dfeb625b23cb458df81252b3 02-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Separating methods for updating the model to a sepatate class.

Removing static access to model update methods, to allow for better
access control and testing

Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1e61849bc729858f3fd0c0a1f31b15ef06cffdc3 02-Feb-2017 Tony Wickham <twickham@google.com> Animate badges when they are added or removed

- Scale the badge and text or icon up or down, respectively.
- Only animate if the badge is visible, and don't animate when
applying shortcut or app info.
- Animate folder badge out when folder enters accepting state.

Bug: 34838365
Bug: 32410600
Change-Id: Ie60cb1fc54fe60d72734d833040545d27660d645
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
11ba507eab83f591b924ae42d42fa47073b78917 02-Feb-2017 Tony Wickham <twickham@google.com> Add badges to folders

- The folder badge contains the sum of the badge counts within.
- This is represented by FolderBadgeInfo, a subclass of BadgeInfo.

Bug: 34828806
Bug: 32410600
Change-Id: I977a69cc7baf80a7207af9adf98dddb0a3509c47
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
96ac68a481ce5b794b5227e09ace7c30d6dd5e7b 03-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Updating the PreloadIconDrawable

> The drawable gets the path from MaskIconDrawable path, instead of
using a circle
> The progress changes are animated as well

Bug: 34831873
Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
18a1b5da360fcd9b371bea2a9cbd06085c698d8c 02-Feb-2017 Tony Wickham <twickham@google.com> Gracefully ignore items that don't support notifications

PackageUserKey is only meant to be used for items that support
notifications, so when trying to update it for an item that
doesn't, we don't use it to check if the item has notifications.

This fixes a crash that happens when trying to update notifications
for a legacy shortcut, as such a shortcut doesn't have a component
on its intent, which we were trying to use to populate PackageUserKey.

Bug: 34842278
Change-Id: I8c69ccebbf9d93505d5b29ecd25d76c65610ddc4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5a2edd65f2ca3d83b1672835831e2f5b2f16ab82 31-Jan-2017 Mario Bertschler <bmario@google.com> Fixes a bug where the workspace doesn't properly enter into freescroll mode
hence the overscroll will appear and you can wrongly enter into the -1 screen.

The problem was that the state value in the workspace was set after enabling
free scroll, but enabling free scroll checks the current state for validation.

This bug was introduced by Icc3005fd431569e2b9e3f52d2249de8ba8d13eab.

Bug: 34817798
Change-Id: I46802c93c49a2ae8ee5c40ef24e465d7fe63c4bb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dec3a908bfa395095e80e4a532cff98612b624de 26-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Updating the preview generation logic so that it aligns better with
the drag source image

> Using common code for pending item drag (WidgetContainerView and PinItemDragListener)
> Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut
directly. Previously the multi-window drop was routing through onActivityResult which
was causing some state information to be lost.

Bug: 33584624
Change-Id: I0259870032185713caa9bff27092dbae6ce91199
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
540913eadf39f1e8632d2b6f0bc33aa635214198 23-Jan-2017 Tony Wickham <twickham@google.com> Refactor DeepShortcutsContainer to PopupContainerWithArrow

- Also added PopupItemView, which takes animation logic from
DeepShortcutView, and which DeepShortcutView now extends.
- Renamed ShortcutFilter to PopupPopulator, which has support
for new item types (not yet used). Also moved populating
logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator.

Bug: 32410600
Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
010d2550184179785e4467ff1ffb4f4f4e850ec2 20-Jan-2017 Tony Wickham <twickham@google.com> Add NotificationListener to launcher.

- NotificationListener extends NotificationListenerService, and is
added to the manifest.
- Added PopupDataProvider, which contains logic for storing and
interacting with data that goes into the long-press popup menu
(shortcuts and notifications). A follow-up CL will rename
DeepShortcutsContainer to a generic PopupContainerWithArrow.
- If Launcher has notification access, NotificationListener will
get callbacks when notifications are posted and removed; upon
receiving these callbacks, NotificationListener passes them to
PopupDataProvider via a NotificationsChangedListener interface.
- Upon receiving the changed notifications, PopupDataProvider maps
them to the corresponding package/user and tells launcher to
update relevant icons on the workspace and all apps.

This is guarded by FeatureFlags.BADGE_ICONS.

Bug: 32410600
Change-Id: I59aeb31a7f92399c9c4b831ab551e51e13f44f5c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
197f97bde4368e79b9475749560ab668a29fc552 18-Jan-2017 Tony Wickham <twickham@google.com> Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ub-launcher3-master
9a8d11f930ced4c2706db150b7bbbb21330bd68d 11-Jan-2017 Tony Wickham <twickham@google.com> FastBitmapDrawable can draw an icon badge (notification count)

- Added BadgeInfo to contain data to be shown in a badge
(currently just notification count).
- Added BadgeRenderer in DeviceProfile to contain things
relevant to drawing the badge, such as size and Paint's.
- Added IconPalette to compute colors for the badge based
on a dominant color (will also be used for notifications)
- FastBitmapDrawable uses these classes to draw the badge.

Bug: 32410600
Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
87f784c285fdeed9091a4de8b9b44db3eca677d8 11-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Removing static Context access using LauncherAppState

> This ensures that LauncherAppState is only accessed in the presence of
a valid context

Bug: 33032833
Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
76dbf6fafd73d67b9987b53a2544abddb03c5ca7 03-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Fixing onPageBeginTransition not being called when scrolling overlay

Bug: 33693546
Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
83d40e0608cdb93b0c60da92527391c1dc4e3593 30-Dec-2016 Mario Bertschler <bmario@google.com> Merge "Fixes a bug where the user ends in freescroll state even for regular workspace mode." into ub-launcher3-master
c6b833dcbbbcfbca577705f69cfad1259c88b6e2 29-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Removing all compatibility code below Lollipop" into ub-launcher3-master
dcc26fc69362c8b7a29dab75fc5df767d6edbf31 21-Dec-2016 Mario Bertschler <bmario@google.com> Fixes a bug where the user ends in freescroll state even for regular workspace mode.

The bug happened while reordering pages in overview mode and clicking the back button.
The fix is to check the precodition in enableFreeScroll if we are in a valid state for enabling freescroll (currently only overview mode).

Bug: 33347786
Change-Id: Icc3005fd431569e2b9e3f52d2249de8ba8d13eab
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c9c57631a985a8e1a4eac17ef0952bd344e281a2 13-Oct-2016 Jon Miranda <jonmiranda@google.com> Fix clipping of drag outline by increasing padding.

Low resolution will be addressed in future CL.

Bug: 31915722
Change-Id: I6bdd32b7a30819fde1f15473a63ac280029b6715
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a52ecb0390c85afb385371bb844bb496c59ddf87 17-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
aecb7cf97c822fd1fd3df2a366618f9d7a2ba579 15-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Updating edge scrolling logic during drag and drop

Activating scroll to left when the either the visualCenter or the touchX
enters the left screen first or right screen.
Previously only the touch point was being considered to activating the scroll
zone. But visual center is used everywhere else for actual drop location. So
depending on the touch point relative to the picked icon, the touch zone could
seem smaller or larger.
Using both points (touch and visualCenter) will increase the scroll zone area
with minimal effect on the drop location calculation.

Bug: 31946075
Change-Id: I4eb5146c0f0a05e8d024313d67f8e040e0b29dec
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7c74e4ae641e76f73d74348e293c244a157f6585 16-Dec-2016 Sunny Goyal <sunnygoyal@google.com> No more UserHandleCompat

Bug: 32745285
Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
338dee9dd7a7b087bf182f16970c16ffd940b435 16-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-master
99d814e54b28efc8c8d8d6dec4bb036a380c3c3f 15-Dec-2016 Jonathan Miranda <jonmiranda@google.com> Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-master
6f6a06ac470df4f58a6eea902b79a8813c44c8f7 15-Dec-2016 Jon Miranda <jonmiranda@google.com> Restore original scaleRectAboutCenter method.

Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6c46a6d324310bd2fc0ea223c9782ba6394512e7 22-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Using java_style enum generation for proto

This makes it easier to track various method parameters and simplifies
debug logging

Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f5440cbd6c0525769d24b890e16313a728831e04 15-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logic

Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e96798e885e3ac97b6de0a1c598eb09cf62349af 07-Dec-2016 Jon Miranda <jonmiranda@google.com> Smooth animation when dropping a widget in multi-window mode.

Factored in app widget scaling in methods related to estimating
widget size and positions.
ie. Dropping a widget that needs to be resized to fit in the
workspace.

Bug: 32176631
Change-Id: I106fe12041565a090047f146a07d4bc80a074b4a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0f76b56865bd7b63bd21d53aaac47300396aa38f 14-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring FlingToDelete

> Moving all fling related logic to FlingToDeleteHelper from DragController
> Removing fling related methods from DragSource and DropTarget
> Moving fling animation logic from DeleteDropTarget to FlingAnimation
> Simplifying DropTargetBar to directly look for all valid drop targets.
This makes it easier to add new DropTarget in xml.

Change-Id: I7214d2d30c907ab93c80d92d9f9be6dda2d63354
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1cd01b023acc123b771765b7297d8aaedac224e0 09-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Ensuring that ShortcutInfo always has an icon

> Making iconBitmap public instead of a getter (similar to AppInfo)
> Removing getIcon() which can lead to IO on UI thread
> Removing updateIcon and handling the update at the caller

Bug: 21325319
Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
72537e44f6c2d2adebe7009cfd1bfa8850049100 12-Dec-2016 Tony Wickham <twickham@google.com> Merge "Move icon back to original cell if a quick drag would cause reorder." into ub-launcher3-master
2a2b1ad8fd59f2ee9af3403ac79402bd68cc16a1 12-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Lower the transition threshold for dropping on Workspace." into ub-launcher3-master
251ab6e8476aafe3627b0d9025cd5a7c70128f10 03-Dec-2016 Tony Wickham <twickham@google.com> Lower the transition threshold for dropping on Workspace.

Old threshold: 0.5f
New threshold: 0.25f

The threshold is used when dragging to Workspace from any
drag source other than Workspace, including Hotseat. This
lowered threshold is more forgiving for faster drags.

Bug: 33210055
Change-Id: Ic121fb4b7caa3ea66abb48a8a3f3bd36f3365749
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0c7852f822497a2189bb6fb778cc14ea776f6fe6 02-Dec-2016 Tony Wickham <twickham@google.com> Allow long-press on workspace immediately after dropping.

Previously the touch was consumed until the transition from
spring-loaded to normal workspace finished, leading long
presses to trigger on the background rather than on apps.
This made it difficult to move multiple icons consecutively.

Bug: 29631912
Change-Id: I259e618c81f56bc40d08a5d63ddbbf3c82a76baf
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
72169102dbc0ab57802db1720cf325a57c19f930 08-Dec-2016 Jonathan Miranda <jonmiranda@google.com> Merge "Scale widgets when dragging and dropping in multi-window mode." into ub-launcher3-master
f7ff3fe58a5daea94cbb641aa09a0eb4a5d2f8c3 05-Dec-2016 Jon Miranda <jonmiranda@google.com> Scale widgets when dragging and dropping in multi-window mode.

This change mimics the non-MW mode behavior when dragging and
dropping widgets by taking the app widget scale into consideration.
This ensures a consistant drag and drop experience between
MW mode and non-MW mode.

* Uses cell data (cell height/width, spanX/Y) to get the expected
widget sizes.
* Scales sizes when necessary.

Bug: 32176631
Change-Id: Icdaf73ecd89a30e57fe7f405292d793f2d6a3ee8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d5462aa31b53eb690a3f57c7c6c0cc4021271de6 22-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Simplifyling widget inflation and addition flow.

> Removing insert parameter used to select the index of the view.
ShortcutAndWidgetContainer no longet relies on the index and instead
uses x and y to refer a particulat view.
> Creating helper methods to easily insert the icon by passing ItemInfo
directly. LauncherModel.addItemToDatabase synchronously updates the
ItemInfo with proper postion information. So we can directly use the
info instead of passing each parameter separately.

Bug: 32904959

Change-Id: I021c1b818f2f42604b95a6970e06aacc7211292a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5dc7435b3352ab6f5645a2450290ed317bf1b054 07-Dec-2016 Tony Wickham <twickham@google.com> Move icon back to original cell if a quick drag would cause reorder.

Most likely the user accidentally dragged the icon, so let's not
rearrange their home screen.

Bug: 30378199
Change-Id: I815a0817bca3b0d212324a58842b1f59dfdf0b91
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4633be64e863a96c63f814a2386b23b02d43910b 07-Dec-2016 Tony Wickham <twickham@google.com> Fix for mTransitionProgress not being updated throughout animation.

Change-Id: I8f792794b7bc6edff081383b5a0a74af04a744ad
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
feba90fe802cb54e02dd961dbea265c044ad5f9e 06-Oct-2016 Jon Miranda <jonmiranda@google.com> Added logging for HOME_INTENT and BACK commands.

Document: go/false-longpress-overview

Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0860e41d50ec2fbb16119fd364e36251b04932eb 21-Nov-2016 Hyunyoung Song <hyunyoungs@google.com> Add logging for workspace rearrangement in overview mode
am: 0d4899026c

Change-Id: Ie6569ecafdd63981e167a910f852a8133697ae81
db2fa049a61e22c16fa63f5390ab5b67f492f004 18-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Moving saving state transtion listener logic to individual views" into ub-launcher3-master
0d4899026c16f7e830cfe32c717951e8bb494c84 17-Nov-2016 Hyunyoung Song <hyunyoungs@google.com> Add logging for workspace rearrangement in overview mode

b/32457561

Change-Id: Ic38fbd540616a74f26c19a09ab4247fe8f9174b4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
075b8788427729ab144b79fdc3e3739ecab8ecda 15-Nov-2016 Tony Wickham <twickham@google.com> Merge "Animate icons back to where they were picked up." into ub-launcher3-master
db364379312e56a3a3905a54d0de783062a92a73 27-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Moving saving state transtion listener logic to individual views

Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c48a89e59cc1b874b86590b180ef3fd96d26eac2 07-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Calling buildLayer only on views which are actually visible" into ub-launcher3-master
ea62fe0be19c54f8fbb434c6334418b96626f70d 05-Oct-2016 Tony Wickham <twickham@google.com> Animate icons back to where they were picked up.

We do this for pre-dragged icons instead of calling onDrop().
- Removes need for special logic in onDrop() to check if mIsInPreDrag
- Dropping from pre-drag in all apps also animates instead of jumping

We also do this when dropping an icon while still transitioning
to spring-loaded mode, to avoid having a janky jump at the end
- Bug: 27135377

Change-Id: I4548c3e2fef3423d1ba36057fb53807b1b4ad0fc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
cce078099c03a2177f9ecba5e221a874ca10f5a4 01-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Fixing screen center not getting calculated properly

Bug: 32578597
Change-Id: Icdf5dc2d82eab3d90b380736d7256ca2d9b2df2e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
968c283f22201c27249fa1ce4c39e49876475519 27-Oct-2016 Tony Wickham <twickham@google.com> Merge "Restore mDragInfo when deferring onDropComplete() for uninstall." into ub-launcher3-master
b5e65c8bd3785409d4aeda21f2c88e75c9e22c9f 27-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Calling buildLayer only on views which are actually visible

> Creating a common listener for handling buildLayer logic

Bug: 30138067
Change-Id: I803ef78b48e07e5ae5922e0392d390f274a87d75
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9ccafbff26f5835ab9725d876d1bf7ccd08ccf84 26-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing custom dispatchDraw logic and letting the system handle
selecting appropriate children for drawing.

> System already skips children which are outside the bounds. Originally
this logic was added because workspace layout is larger than the screen, and
we need to selectivly skip more children. But over time we have added many
special conditions and at present workspace actually draws more children than
needed at any given time.
> Fixing bug, where onBeginPageMoving was getting called during folder open

Bug: 12116740
Change-Id: Idee18ee9cd9d348ebc4dfd82f4ff6df14e0d22d2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
35fe7be54e4c9b47598130f5234ea96c4dc16229 26-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing some deprecated code around page layers

1) setChildrenDrawnWithCacheEnabled: deprecated
2) Removing custom logic based on isHardwareAccelerated. This check was not being
used consistantly everywhere

Bug: 29761236
Change-Id: Ic4a9c764f154497e376e37de2351fe04d1b48500
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4feb27e6b1b548be7ed8abd7d76fd4d8d5dcfa6e 26-Oct-2016 Tony Wickham <twickham@google.com> Restore mDragInfo when deferring onDropComplete() for uninstall.

We moved mDragInfo = null to onDragEnd() since onDropComplete()
isn't called for pre-drags, but this led to NPE when returning
from unistall or app info since onDropComplete() is called after
onDragEnd() in this case. So now we restore a copy of mDragInfo.

Bug: 32415014
Change-Id: I7ef4fb7145c3c78039af1131e77538969db58141
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d1f034708b591f0648f2a8ad47b6e857cd328e52 24-Oct-2016 Tony Wickham <twickham@google.com> Don't move to adjacent page if it is full when dropping on it.

Bug: 32003721
Change-Id: Ia81b75a73f510ad2a58764dec9eb7e57b9bf2dcd
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1da143940c7bed541aef0f840d295427f9397ca3 19-Oct-2016 Tony Wickham <twickham@google.com> Merge "Mark cells as unoccupied in onDragStart instead of startDrag." into ub-launcher3-master
9485e5f293b0976f5f907804e43dfe19d58f165f 18-Oct-2016 Jon Miranda <jonmiranda@google.com> Show error toast messages when there is no room for the item when icon is not to be added to folder.

* when user tries to add item to full hot seat from workspace.
* when user tries to add item to full home screen from workspace.
* refactored so that Workspace handles displaying error messages.

Bug: 15574422
Change-Id: Ibc98c7f45bc0c646dc4636660fba62be9db22ac0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4e47b5b0d678f9b23bee211a7808c73c51a1d7d1 18-Oct-2016 Tony Wickham <twickham@google.com> Mark cells as unoccupied in onDragStart instead of startDrag.

Also move cleanup (resetting variables to null) to onDragEnd
instead of onDropCompleted. These changes are necessary because
pre-drags (for apps with shortcuts) don't call onDragStart
or onDropCompleted.

Bug: 32246571
Change-Id: Ib18fac64555e9158b776f9c12afc2cb807b3c355
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6982de2485ae516f02758bffd0cb0fdc4b127fef 12-Oct-2016 Tony Wickham <twickham@google.com> resolve merge conflicts of 2fd0208 to ub-launcher3-master

Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90
cf6195268d3c1f190318b3220d321fb910349e51 12-Oct-2016 Tony Wickham <twickham@google.com> Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3-calgary-polish
9c76a9cecedd1e33708aa6d19980cfc73ae2caf8 11-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Announcing the final action when the drag-drop completes
am: 3f8864069b

Change-Id: Iba49c7ba1d1c2d1f4c279970bbcc3ff96af5ccc0
3f8864069be20d14debacddee610062f3feae5a1 11-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Announcing the final action when the drag-drop completes

Bug:31926812
Change-Id: Id0566cc7dc15732981320807a02fb9cae8a885e6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
740ac7f00e0b847b8e392800f7948d93493e11d6 29-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring floating view opening/closing logic

> Creating a base view for floating panels with some common methods
> Moving the getOpen method to individual classes
> Moving the folder icon animation logic to folder icon
> Moving all the logic related for opening folder to Folder class

Change-Id: I898dfb6870b857cb921d2729b89618bc43ff2e88
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2fd020860533e18c64a93d14d11cb2d34bc9cbaf 07-Oct-2016 Tony <twickham@google.com> Use Launcher.getLauncher(Context) instead of type-casting.

Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
df7ef68bbf36f8bbf015ace74fce0e00142b2e23 07-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Refactors in UserEventDispatcher

- LaunchSource -> LogContainer

Change-Id: I71bfee992fb1ba7ae80e824d419f7bf8d3020999
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0de011705b132eacdd10f7bfb5cdc4bd79a147e8 06-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Code sanitization

- Removed bad method/class name typos

Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f3e35d93318190f995e6a0fc9d0441ac844b67e4 05-Oct-2016 Jon Miranda <jonmiranda@google.com> Add logging for long presses. Reset elapsed timer when changing containers.

This is the first CL in a series of logging-related CLs. Upcoming CLs will
include using Commands (HOME_INTENT, BACK) and "tapping outside" of a container
logic.

Change-Id: I62f0a08c7a9d9fce0baa5c12c67e21f63ab16a7c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
10236d6ac7f5f787ca21736494ccb5eaf2bd7c27 28-Sep-2016 Tony Wickham <twickham@google.com> Update pre-drag lifecycle for apps with shortcuts.

- First of all, deferred drag has been renamed to pre-drag
to avoid confusion with the existing deferred end drag.
- For normal drags, the cycle is still startDrag -->
onDragStart --> onDrop --> onDropComplete --> onDragEnd.
- Pre-drags have two additional callbacks: onPreDragStart
and onPreDragEnd. onPreDragStart is called between
startDrag and onDragStart, and onPreDragEnd is called
at the same time as onDragStart or onDragEnd.
- If the pre-drag has not transitioned to a full drag before
onDragEnd, onDragStart and onDropComplete are skipped
(onDrop is still called to allow the DragView to animate).

Change-Id: Icd7a8f75d5fcc159f9a52758c22ab6eae3edb9e2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1784d579f46fb10a7b805bfaa90b4ab65a1f0d33 01-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Consume ACTION_UP when fling is detected on top of icon
am: 035a516e18

Change-Id: I0eb8f0c83e1a1611d8bb3b9309d69b8df7c7a19d
035a516e182090b2cee11d11579df432b7fcf02a 01-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Consume ACTION_UP when fling is detected on top of icon

Bug: Adam found out that when you swipe down fast on an icon, you can
launch search AND launch an app. Only one should trigger and not both.

Change-Id: I66b9df26d8bb355f011d057dafd45f90f59b82ae
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fe770c9feb5f7fc05853f1d3a9eb2c825787b0a5 27-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Cleaning up restore instance state logic

Restore instance state is only used for first binding. But in case of restore,
the binding happens synchronously, so there is not need to store the bundle
in a global variable

Change-Id: Ibc496bcd7c0d171056b8afc69f2c4d9a1270d40c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5eea1e89dd7e100851d97968855b2868d01e7faa 24-Sep-2016 Tony <tonyswickham@gmail.com> resolve merge conflicts of 6e74e89 to ub-launcher3-master

Change-Id: I34e449ca3a91ee06e1983ac3a83cb7ca53567a91
6e74e899d314663415f54895227bb79a51fd734b 19-Sep-2016 Tony Wickham <twickham@google.com> Refactor shortcuts drag and drop.

- Instead of creating our own drag view within the container, and
handling logic to determine when to start a real drag, we start
the drag immediately and just defer onDragStart().
- To determine when the deferred drag should start, we add a
DeferDragCondition to DragOptions. The default DeferDragCondition
never defers a drag, but is overridden for apps with shortcuts
to defer until the icon is dragged a given distance.
- Because the drag is handled in DragController, including checking
when to start the deferred drag, DeepShortcutsContainer no longer
needs to handle touch events and ShortcutsContainerListener has
been removed.

This change has several immediate benefits:
- The code is much cleaner, because it allows touch handling to be
done by the DragController through the normal drag flow, without
recreating logic in ShortcutsContainerListener/DeepShortcutContainer.
- The janky second haptic feedback has been removed (now it vibrates
when you long press, like everywhere else, but not again when the
shortcuts close after dragging a distance).
- Drops are animated, instead of just popping the icon back into place.

Bug: 30769920
Bug: 30465972
Bug: 31533078
Change-Id: I679b412b72fbf6c3895d76963311eb5010c8e8db
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c2f72b0bb89dbde5102b3a660e51e789ebaeb005 24-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Resize only one widget at a time" into ub-launcher3-master
6ad72f02fd233f2294222477102e83d721100493 23-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Resize only one widget at a time

> Removing logic to have multiple widgets in resize mode
> Making ResizeFrame a touch controller, so that it fits well with
other touch interaction in drag layer
> Chaning the method names in touch controller, so that it do not
overlaps with the default View methods

Change-Id: I85d4dbdfc82d078781adbce137dfaaea59c9c83d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a07b9335e437d69cb5c216cbc7fbde1d9a35112e 23-Sep-2016 Tony Wickham <twickham@google.com> Stop jumping to workspace from hotseat on quick drop.
am: dbf08b4aee

Change-Id: Id1a4c65f14810dcf3e6534796d797603070c5d68
dbf08b4aee0bd9c296552485a34f15f997a56f3f 13-Sep-2016 Tony Wickham <twickham@google.com> Stop jumping to workspace from hotseat on quick drop.

Regression occurred in ag/1315317.

In that change, Launcher#enterSpringLoadedDragMode() was moved from
the end of startDrag() to the end of onDragStart(). This changed the
sequence of events from:

beginDragShared() --> DragController#startDrag() --> onDragStart -->
dropTarget.onDragOver() --> Launcher#enterSpringLoadedDragMode()

to:

beginDragShared() --> DragController#startDrag() --> onDragStart -->
Launcher#enterSpringLoadedDragMode() --> onDragOver()

Basically, the key difference is that onDragOver() is called after
enterSpringLoadedDragMode(). This matters, because onDragOver()
returns early if Workspace#transitionStateShouldAllowDrop() returns
false, which it does during the spring loaded transition. This meant
that onDragOver() didn't update the layout to be Hotseat, and thus
the current workspace page was used as default, since that is what
was set in onDragEnter(). To fix it, I've copied the logic in
onDragOver() that checks to see if the drag is over the hotseat first
to a new method that onDragEnter() now calls as well.

Bug: 31245181
Change-Id: Ie758921b25fc96516a09c32bdc9706da941522df
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
cbf371cddcace88d3bd8bc726c9518e6d3ba6d0d 16-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Fixing issue where overview->normal workspace mode cannot be done by tapping b/31458165
am: f99370c2a9

Change-Id: Id5c7b068fae21a2c4941390bf99db413581ede44
f99370c2a9cbe340f340a15a5f065166de9f809a 16-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Fixing issue where overview->normal workspace mode cannot be done by tapping
b/31458165

Because workspaceInModalState makes the VerticalFlingDetector
to consume the touch input, click is not detected in Overview mode.

Placed pulldown to search behind a feature flag.

Change-Id: I31ab69f57944a18e6b264c4f2ed2d0c1175cd940
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ae02616a179c98178a2247106878d1fa911841ff 15-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Pull down should start search. b/31458165
am: 46133612b4

Change-Id: I1147a69e6dd9fbfb614b8740a30e6c840948435a
46133612b4c864a4e4da45a9de3a343e3955c321 15-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Pull down should start search.
b/31458165

Change-Id: If4821e3d89a05a00551af6a5209ebc1693a1389b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2eea42fcb99016943568baa6fe77faa23c9c32b6 12-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Using DragObject for folder drop instead of maintaining states when drag starts from inside a folder
am: e393d3af36

Change-Id: I44abfbed5ea0a8125b8c5ca50ecdf3a205de8775
e393d3af369c452f3b5f5d9c0a23a83aa3aa736b 09-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Using DragObject for folder drop instead of maintaining states when
drag starts from inside a folder

Change-Id: I073b59c194d0bd483d579bbcb638b116b09590a0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
40452cf468b44a4173338cc83000b4ad84860ebc 02-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Using ItemInfoMatcher in place of similar interfaces and utility methods

Change-Id: I7337b819fe8f42f7a5a1481b5ed5d99a8cf583c4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
52851aa3fd2dd9957e190d779f904f6abaf53fed 02-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Fixing topView not being considered in all places when calculating accessible
and focusable views

Bug: 30563273
Change-Id: I6253ce33ee5c328efdde2ea733029975b31e5eb8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
94b510cc683a6436ae82c6d323cbd8b429561b06 17-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Some drag and drop code refactor:

1) Adding DragOptions to easily extend drap functionality
2) Changing onDragStarted signature to send more information
3) Updating states for dropTargetButton based on drag event directly
4) Removing folder item based on onDragStarted and not startDrag

Change-Id: I65b684e092ddc081d086bfe2c8c1973ed170eaeb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
61bcfba33598ddd0bc59910ab758fcd51d770502 01-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "Support user event logging for drag and drop b/30039490" into ub-launcher3-calgary-polish
59a238095e82fd02355f4cb53abe01655a50b051 01-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Support user event logging for drag and drop
b/30039490

Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging

Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dfc8b6685bf330b203cb16b67c39bed936030306 30-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Preventing unnecessary setLayout calls in workspace
Separating getSystemProperty in a separate method

Change-Id: I88716e796e29ac27ef25afa41077a8f29eb65f25
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d1602ddfdfd2386dd15c36d06750e2b7bd4fa696 16-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Moving the state changes during drag-n-drop from startDrag to onDragStart" into ub-launcher3-calgary-polish
8ce6063c4a5bd90810f0a21c946e5bbad3ce9de4 16-Aug-2016 Hyunyoung Song <hyunyoungs@google.com> Set launch source target correctly for user event logging

Before, everything is set to APP_ICON
With this changed, pinned shortcuts are set to DEEPSHORTCUT

Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
06e21a25877db7207b5393ab163028bb4116df4f 12-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Moving the state changes during drag-n-drop from startDrag to onDragStart

This will allow drag controller to optinally defer drag, based on some
threshold, by simply deferring the callback onDragStart

Change-Id: I17c06a15e2092b9797c7e57529b12a53d2acae6e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d3b87ef1963fb96177ca85bcd6a25879e27e419c 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding quiet mode support for shortcuts

> LauncherApps returns empty list when the user is locked. Not relying on
LauncherApps in this case
> When the user is locked, removing all dynamic shortcuts
> Loading shortcuts from DB when the user is locked
> Verifying the shortcuts again when the user is available

Bug: 30411561
Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c42087e5c011dbf912c0f8b8d27d15ec5a97dca1 29-Jul-2016 Winson Chung <winsonc@google.com> Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgary

* changes:
Working around incorrect wallpaper offsets being calculated in RTL.
Fixing RTL wallpaper scrolling.
c7d2e83c15e85b2695e016213549d08e63c923b3 28-Jul-2016 Winson <winsonc@google.com> Working around incorrect wallpaper offsets being calculated in RTL.

- When launcher starts up, onCreate() triggers the launcher model loader
to start, which calls bindScreens() to add the workspace pages.
However, layout does not happen until the device is unlocked, which
means that even though the default screen index and children are there
the page scrolls are calculated incorrectly, and even in RTL, the
page scroll for the 0th screen is zero (it should be at the right
most edge of the workspace). This CL works around this by deferring
until the first layout after bindScreens() to unlock the wallpaper
offset from its default bounds. The workaround is only applied when
the launcher activity is first created.

Bug: 28795125
Change-Id: I33da0d7f934f5337d26e69f068f579a32897a837
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a2454ad2d8dcffa94f670853eb464726c73597f1 22-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Launcher shortcuts animations update.

> The shortcut container closes with an animation
> When opening/closing the animation only the icon scales
and not the title and drag handle
> When dragging the icon, it starts from the original icon position and
moves under the user finger. The container grows to follow the drag view.

Bug: 28980830
Change-Id: Ic0353c30b682d1f018cbf4d62e8a6e8e7d7d4664
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e117f53f3667238b17093fbb217f6daf963e50d0 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fade QSB with the workspace as the overlay enters" into ub-launcher3-calgary
2a82afd6f6a26950b9f09863b2e692f38a4ec678 28-Jul-2016 Adam Cohen <adamcohen@google.com> Fade QSB with the workspace as the overlay enters

Change-Id: Iadab9d9f051a85f6772a5d54d38534fcf1b029d7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
10923b30a22b4ec8d10cf8536bddf3f176e6c26f 21-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Removing shadow and badging from the icon which is shown in the menu
These are added as soon as the icon is added to the workspace

Bug: 28980830
Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8f288aac99a11d52fd9747f360a8ce3bb521b17a 26-Jul-2016 Winson <winsonc@google.com> Ensure that we update the preview layout rule when not animating.

Bug: 28166173
Change-Id: Ibf0245f2dd667216ccabb23a1b279b1801d60cac
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
157793dda450b69da388b859d1c1a7a1083c4ec9 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Increasing the size of the drag icon when a shortcut is dragged

Change-Id: I7d768657300d3229e05d1eb18aec3720a9098ffc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
71b3d1c38e028d7c1f625543a30993af1193b321 21-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Optimizing open shortcuts container lookep

findviewById does a DFS, inseat only looking at the first level children

Change-Id: Idc028a56648ca026c6022425e3a6e7453fa91986
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5bc04e67f7928eb5a107c2512c7f3d84ab363609 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Protecting QSB scroll while transition animation is running." into ub-launcher3-calgary
c553c33ae6824cf9b2f3274a9a5d275445ac1968 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Protecting QSB scroll while transition animation is running.

During transition animation the qorkspace scroll changes while the actual
workspace UI is mostly stable. This causes the QSB to animate while the
pages are not changing.
Bug: 30229069

Change-Id: I66ec41276c0e26164d20da6a5e0e251975390428
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1f06427266c0cb5de4561fc7c620ff542f625300 19-Jul-2016 Winson <winsonc@google.com> Initial changes to tweak layout.

- Adding DeviceProfile callback for when the launcher layout changes due
to insets. This is necessary since there are now different layouts
depending on which side the navigation bar is on
- Consolidating hotseat and other layout into the device profile
launcher layout logic
- Making the all apps icons match the workspace icon height
- Tweaking caret drawable to draw to the bounds specified to simplify
layout in each orientation
- Fixing minor issue with page indicator shifting in landscape
- Centering overview buttons to the workspace page

Bug: 30021487
Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bbff2926f8dd61b99f62d56390815ca84cece51e 15-Jul-2016 Peter Schiller <peterschiller@google.com> Remove caret in overview mode

Bug: 30162951
Change-Id: I71f585e4ae6dfba9dc1d18cd00e45d081cabd4b3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a30b51ceb29e179caf7f441763ffeb6bfd336998 13-Jul-2016 Peter Schiller <peterschiller@google.com> Adding stateful caret drawable

Change-Id: Iba30da09f882297f789c405f932fef10617bba89
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
01440c6e83522f6ae1e5e00edc9090b32fed2467 14-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding a view to indicate space blocked by QSB when QSB is hidden

Change-Id: Ifc6b1f2a7312e7919582887ea67bfe900668b70f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6178f13e2d1f0c1a89cea74538b51993ef3439e3 12-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB out of the cell layout to the Drag layer

This allows better edge matching for the QSB. The QSB position
is kept synchronized with the page scroll and all-apps transition.
But its not visible in spring loaded and overview mode

Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b30562da1eb2ab2b8c5e0a6c03625f63523bfbbe 10-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Adding support for non-zero left insets" into ub-launcher3-calgary
53fe1f26d3103ab3306c421e0ddf299764620c32 08-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Updating page indicator content description to indicate click target
for apps list

Bug: 29777235
Change-Id: Ia3dc20db7ec06455429389de5752b9bcfff15555
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6c2975e7e3fc5dc7cb80f1a2b3e5ffd10e49c2be 06-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for non-zero left insets

Bug: 29613069
Change-Id: Ifdf9bcce7ecdedc510f3be8a4dc10eb8da7c4bf1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e49a97aba08ac5a5a3de2c09cc2ae027a13f7d75 08-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Changing isExternalDragWidget to isDragWidget as workspace goes to
modal state even when dragging from workspace

Bug: 29900481
Change-Id: I60ce6073b1c06ed19c75a341f9b73f6a147be889
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
27731e4d7def4aaea2dfcc1f132ad7a54dceab33 07-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing accessibility drag and drop Since the page's accessibility flag is updated when entering drag mode, it does not need to be updated on state change" into ub-launcher3-calgary
230b2b7f441cef5c842f0c6f13a0b91db043a94c 07-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Second workspace page icons should not show up when all apps is shown in landscape.

b/29931405

> Also some method names to setTranslation -> setTranslationAndAlpha to
match its implementation.

Change-Id: Icb6ec5df8a267a9024803c70a694ea9b76e5e34d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d8d19938e41a5aa5d14da390f3beae154692bc46 23-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Fixing accessibility drag and drop
Since the page's accessibility flag is updated when entering
drag mode, it does not need to be updated on state change

Bug: 29581071
Change-Id: I1a876b4e8530601cb9bf25d097ea37780b525610
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1bce7fd342875be8f7c1f82c8cf21d0199c8d544 29-Apr-2016 Tony Wickham <twickham@google.com> Long-press on an app to reveal its shortcuts.

- Add ShortcutsContainerListener to icons on workspace, folders, and
all apps. This handles long-press and forwards following touches to
the DeepShortcutsContainer that is created.
- Drag over shortcut before lifting finger to launch it.
- Shortcuts are rendered in pill-shaped DeepShortcutViews,
which are inside DeepShortcutContainer on DragLayer.
- The shortcut container orients above or below the icon, and left or
right-aligns with it. Biases for above + left-align.
- Long press a DeepShortcutPill to drag and pin it to the workspace.

Bug: 28980830
Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6d64d88b0f222c951f406a7e2195f8f3c0be208f 24-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Fixing alpha of workspace components being changed at too many places

> Hotseat alpha is changed by all-apps controller, workspaceStateTransition
and overlay transition. Created a 3 state alpha for hotseat and pageIndicator
> Simplified the page-background and alpha animation during state transition
by moving the code in the same if block
> Disabling partial page fading when pull-up all apps is enabled. This fixes
the bug when pressing home with all-apps opened causes other pages to disappear.

Change-Id: I4a75b89af12b48e9fbc49514e641fd424d07199c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
653bfcc7433b10ea2d5dc8cde612d6143af766b8 22-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Accessibility fixes and updates" into ub-launcher3-calgary
d0a6ae7f645e6ba564aebb50316c53fa2e119459 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes and updates

> Adding custom actions on the page indicator to go to overview mode
> Disabling custom actions on the first page
> Disabling 'move page left' on the second page

Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa 22-Jun-2016 Tony Wickham <twickham@google.com> Merge "Add support for launcher shortcuts." into ub-launcher3-calgary
bfbf7f9f4a0b300613f0ff27a4eb592d88c08325 19-May-2016 Tony Wickham <twickham@google.com> Add support for launcher shortcuts.

- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
(pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
pin them. In a future CL it will use the cache, but for now it
simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
which Launcher gets a copy of after it is changed in the background.
This will allow us to know how many shortcuts an app has immediately,
and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bfa8fbd782370c9d1f5b24f94dc29b74a31b28f0 20-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Maintaining separate alpha for x and y translations

Bug: 29504823
Change-Id: I6150fec43653c8da4c5841ddbd6c5de739f205b8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ae50284e0a838139c67caf0064a0977c871497fa 17-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.

Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bb011dad4e69bec027be1e00d573a3095b318b43 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a flag (enabled by default) to remove the all-apps button.

All apps can still be opened by clicking the caret.

Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0af8af3a6090bc0309cb126a1ccfb2a66e058783 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Adding a DB update path to handle the QSB position change" into ub-launcher3-calgary
7d2fc8120e549eaa9542b0985aab67d172cbd682 15-Jun-2016 Hyunyoung Song <hyunyoungs@google.com> Add caret shaped all app pull up handle to page indicator.
b/28917826

> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp

Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a9e2f5abb3c21d9721939c625ffb0caabb34e8d9 10-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a DB update path to handle the QSB position change

> Renamed the id of 1st screen to 0 and making space for the QSB
by running the grid migration task.
> Added a feature flag to easily disable the QSB-in-workspace behavior

Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a92e0dfa0c8724252c692da59193ee40d0b366a7 09-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Unifying the workspace translation logic

Change-Id: I82430734c222d43222763fc6edcadac33dc3e076
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9443ef5ec69ee673b89c6387f065cf1d45eb2d5b 08-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for workspace state change listener

Change-Id: Id0a4bcf345ce928544f5d406f37252a00d1dc7af
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2a5b356375e15602acab429642064c566a1a1f4d 07-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Allowing the first screen to expand to the screen edge" into ub-launcher3-calgary
7c786f75d131addf849551a8cbc084c7c4ed0730 01-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Allowing the first screen to expand to the screen edge

This allows the QSB to extend all the way to the edge
Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
47328fd53f43fd0c2ed14ad925dd04483f9229a0 26-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing the SearchDropTarget bar as it no longer contains the QSB

> Renaming it to simply DropTargetBar
> Moving AppInfo to the top bar as well
> The workspace pages will extend to the top edge (minus some padding).
Since the QSB is no longer displayed on top of every page, there is
no reason to reserve the space.
> In spring-loaded mode, the workspace cell layout will scale enough
to make room for the drop target bar at the top

Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
034bc3c01c29ff2a2a13cb36e12ce2a5cabf9a83 01-Jun-2016 Tony Wickham <twickham@google.com> Animate size and position of page indicator when adding/removing page

Change-Id: I85f37a4e0aeb8c3fd0bd8da3b90338d0333a84d5
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d4b28d2e1bb73fcdb1e46bb06e1666e27af2e643 26-May-2016 Tony Wickham <twickham@google.com> Only show workspace page indicator when scrolling or in spring-loaded mode.

- Stop showing indicator when resuming or ending transitions.
- In spring-loaded mode, prevent page indicator from auto-hiding.

Change-Id: I87070d2d8f46cf491e60380aed5540196f2fbba3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
da4fe1a6244457f144e0a331cada3ada17157809 27-May-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB to the workspace grid.

The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).

Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6d02c7a0337d37e5b1c596a4acec0c292a9b7f93 19-May-2016 Sunny Goyal <sunnygoyal@google.com> Adding some UI tests
> Launcher app from all-apps
> Drag icon to all-apps and launch it
> Add widget from widget tray

Change-Id: I6bd6128a7b560a23a887d1fb40bfcda25b9b02e7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c487bd34ace268dd8be5480ba884baed6096f76e 20-May-2016 Sunny Goyal <sunnygoyal@google.com> Making page indicator an abstract class and implementing some common methods.

Change-Id: I06613428c54f1f086090580db8242cf81f7fb128
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ddb77003e728cac32de009e709f80280e68f6b6e 19-May-2016 Tony Wickham <twickham@google.com> Missed one more page indicator null check.

Hopefully this is the last one.

Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fea0a5f629f7bc59117401b744ed334cf33a7ae0 19-May-2016 Tony Wickham <twickham@google.com> Add more null checks for page indicators.

Change-Id: Id86d4827c9079abfb236f956e531f0e29edfc54e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c64cfdd8fa18de45fc1646c8ef2449f39ef83022 18-May-2016 Sunny Goyal <sunnygoyal@google.com> Updating the folder page indicator to be more like the
framework page indicator (used in quick settings)

The active page is indicated with the accent color. During scroll
the active indicator expands to 2 dots corresponding to the visible pages.

Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ae007814289a465be3df1ddca276e30f73460a97 18-May-2016 Tony Wickham <twickham@google.com> Merge "Add PageIndicator interface and custom PageIndicatorLine view." into ub-launcher3-calgary
f549dab31d0fa3e4d0cf8d6025b20e49aafb2d59 16-May-2016 Tony Wickham <twickham@google.com> Add PageIndicator interface and custom PageIndicatorLine view.

- The current PageIndicator has been renamed to PageIndicatorDots
and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
aaf7d1d13bd88bdeac5c56a9ab1d293fdaea3c11 17-May-2016 Sunny Goyal <sunnygoyal@google.com> instead of unbinding items from the loader, unregistering listeners
in activity.onDestroy()

Bug: 28740269
Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
87af0fded6d91b85c7a4bbf066f93d58c241b146 16-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing reference of hostView from LauncherAppWidgetInfo

LauncherAppWidgetInfo is a model item and does not need to reference
a view. Removing this dependency will allow cleaning up the
item unbinding logic

Bug: 28740269
Change-Id: I11fc2e2500b8fe29d157eefe74c70b1decdfd08d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f898b970cc9130d629d4bc969222aaa96a8a013a 06-Apr-2016 Tony Wickham <twickham@google.com> Call onLauncherTransitionPrepare() and End() from pinch.

This makes the pinch transition more consistent with other transitions.
One immediate benefit of this is that it updates adjacent overview
panels during pinch, regardless of whether they are completely visible.

Previously the adjacent panels' alphas weren't always reset to 0.
Specifically, if you made a small pinch from workspace, which
canceled and went back to workspace, adjacent pages retained a
slightly visible panel.

Bug: 27676309
Change-Id: I7e79fddec31cd649e0811e4524b9a9a501c627f9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
aa953654279d7cca29682d85111e398ea1f20390 20-Apr-2016 Hyunyoung Song <hyunyoungs@google.com> Refactor UserEventDispatcher (1/2)
b/28269657

Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ddec1c739ef37c3a042982b8943fe42e04b65f4c 13-Apr-2016 Hyunyoung Song <hyunyoungs@google.com> Refactor UserEventLogging, Add predictedRank, replace Bundle with Proto

b/26494415
- Removed bundle object that became redundant now that we have LauncherEvent proto
- Combined Stats and UserEventLogger as they are effectively doing same thing
- Removed parent field inside Target
- added predictedRank target inside Target

b/27967359
- make com.android.launcher3.action.LAUNCH broadcast explicit
Later CL: finish packageName/intent/componentHash/predictedRank fields

Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5be3e4cc529f75b894d4603c9fd1342b370766e0 13-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Giving proper workspace description when the launcher is not loaded.

Bug: 27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c52ba710053e4c6927937dd1a26d1abe06b6fa99 06-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing folder icon not getting redrawn when the contents change

> Removing parent from ItemOperator as inconsistant values were
being passed in workspace and folderPagedView
> Fixing itemChanged causing multiple redraws, by passing a
'animate' parameter to explicitely request animation

Bug:27740161
Bug:28015426

Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f172b747c24f28e29baaaf58f08bab48847b7a40 31-Mar-2016 Adam Cohen <adamcohen@google.com> Fix a couple polish bugs with new folder previews

-> Don't reuse the same background object for the folder create preview
since this can cause interruptions in the animations for previous
creation previews.
-> When drawing the background to preview creation, don't draw the stroke
above the icon since the icon is not yet contained by the folder.

Change-Id: Ib666dc2453df465b342c02f3bd109b553a769dcc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d5bd67dfa9ee5fda2384a75231b7a68ceb8e9bd5 11-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for result callback when starting uninstall-application activity

Change-Id: Ieaca4fbd0ae0156f24c8863ccbef61d4d6d30ba1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
470f900fce017dc015851bfe3e591be5feedf6cc 21-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Removing some unused imports

Change-Id: I83962e467e3357db536a3e5a4a5c3071cc1268ab
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ef0ac88e0b1ea3601308d5ee7afc1c6d99365e5c 21-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Removing dependency on wallpaper size settings from launcher" into ub-launcher3-calgary
3bbbabc54ac73a4451b0a862a3faac6426b1b7b4 15-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing model being updated on UI thread

> When package gets unavailable or suspended, the disabled flag was getting
updated on the UI thread. This could lead to inconsistent model if launcher
activity didn't exist.
> Fixing: When unsuspending one work profile apps, all work profile apps get
unsuspended

Bug: 27673573,27673373,27403236
Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6f866095c0177a794050e578f148b640f4e0a0ab 18-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Removing dependency on wallpaper size settings from launcher

> Moving wallpaper desired width calculation to xml

Bug: 14470153
Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
95cdb3a0211650e76adb451588ce89fd585b178f 18-Feb-2016 Tony Wickham <twickham@google.com> Remove scrim on highlighted spring-loaded panel.

Bug: 27135377
Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2e1efb480a9b77a97cb623d4f5faf6802a417422 04-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Changing the widget loading strategy

Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dadb304b4682998c43b9c07bef45b9a9380f3287 24-Feb-2016 Tony Wickham <twickham@google.com> Pinch to zoom out into overview mode.

There are 3 classes coordinating the gesture: PinchToOverviewListener,
PinchThresholdManager, and PinchAnimationManager.
- PTOL listens for the pinch gesture on DragLayer.
- When a pinch is detected, the PTOL keeps track of the interpolated
progress and passes it along to both the PTM and PAM.
- The PTM uses the progress to determine whether a new threshold has
been passed, and tells the PAM to animate it if so.
- The PAM uses the progress to animate things like workspace scale
throughout the pinch.
- If the pinch ends early, the PTOL uses the last passed threshold to
determine whether to animate to workspace or overview, and tells
PAM to perform the animation at the same velocity as the pinch.

Bug: 24414635
Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
efca0279eb927faebffc38c8382818df67fcd159 25-Feb-2016 Adam Cohen <adamcohen@google.com> Switch all folder preview rendering to be programmatic (ie. no assets)

-> Refactored the preview background rendering to be much more self-contained.
This cleans up a lot of code in the CellLayout, and keeps the logic in the
right place.
-> We switch to software rendering for performance and compatibility reasons.
-> Removed all assets.
-> FolderIcon accept animation includes animation of the clipped region.
-> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon
and the CellLayout. Unfortunately, CellLayout rendering is still required
to work around clipping issues (due to use of software layer). We also
need this to support folder creation feedback.

Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e670159cfe255693f829f3e2857bbd8c52731e9d 01-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing homescreen getting blank when returning from the overlay" into ub-launcher3-calgary
061380a04d067d06adf41c72b4a6892827777acc 01-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing scrollTo getting called even though the gesture was handled by an overlay

Change-Id: Ia46c4ef3db8a3ae4fa615625b7b983d7e461c797
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ee68816be8e4667548ac8925a14d014f1d66d460 12-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Fixing homescreen getting blank when returning from the overlay

Change-Id: Ie11b92cd59c90e71b9b58eeede742ef0c5b28380
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c86df470ab360a6e3f7edfd4b9cadcc5c31734f8 25-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Adding overlay interaction support

> Sending unboundX to the overlay which is the total untranslated X and not just deltaX from last frame
> Handling overlay callback and translating workspace accordingly

Change-Id: I3bd8d9efac738e9ce131758f0e5ff1b9c1d6a8fc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
261194387beebaa7927ec4e310274218b651494d 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage"

This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658.

Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bd822508e57fd379556ea318b16959c7e48a335b 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Deleting the WallpaperPicker code inside launcher.
Instead linking it to the packages/apps/WallpaperPicker project

Change-Id: Ib6830b180a22c22afece01e0a4f6e94e89d6452b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fc956e5a2a818c06ed3424e15b0aa20a3f604658 17-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage

Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f9c184a619e4e4b82cf9e0bf318ca6d8deaaaee7 16-Jan-2016 Adam Cohen <adamcohen@google.com> Refactor FolderIcon to separate the preview effect into it's own class

-> Created com.android.launcher3.folder package to house most folder-related files
(aside from the FolderInfo) which is more related to the model than the UI.

Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8ddb3909142b3f215573a891f159005acd85cfb8 11-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Making some view properties exported. These will be visible in hierarchy viewer" into ub-launcher3-calgary
7c50b31f57e3e3ec1f433d243afe05554dcaf977 10-Feb-2016 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of 3826bab27e to ub-launcher3-calgary.

Change-Id: I14ff2d67de4ba97628bdf651602724f9f4989173
4ffec48dec5da7bcf719ac0c37ee5e58f9ea2c1a 09-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Making some view properties exported.
These will be visible in hierarchy viewer

Change-Id: I940724a7f61d67b8502d77be203a94875bc92668
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0ac7ede56afebe4401c0636196f5844be573ad68 29-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Merging search bar with all apps

Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e0c332365604976d999eb25d4bdcc49ec75b7a1c 08-Feb-2016 Tony Wickham <twickham@google.com> Tweak spring-loaded workspace.

- No page indicators in spring-loaded mode
- Don’t move workspace up as high
- Scale workspace at 90% instead of 80% on phones
- Increase speed of workspace -> spring-loaded -> workspace
- Widgets were being scaled down twice when dragging from widget picker
- Don't scale up icons when dragging (scaling other stuff down is enough)
- Make scrim less dark and panels more transparent
- Thin white border around page instead of highlight when hovering

Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
13f682f74ec46bd07358d51a52e064fd6221f0fb 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing some invalid checks and cleaning some redundant conditions
am: b740f59c7d

* commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48':
Fixing some invalid checks and cleaning some redundant conditions
b740f59c7d572d54402e3a74fb2a23c0f1b1af48 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing some invalid checks and cleaning some redundant conditions

Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
08442b84a25a22f3f21aad89ed5a6adccaa2166d 22-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Preserving the open folder state across rotation

Bug: 24900496
Change-Id: Ie1318b82b497957b99603b11ec338dd50d51b962
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0f97b7874fe29f36e7a40d2fe4b45d1e0e24fe1b 03-Dec-2015 Tony Wickham <twickham@google.com> Added config_springLoadWorkspace to enable/disable spring-loaded workspace.

- Added side hints back
- Only scale down icons if spring-loaded
- Only show App Info drop target if spring-loaded

Change-Id: I4b0dddccbe0e80b7ceb6b7266fc527f757744148
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
11c45f114165330ea9c895ca6fdf83fdaa2e5fad 04-Dec-2015 Tony Wickham <twickham@google.com> Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish
am: 8db5d7ca60

* commit '8db5d7ca60e79f007bfce7952c15c74d0ee44bc0':
Add appropriate (tiny) offset to widget drops so they land correctly.
8db5d7ca60e79f007bfce7952c15c74d0ee44bc0 04-Dec-2015 Tony Wickham <twickham@google.com> Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish
0593f348b90e92287154f941c6ad38bda62c9531 03-Dec-2015 Tony Wickham <twickham@google.com> Hide the focus indicator view when going to a fullscreen page.
am: 62b9b6054e

* commit '62b9b6054e46074f57ccf156a8663b4392cd82d9':
Hide the focus indicator view when going to a fullscreen page.
62b9b6054e46074f57ccf156a8663b4392cd82d9 18-Nov-2015 Tony Wickham <twickham@google.com> Hide the focus indicator view when going to a fullscreen page.

Bug: 25649853
Change-Id: I9f2f221020548b48d816924a1803a1a70d11c412
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
580ff475e01993e902da8a20ea5518031bba6e9a 03-Dec-2015 Tony Wickham <twickham@google.com> Fullscreen pages (e.g. Now) are focusable via keyboard.
am: 0fa5ada226

* commit '0fa5ada2261a29ad9be7195c8cdb8cb50bdd0742':
Fullscreen pages (e.g. Now) are focusable via keyboard.
0fa5ada2261a29ad9be7195c8cdb8cb50bdd0742 14-Nov-2015 Tony Wickham <twickham@google.com> Fullscreen pages (e.g. Now) are focusable via keyboard.

Change-Id: I962551651aeb9ac7b57bb51b195adc3140db30d8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a501d49a6a8b684bc83aa6b536f43247d75bacdf 04-Nov-2015 Tony Wickham <twickham@google.com> Add appropriate (tiny) offset to widget drops so they land correctly.

Also removed some unused parameters I found on the way.

Bug: 25191623
Change-Id: Ib9a30db106467c114cc8b54a5b13ed3e88162d56
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ff6a81508fb930fed6cc6fc426904a7093bf7172 03-Dec-2015 Tony Wickham <twickham@google.com> Merge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby-polish
am: ac929f4ad8

* commit 'ac929f4ad80fabeddfae51e30ec5d7ff434652c8':
Disallow scrolling if workspace is in transition.
ac929f4ad80fabeddfae51e30ec5d7ff434652c8 03-Dec-2015 Tony Wickham <twickham@google.com> Merge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby-polish
cc4c22008c287418e7701eaef12782f27f3f1e26 01-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Adding margin to Drag layer instead of checking for right insets at every place
am: 9326461652

* commit '9326461652c36c2ddd888d1452cf7f075a391868':
Adding margin to Drag layer instead of checking for right insets at every place
9326461652c36c2ddd888d1452cf7f075a391868 23-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Adding margin to Drag layer instead of checking for right insets at every place

Bug: 25692432
Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a5209e33fcce5cd429086971ef1b57bcfc106c23 19-Nov-2015 Tony Wickham <twickham@google.com> Disallow scrolling if workspace is in transition.

Because going to overview mode scales down the workspace, it was
thinking the touch was moving even though your finger was still. If
the "movement" was large enough, it was treated as a scroll, causing
jank. This was especially prevalent on tablets due to their size.

Bug: 25779718
Change-Id: Idb7833e0087bd24ca840f6afc451bf221f6bc047
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4f63c76bfec06949af2391e5babd4be73ae3eb38 30-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused methods" into ub-launcher3-master
d249748abf357925b326d57ab68eb6c2b23c4ef6 23-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Making all provider calls using content resolver.

This will allow us to easily move db creation out of onCreate

Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
47ecbb85f3ef64669b5a56ac749afc500043e24b 17-Oct-2015 Winson <winsonc@google.com> resolve merge conflicts of fb4014daa3 to ub-launcher3-master.

Change-Id: I6d84a7f3fad757bf139b6ea0001ac6ab88850996
fb4014daa38977ba7cb35f32edfe1307f3ab4243 17-Oct-2015 Winson Chung <winsonc@google.com> Merge "Fix issue with source params not reporting predicted apps." into ub-launcher3-burnaby-polish
a49b1f75cdf8efe88408173737a7b3c8f4b58a4c 16-Oct-2015 Winson <winsonc@google.com> Fix issue with source params not reporting predicted apps.

Bug: 25020080
Change-Id: Iaa67ccbb3e3a6c264aaa4fa3c915faad8a69bbbc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9eba1fd75e9fa6b0dc5cad9a4e817b3b167d2461 16-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring WallpaperOffsetInterpolator to a new file
Removing some us unused methods

Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9ccb94b6e4613ee717550416db2b456d9f17702e 15-Oct-2015 Tony Wickham <twickham@google.com> resolved conflicts for a8709ddb to ub-launcher3-master

Change-Id: I172395e6e172914627b6dec721070a66520557b1
a8709ddbbf6338d71625ee1eef96e42bee042b31 15-Oct-2015 Tony Wickham <twickham@google.com> Merge "Fix "The specified child already has a parent" IllegalStateException." into ub-launcher3-burnaby-polish
a0628cc521614835933db74ba5a2536a936629c5 15-Oct-2015 Tony Wickham <twickham@google.com> Fix "The specified child already has a parent" IllegalStateException.

The problem was due to a race condition between removing a prebound
widget view from the drag layer and adding the same view to the
workspace upon dropping it; if you let go of the widget immediately
after picking it up, the latter happened before the former.

Specifically, the flow was: long-click a widget --> drop --> remove
the view from the drag layer if it's not null (it is, so nothing
happens) --> the view is finally bound/inflated and added to the drag
layer --> add the view to the workspace --> already has a parent.

There are actually 2 problems here: one is that the bind/inflate is
asynchronous, and can therefore happen after dropping the widget view
being inflated, and the other is that the view is added to the
workspace even though the transition has barely started (we usually
ignore drops if the transition is less than half complete). It turns
out that this second problem was also due to a race condition, this
time between dropping a widget or app onto the workspace and calling
LauncherStateTransitionAnimation.dispatchOnLauncherTransitionStart().
If the drop happened before the dispatch, as in the case of the
crash, then the drop was accepted because the transition progress was
still 1.0 from the previous transition.

I fixed the first problem by removing the drag layer widget view
in Launcher where it is potentially used instead of Workspace. And I
fixed the second problem by setting mTransitionProgress to 0 in
Workspace.onLauncherTransitionPrepare().

I also added some debugging logs.

Bug: 23896857
Change-Id: I66944e6d3f23b70dea15f7fb01af0763a1bfcbda
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b5772c8b4fdfb15579810040199da045acca11ea 07-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am 21d89fbf: Merge "Fixing overscroll effect when the navigation bar is opaque" into ub-launcher3-burnaby-polish

* commit '21d89fbf8c444c64a4c85d25a25bbe3b79719de9':
Fixing overscroll effect when the navigation bar is opaque
21d89fbf8c444c64a4c85d25a25bbe3b79719de9 07-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing overscroll effect when the navigation bar is opaque" into ub-launcher3-burnaby-polish
77ccb8d03c17aeb32dccfb0930ae974f6cca7455 01-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused resources

Change-Id: I6aa8a2d7eb4599ed2351c54fe0885839b5ba4521
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d1a0e8b5c8494945fe48c19fe0e13b6b161b90a7 28-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Jailing the saved instance state of all the dynamically generated views

Using itemId instead of generating a new id for each item. This is because
if the process gets killed, View.generateId will get reset but we will still
receive the generated item id map in onRestoreInstance. This will cause
conflicts with newly generated item ids.

We wrap all the generated homescreen views inside a single sparse array. This
ensures that we do not cause any conflict with dynamically generated views in
other parts of the UI.

Bug: 16840760
Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a13654529cb557abd946da4d4637593565917ecd 02-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Adding some information in bug reports

> Dumping workspace items
> Dumping loader logs for crashes and data deletion
> Removing unnecessary log dumps

Change-Id: Ia320988c2e3665e4d605d6e88bca77738e749273
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
778c0b020daef6ee4bf5944ca887de546caf08c6 01-Oct-2015 Tony Wickham <twickham@google.com> Scale down drag views in spring-loaded workspace.

Bug: 24190193
Change-Id: Ic490fc3f46702c3d5360e869c4172f31700085a1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e03856267544d2209c2844c9c06c74e8e52ff104 17-Sep-2015 Tony Wickham <twickham@google.com> Create widget resize frame after spring loaded workspace has exited.

Before, the resize frame was created as soon as a widget was dropped,
but this caused it to be in the wrong spot after the spring loaded
mode exited. Instead, we should wait until the workspace is back to
normal before creating the resize frame.

Bug: 24192073

Change-Id: I8d87febcc4ec7e3c44d50135184c3a837d7cd960
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a3b240d32bf9e65b4ba80b28ad28eef0a1fd677b 30-Sep-2015 Tony Wickham <twickham@google.com> Merge "Drags originating in Folder exit spring loaded mode when completed." into ub-launcher3-master
c5c723bbe43206ffa218b677984bc56a877359c4 25-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Fixing string.format missed in previous conflict resolution

Change-Id: Ic71ee97c319bb9141f70acf75f2fe0e40565f692
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9d4380856ff41ecb26c0d5aee1747b6060d2ef0e 25-Sep-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for e78e3d73 to ub-launcher3-master

Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
e78e3d734b577c1ab6dc0738a83600374908ea52 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes

1) Use a different content description for temporary new page
2) Use different accessibility description for add widget toast
3) Announce when an item is deleted
4) Announce when hovering over a drop target
5) Announce state during drag-n-drop and widget resize (similar to seekbar)

Bug: 23573321, 24057944
Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1f832f85d59600fc4c212dec51a5112a6b7427d5 24-Sep-2015 Winson <winsonc@google.com> am 2949fb5b: Fixing talk-back folder icon removal regression.

* commit '2949fb5b16a07259e221c5c04470e90c8afb4ea8':
Fixing talk-back folder icon removal regression.
2949fb5b16a07259e221c5c04470e90c8afb4ea8 24-Sep-2015 Winson <winsonc@google.com> Fixing talk-back folder icon removal regression.

Change-Id: I0b7fff645828d5198500973f1c9ea74f406a1a43
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1bf14ff6b734032d703c21c60255dacc13c06ec0 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am f27cb0e6: resolved conflicts for 8ac727b2 to ub-launcher3-burnaby-polish

* commit 'f27cb0e6b1edb2a53de64fdd12d25f400a3acdd9':
Using custom threadpool executor instead of the one defined in AsyncTask
f27cb0e6b1edb2a53de64fdd12d25f400a3acdd9 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for 8ac727b2 to ub-launcher3-burnaby-polish

Change-Id: I34e679bae7faae3c7ca725263fe6cc7c5611e63a
8ac727b2c6627028960a1efe18ab9c72442eef48 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Using custom threadpool executor instead of the one defined in AsyncTask

Change-Id: I8fe95d932c5de14c74f0576bfc3d1f641d12b448
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0abb36f6920733f813e22ad984bb7d48f0924698 23-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Fixing overscroll effect when the navigation bar is opaque

The navigation bar is opaque on mobile devices in landscape mode.
Launcher should ignore the right insets and draw the edge effect appropriately.
Also draw the black bar under the navigation bar, just in case we assume it
to be opaque, but it was not actually opaque.

Bug: 18526657
Change-Id: I1d49dcb82b8a5ee25009bc738cd9b8c0c5c88263
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3c9c7263dcd06cba449597104db039a4019e15ff 21-Sep-2015 Adam Cohen <adamcohen@google.com> am 9ae42fff: am b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby

* commit '9ae42fff6f481ea2a06f171da43f630ded313b69':
Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
9ae42fff6f481ea2a06f171da43f630ded313b69 21-Sep-2015 Adam Cohen <adamcohen@google.com> am b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby

* commit 'b3fff9d98a3e3c886d4efa912d7ad6753dd7ec9c':
Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
b3fff9d98a3e3c886d4efa912d7ad6753dd7ec9c 21-Sep-2015 Adam Cohen <adamcohen@google.com> Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby
4b66bf3cff049ba39da74c0fb0f9edbced410f7c 18-Sep-2015 Adam Cohen <adamcohen@google.com> Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide

-> In some instances, onResume would incorrectly call onShow
-> When pressing Home from CustomContent, we'd get a sequence of onHide,
onShow, and then onHide due to some deferred actions in onNewIntent.
Got rid of the onShow.

issue 17629011

Change-Id: I9b4f2ef682f5a7060e68210866fa05452076e428
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2516428710f13d5abc425c896151ad013267cc3d 17-Sep-2015 Tony Wickham <twickham@google.com> Drags originating in Folder exit spring loaded mode when completed.

Change-Id: Id020473a7a466fa98897455f48d3de7a3bc4997d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6ed058cb6bfbb5756721e0d7f4a80a1c08ee665c 10-Sep-2015 Tony Wickham <twickham@google.com> Wallpaper preview parallax matches the actual wallpaper's.

Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
(cherry picked from commit 3e776a87dc5178ab7d2c31a8db06fe5657db4e4a)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
26bfdd9d5a0cc590d78a849d3401b52c02494a2c 18-Sep-2015 Winson Chung <winsonc@google.com> am a3c9fb12: Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish

* commit 'a3c9fb125c7449df5add990e91e0e3471e3cc776':
Requiring key chord to delete icons and folders on the workspace
a3c9fb125c7449df5add990e91e0e3471e3cc776 18-Sep-2015 Winson Chung <winsonc@google.com> Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish
b3cf2d789e0de5d1f70b3f4ffea9cb6926b43d75 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring deferred bind logic" into ub-launcher3-master
34d2c915c4762a073b60bb676a9e905392e9679c 11-Sep-2015 Tony Wickham <twickham@google.com> Added AppInfoDropTargetBar to spring loaded workspace.

Change-Id: Ieedc68eba9a5934ab30d6d546d8a837274491064
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
527c7d3460345953e6b3427a74b1dacaddcb1111 29-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring deferred bind logic

> Using ViewTreeObserver to listen for onDraw instead of overriding onDraw in workspace
> Loader passes the list of deferrerd runnables to launcher

Change-Id: Ie4877f746c96e9497396de8089f00f70bf867e17
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e33c09f1bef2a1452e5126909f472b8f124b4682 15-Sep-2015 Tony Wickham <twickham@google.com> Merge "Initial spring loaded workspace." into ub-launcher3-master
94e0d37f53e699364ebff732cf75ab81a577fb91 11-Sep-2015 Tony Wickham <twickham@google.com> Initial spring loaded workspace.

It is a bit clunky and doesn't have the App Info drag bar at the
bottom yet, but it is a start.

Also removed page hints because they are no longer used.

Change-Id: I1f8f82d33e6694cab1f1c762e78852ac0d40ab33
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fa56b3f2f1271d6045594eed294b22841c79c783 14-Sep-2015 Winson <winsonc@google.com> Requiring key chord to delete icons and folders on the workspace

- Also fixing case where the all apps button to search for more apps
was not focusable

Bug: 20639227
Change-Id: Ie4d9092e654d3cafc0eb346b3bb744ec3e295e92
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8a511b9123d9219498a8560b1b19e382ebf8cf61 14-Sep-2015 Tony Wickham <twickham@google.com> Merge "Wallpaper preview parallax matches the actual wallpaper's." into ub-launcher3-burnaby-polish
7089a4e197bb14b01f4c485304f205dcb730ad21 11-Sep-2015 Winson <winsonc@google.com> am c0b52fef: Refactoring to ensure item deletion always removes from the DB.

* commit 'c0b52fefbc11531d560359c093484099f9d1298e':
Refactoring to ensure item deletion always removes from the DB.
c0b52fefbc11531d560359c093484099f9d1298e 10-Sep-2015 Winson <winsonc@google.com> Refactoring to ensure item deletion always removes from the DB.

- Routing the various places where we call through to delete from
LauncherModel through Launcher, which will delegate the removal
of the icon from the workspace, and properly handle the removal
of all items and their contents from the db.

Bug: 23944119

Change-Id: I022fe2b3e79da16b5af87505c4362490b8422686
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3e776a87dc5178ab7d2c31a8db06fe5657db4e4a 10-Sep-2015 Tony Wickham <twickham@google.com> Wallpaper preview parallax matches the actual wallpaper's.

Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4cab3b550b3c296cd120bdf23f524f34b155dca5 10-Sep-2015 Tony Wickham <twickham@google.com> Find page for widget starting at current page from overview.

Previously the search began with the page that the user
long-pressed to enter the overview, even if they then free-
scrolled to another page before selecting "Widgets."

Change-Id: Ie286f6864c78b573c05dd9d02c1346e17db711a6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
869306140d3bb8782040ed65d3ae0ba498c2de6c 09-Sep-2015 Tony Wickham <twickham@google.com> When placing a widget, go to a page with enough space.

The search for this page starts at the current one and
continues to the right (on LTR) until a page is found that
can accomodate the widget, taking possible resizing and
reordering into account.

Bug: 11338870
Change-Id: I2e9a310eb8f74024dca9150f55a525e1309c2f07
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
29d853c2ddf6432685a54e3966820f1a81cee183 08-Sep-2015 Tony Wickham <twickham@google.com> Make sure all overlay panels are visible as user free scrolls.

Previously there was a workaround to ensure that adjacent panels were visible
while in the overview or spring-loaded states, but it incorrectly kept only
those original pages visible even while the user scrolled to other pages. So now
we only use the workaround when first entering the overview or spring-loaded
states, and then fall back to the default getVisiblePages() implementation in
PageView when in free scoll mode.

Bug: 23766408
Change-Id: I692ec00b9cd6d7889c374aee41b85abd0a5d8d3c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2c18c8e34d0c06d95f612e865badc082a2cff0e1 03-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 606726ba: Merge "Preventing null pointer crash when opening a folder" into ub-launcher3-burnaby

* commit '606726ba289583a67188d9448b220c2e3fae87d7':
Preventing null pointer crash when opening a folder
a75053f5f90b9494cc60a99e2b80b419eb3724b9 03-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Preventing null pointer crash when opening a folder

Bug: 23770713
Change-Id: I3ce82450358f1493f70639d594e1e3f391945437
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f4f89ef608245d39bbddda05f291361d2ae06667 03-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Using context.getString for getting formatted strings, as it works better with different locales

Change-Id: I9639bb11197e656c5cdd3a4d63f913edcc0987cb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
785f7a59d347b199d544d9c9c38f6f3eb26b0085 01-Sep-2015 Tony Wickham <twickham@google.com> Previews in the wallpaper picker are offset to match the homescreen parallax.

When "Wallpapers" is selected from the overlay, the current wallpaper parallax
offset is sent to the WallpaperPickerActivity as an Intent extra. The CropView
then uses that offset when previewing new wallpapers to ensure the preview looks
exactly the same as the actual wallpaper will when set.

Note that this fix doesn't seem to work for DefaultWallpaperInfo - that will
come in a future CL.

Bug: 23568800
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e2fd14b9f61d58297ff962e8c31f49439e0309a9 28-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Jailing the saved instance state of all the dynamically generated views

Using itemId instead of generating a new id for each item. This is because
if the process gets killed, View.generateId will get reset but we will still
receive the generated item id map in onRestoreInstance. This will cause
conflicts with newly generated item ids.

We wrap all the generated homescreen views inside a single sparse array. This
ensures that we do not cause any conflict with dynamically generated views in
other parts of the UI.

Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
756cd26592dee6b956becdc24d60995c64de9153 20-Aug-2015 Sunny Goyal <sunnygoyal@google.com> General code refactoring
> Removing utility method for isAttachedToWindow
> Moving logic to calculate cell size from workspace to DeviceProfile
> Replacing some constants with xml resource variables
> Saving the item info using content values for better compatibility with other methods

Change-Id: Idd612633d97a6241cb31148df9466031374bd5a0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
04540ca9e6ebf859dcff439e30ba4dbefc7bf068 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Merge "Moving drag-drop related code into a separate package." into ub-launcher3-master
fedca43d396d6fd7c46fbb2f37dfa7cfe3b31834 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Moving drag-drop related code into a separate package.

This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl".

I'm not moving DragSource because it's referred from gsa code.

Bug: 22609426
Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ecf9bf4613c6c307af1077b9a5c6c889da7d213b 19-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 63aa4653 to ub-launcher3-master

Change-Id: I9fb7e452fdc646dc3d764d61d92755fa43edfa65
4b17147c28488c20b01aea18297fd6a327bad213 19-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Updating logic for setting wallpaper desired size
> Only setting desired size on wallpaper change for pre kitkat
> Removing wallpaper change receiver from manifest
> Removing multi-process wallpaper shared prefs for kitkat+

Bug: 23353784
Change-Id: Iba72d32871ee50b75807e2284a73a691bcddc472
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7c3cccf427be23990d7bbc797a3106de69389586 19-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Fixing empty screen created at the end, even when dragging the last item on the last screen.

Change-Id: If0d4faf0ca15e71facb6ed2fd81ed6a589527836
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c268148f06f5c6c30deb1678e74530ef5aa85a67 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 9fc953b9 to ub-launcher3-master

Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Version code cleanup

> Renaming Lmp to Lollipop
> Lollipop_MR1 instead of directly using 22
> Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
106bf64f4a5b4b7772c971f62b6207b5a73529a2 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Some cleanup around drag and drop

> Instead of resizing the rect for dragoutline in onDrow, store the resized rect itself
> Remove unnecessary inverse matrix calculation

Change-Id: If13c3c5aaecba5a1d3a4f5d39199ed82e9662c62
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
cc436d5d95af1aff9d486ce25f7965d159f871bb 12-Aug-2015 Vadim Tryshev <vadimt@google.com> Fixing crash upon cancellation of an accessible drag.

This fixes perhaps an old bug.

If we started an accessible drag for an only item on a page,
then uninstalled the app while dragging, the page was removed
without unsetting its accessibility delegate. Later, the system asks
the delegate to do something, but the drag is over, and some pointers
are null, so everything crashes.

Fixing this.

Bug: 22028725
Change-Id: I85adcd42ae896603634994e20a7790792f7e84b1
(cherry picked from commit de1e67c38856ab1253426bfb4f892895eeb5f6d9)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d209f9e4e9cadf3f5c56c6ce25ec61f37493a2e9 12-Aug-2015 Vadim Tryshev <vadimt@google.com> Merge "Fixing crash upon cancellation of an accessible drag." into ub-launcher3-master
de1e67c38856ab1253426bfb4f892895eeb5f6d9 12-Aug-2015 Vadim Tryshev <vadimt@google.com> Fixing crash upon cancellation of an accessible drag.

This fixes perhaps an old bug.

If we started an accessible drag for an only item on a page,
then uninstalled the app while dragging, the page was removed
without unsetting its accessibility delegate. Later, the system asks
the delegate to do something, but the drag is over, and some pointers
are null, so everything crashes.

Fixing this.

Bug: 22028725
Change-Id: I85adcd42ae896603634994e20a7790792f7e84b1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3759d1bc59550c4038f43c229e08d19f7155d8b7 12-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am b0d868f7: Merge "Preventing zoom-in animation from running everytime the app updates." into ub-launcher3-burnaby

* commit 'b0d868f73037e0f732fa71d4bf557d4fcb1ed36c':
Preventing zoom-in animation from running everytime the app updates.
3fcab663a141b31916152c8bc185b93b718d79df 12-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Preventing zoom-in animation from running everytime the app updates.

Bug: 22557455
Change-Id: I3ac1212a2f319397cd18be8f4452047d974312b8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2a87fe8c41338e746c6959d992edfeb9cb00bcc1 07-Aug-2015 Winson <winsonc@google.com> resolved conflicts for merge of 0ad33066 to ub-launcher3-master

Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70
0ad330668462b9385900a7b1a163d536bbabc1a4 05-Aug-2015 Winson Chung <winsonc@google.com> Merge "Refactoring search bar animations." into ub-launcher3-burnaby
006ee269ba2e9946a83b42f96d4a0296254cba4a 03-Aug-2015 Winson Chung <winsonc@google.com> Refactoring search bar animations.

- This refactoring ensures that LauncherStateTransition does not
do its own animation on the QSB, and that all animations to the
SearchDropTargetBar go through its own animators.

Bug: 22515084

Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f9ada46270abcf23997eb1e0675b4d44e5c97673 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 317698bd: Loading high resolution icons for first 3 items in a folder

* commit '317698bd012c1930b83bb4e2e47ac9e363fa6c6a':
Loading high resolution icons for first 3 items in a folder
317698bd012c1930b83bb4e2e47ac9e363fa6c6a 29-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Loading high resolution icons for first 3 items in a folder

> 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
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
488d4bdf26fb8cefd4f2f83535fde1b07202b545 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of c451da70 to ub-launcher3-master

Change-Id: I738fa16f82b3f3f1f6c63c5d1ce81347ade6467a
912bdfcffa04f8917ff56cc4e059208c13cbe29c 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Replacing exception with a log, when uninstalling an app leads to an illegal state

Bug: 22491055
Change-Id: Iaf5fe20b717102bdb0a5442dcc33efea30c50d47
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6eeab68fd4a5ba51e32717b18c40e9bea8b38e97 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing drag outline positions for folder over hotseat

Bug: 22506247
Change-Id: Ia2508307554089205fd678987454e81cb811a59b
(cherry picked from commit 92bce4316422c69ee26e6ece204fbf1499753086)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
687ae8483daad60dc60e884c031d2dd340ac7d4a 29-Jul-2015 Winson Chung <winsonc@google.com> am 946609f0: Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby

* commit '946609f0ea70e1361dbe979af0e054d4c18b929b':
Fixing overview mode scale calculations.
5e758cae9a9f4348ab519082e3b54fd3ff70de3c 28-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Changing the dogfood check to a static boolean to better handle proguard optimizations" into ub-launcher3-master
92bce4316422c69ee26e6ece204fbf1499753086 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing drag outline positions for folder over hotseat

Change-Id: Ia2508307554089205fd678987454e81cb811a59b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6c56c68555dcb3d99b05d5faecd582a1f683cc92 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Changing the dogfood check to a static boolean to better handle proguard optimizations

Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4f7eb4077e901a28b2b698060079292b56e991bd 11-Jul-2015 Winson Chung <winsonc@google.com> Fixing overview mode scale calculations.

- Making the overview scale apply just like the spring loaded scale factor
- Tweaking overview scale to make it not so small

Change-Id: If93bac08609b0cfd9c9d9f8f6057498957378b56
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3f99a1440ed32acdcbc088ceff93d80f98df15c1 11-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing screen jump when going to spring_loaded mode in rtl" into ub-launcher3-master
6d5fd2aee82707d00ff2cdb5ff7658e94fb6add7 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> am 4a0df755: Merge "Computing the visible cell layout area without using the current scroll" into ub-launcher3-burnaby

* commit '4a0df755161c65e2d24299aeaf7408b2e97036d3':
Computing the visible cell layout area without using the current scroll
ce5a7e5ee4c880081faef3a508f68725d0317ee9 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing screen jump when going to spring_loaded mode in rtl

> Removing call to snapToScreen when changing state
> Marking adjacent pages visible in overview and spring_loaded mode, so that they get drawn atleast once.

Change-Id: If305e0d4cfa63bac03f301d69017da55f89155bd
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
41d8417678934449c2692a97c0ae7b0d8ac27326 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Computing the visible cell layout area without using the current scroll

Bug: 22358433
Change-Id: Ib79d02156b6bfab831fa659637f6113a7f555ba7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
cf25b52763f3fa376aee7c4a63b5a064ca1c0e2a 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused PagedView attributes

Change-Id: I1c7312b46ec95286d8e49d3dee60b1bf4d98dc20
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3a56edb0eaed7424dba1541908c6c351ae40ca58 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring ItemInfo" into ub-launcher3-master
f89aa3579a42f234b045546257b8e449e2c6fa8f 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Hiding workspace from accessibility when its not visible

Bug: 22234780
Change-Id: Ie91ec59c3c3abb26fdf40466ea8173c78acb320f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
aa8ef119f18864f4ab41c12f9c2ad6d7f643a0a9 13-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring ItemInfo

> Changing dragObject to ItemInfo
> Removing dropPos which is always null
> Removing requiresDbUpdate which is only used in CellLayout

Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4d113a5ff44ff1a7f19263bde21581fbf9a54212 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Using material style overscroll effect for workspace and folders

Bug: 21335369
Change-Id: I53cc6edfa87334b9326f1dedd90c3e2222beade5
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ef7f874a889b609bd34e692b9c9a1f8cefd1ea95 05-Jun-2015 Winson Chung <winsonc@google.com> Refactoring all apps search to support external search bar.

- Adding support for an external search bar that can be used
to search a container view. This adds a new interface
AllAppsSearchController which manages the external search
bar. Each controller will have its own search implementation
which means that we no longer need a common AppSearchManager
interface.
- Removing elevation controller as we no longer have a builtin
search bar in all apps
- Refactoring container view insets so that they behave
the same in all containers.
- Refactoring apps view to ensure that we only update the number
of columns with the available width
- Cleaning up LauncherCallbacks interface

Bug: 20127840
Bug: 21494973

Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4f3e9383eb422c87e2689548653b89f34f5516a5 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Code cleanup

> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0c9143d06b64ca40c64e66ddd65848deeead8131 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Preventing overdraw in custom content screen

> Assuming customcontent screen is opaque, setting scrim alpha to 0
when the screen is fully visible

Bug: 21584384
Change-Id: Ifa95a10d880532f59573090673e90a87c7edba9b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8f1eff7b6cc8621888ee46605c32e601f80a890b 29-May-2015 Winson Chung <winsonc@google.com> Adding context for app launches.

Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
80aa3ec40ff78ba3cdc7b4c299e271a110336ec0 30-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing screen jumps when performing DnD in rtl mode" into ub-launcher3-burnaby
2b7bf87bba2a17374958b73ef07397282d7e655e 28-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing screen jumps when performing DnD in rtl mode

Bug: 21445825
Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8b80baec0600fc1afa0806218c7eab9863907e96 28-May-2015 Vadim Tryshev <vadimt@google.com> Merge "Fixing non-scrolling of workspace view after opening/closing AllApps vew. The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView." into ub-launcher3-burnaby
7af0d4474fe811b66db67f358ee0b5ef84b97a18 15-May-2015 Vadim Tryshev <vadimt@google.com> Fixing non-scrolling of workspace view after opening/closing AllApps vew.
The reason for non-scrolling was excluding the pages view from the
accessibility hierarchy by marking it as non-important. So, I just
removed the code manipulating [non]importance of the PagedView.

However, this would make the PagesView accessibility-focusable, which is
undesirable. It becomes focusable because it supports long clicks in "normal"
mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is
fetched NOT via accessibility long-click), I just disabled accessibility
long-clickability, which made PageView non-focusable, and it started to behave
correctly.

Bug: 21281859
Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
58376925f9596c23f5c9ffa6c99630dfddcfce9c 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing page background not displayed when dragging from all apps

> Adding empty page synchronously, instead of waiting for a frame
> Changing launcher state from widgets screen in the same frame, similar to all apps
> Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag
> Using first page to get page bounds in drag layer, as last page may not have been measured

Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5a1f53b306a4fcf56aad577987386ea1b2dfe6b9 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing SmoothPagedView as all its methods are disabled

Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c6205603efe1f2987caf96504c87d720a25b5a94 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Creating landscape and portrait device profiles at app initialization

Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2805e639cdea6ae0051155611d122ed27556e658 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Animating workspace active background change

> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2e6da1539bc7286336b3c24d96ab76434939ce4d 06-May-2015 Adam Cohen <adamcohen@google.com> Refactoring DeviceProfile

-> 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
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
20812e96402900d3ac0e007b5b63faaf1b06e5f9 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing some unused functionalities" into ub-launcher3-burnaby
057397714327b42c55804624cc06c7761d999f84 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused functionalities

> Removing obsolete progrard rules
> Removing BackgroundAlphaMultiplier from CellLayout, which is always 1
> Removign otiline animation from workspace. This animation never runs,
as it is called during startReordeing which always happens when
overview mode (workspaceInModalState() is true)

Change-Id: I43219e41ea188771bc818988c1bcbd523f28cba6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
83a8f042adda926489494dff217c15ab696139b4 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to accessibility package

Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7066003b2032a49ae5e59dab9b706259bdeb7e6e 14-May-2015 Sunny Goyal <sunnygoyal@google.com> Various lint error fixes.

> Fixing some RTL errors by specifying both marginStart and marginLeft
> Moving all layout direction checks to Utilities
> Explicitely adding @TargetApi before every method

Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dfaccf64bd59343de483b12eee6db61c960aedce 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Various icon size changes

1) Setting different icon and text size for workspace and all apps
2) Setting padding during BubbleTextView inflation

Change-Id: I59da6986b0d98e8e2aa6065743bb799a6bf06a37
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ddc20bff8f09aadf65a3913ee56ff9a56e5beadc 11-May-2015 Sunny Goyal <sunnygoyal@google.com> When updating an icon, keeping the drawable padding same as before

Bug: 17879518
Change-Id: Ifc819c353069bf470fd7ef6f989e4a2ea1289d2d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
067e5e0177a4429e8833b2fd96725eb92e48ab8a 07-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing some dead code in paged view" into ub-launcher3-burnaby
8e2133b2c2bde86f913d817942bafdcf6818470b 06-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing some dead code in paged view

> Removing fling to delete pages
> Removing delete drop target for pages
> Removing syncpages support (was used by paged all apps)

Change-Id: I0a35ae30da8c48a27aac341bbee9fb5623665902
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1d08f70441999c66b76c97e48b4149e1433be3c3 05-May-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility: Page re-ordering in overview mode

Change-Id: I5fc0ad326a63b6768cb1fae55ee6e05a9fc2b659
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2a53cb7a5e86920fdc9063ddf3966af5d5472c56 05-May-2015 Winson Chung <winsonc@google.com> Merge "Launcher-side changes to support prediction bar." into ub-launcher3-burnaby
cd99cd3ed6a84b9dcd8f4c60b0941760f85a64ce 29-Apr-2015 Winson Chung <winsonc@google.com> Launcher-side changes to support prediction bar.

Change-Id: Ib9974ad8888ad87137c774f9f531fae9d56b899a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ddec73471eb6cc1f15eb9421a205bb2362509075 30-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Updating fling to delete anim

Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e9b651eef1b9f3647eba94f833bff3fc52f5956b 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Enabling accessibility drag and drop in folder

> Moving DragAndDropAccessibilityDelegate to a separate class
> Using getFocusedVirtualView() instead of using DownX and downY
> Updating various accessibility strings

Bug: 19776741

Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e2df0620c13b9dc7e63224153b98fdbb48546f9b 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding LongArrayMap as a replacement for HashMap<Long, E>

Change-Id: I4710e6db69abcdbd897a8401fc8b980c09e2ffef
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1a70cef9884270f2f0a760f079a10fdfb1544c98 22-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes

> Enabling top bar buttons in accessibility drag-drop
> Unifying logic to show delete/uninstall/app-info targets
> Announcing cell loction as 1-index instead of 0-index

Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
756adbc3e41ee1edb53c580b8c679f343924fab5 17-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Fixing missing updates in package install sessions

> Ensure icon cache never returns null icon
> Enabling install shortuct receiver only after workspace has finished binding
> Making all the model changes for package installs on worker thread and only
posting the updaes on the UI
> Making shortcut exists check on the loaded items and not on the DB
> Explicitely using worker thread for PckageInstallListener
> Removing backward compatibility support from PackageInstallerCompat

Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dc61c4d41468a8beced2863de1b863b340cf49ba 21-Apr-2015 Winson Chung <winsonc@google.com> Refactoring to single path for overview mode.

Change-Id: I590a813c6f031342d75c3a6c3e9c9afda1808f2e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e655639609f3e6ae3124034860f975a66026a832 18-Apr-2015 Winson Chung <winsonc@google.com> Merge "Accounting for recent changes in padding when detecting backgound taps to close AllApps." into ub-launcher3-burnaby
466663edeec8d889aca37612aab2ab2d67da4ad8 17-Apr-2015 Winson Chung <winsonc@google.com> Accounting for recent changes in padding when detecting backgound taps to close AllApps.

- Also ensuring that we keep the search bar visible in all apps only if it is being overridden.

Change-Id: Iba980ecec255da80aff8ff57b42ad99d70a2122a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fa401a10e7e9341daf6f3c5949bf9331902c26d0 10-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Updating drop button targets

> Splitting DeleteDropTarget into delete and uninstall
> Showing UninstallDropTarget for app shortcuts on workspace
> Showing InfoDropTarget only when developer options is enabled

Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3fa3c127618ed928179be1bac138466d0e2bbce8 15-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Fixing pallpaper parallex in rtl.

The rtl mode, the first screen should correspond to the last
opage offset (since page offset are always defined as
left-to-right)

Change-Id: Ie31139166bd71c423c63968760493ec572af81e9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0f785720667ab8afe4b4620a6c333d382d8659ed 08-Apr-2015 Winson Chung <winsonc@google.com> Initial changes to support a fixed all-apps layout.

- Dynamically update padding and background depending on fixed bounds and searchbar
- Fixes issue with drag layer bg getting clobbered when rotating launcher
- Tapping outside the bounds of all apps should close all apps
- Fixing typo causing widgets to not show in sw720dp devices

Bug: 20127840

Change-Id: I29c3f905bdee940f938ffe054f58434887073092
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3f471440a8b6b71d4c15501a96befd3b715c9e8f 09-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray revamp work
- RecyclerView is rendering
- Animation is connected
- Drag and drop is now handled
- UI tweaking: background, margins, more to come.
- Flicker and preview not loading issue:
fixed height for the horizontal scroll view.
- Shortcuts are added
- Widget Preview loading should support shortPress for drop
- UI tweaks left: overlay of arrow when there are more items to scroll
- icons are added in the section header
- Sorting of widget sections and widget horizontal list
- Adding all the padding constants to dimen.xml file
- RecyclerView should only support one view type

For items to be addressed in follow up patches OR CLs,
TODO is added to the comment.

b/19897708

Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1d4a2df091e2b5928406ea503321563a0ec8a01e 30-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing ContentObserver from LauncherModel, and calling reload
whereever necessary

Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e9909f58c2b235f8066295c4faa6a00415968ae7 26-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing UninstallShortcutReceiver

> Removing support due to its flacky design. Removing a shortcut
causes a full reload. Also we do not have any concept of owner, so
any app can remove any shortcut.

Bug: 11372484
Change-Id: I781c922fac7dc77ea82cd0a2af74a5fca22500de
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3d9490ab9520ffe3798539ed1626463a7eb6c9e1 25-Mar-2015 Winson Chung <winsonc@google.com> Removing more code with API 21 dependencies.

Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5319b2bb3ba25fa658f58c18130c91d9efb1f677 21-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing all dependencies of launcher code on wallpaper-picker" into ub-launcher3-burnaby
6a1e95a3dfb5eb65cc2c682c5ede9e22cc7ff7d9 21-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing all dependencies of launcher code on wallpaper-picker

> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5b0e669169ea2c951bf2f6f71faf793b24db3c23 19-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Rewrite: Widget preview loader logic

> Widget previews are saved in data dir instead of cache dir
> Expiring widget previews similar to IconCache
> Removed support for setting thread priorities

Bug: 19865031
Change-Id: Ib6033c2b1ff8ae61bba8762ca994ccd8217d3c75
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
091440a9cb9d4f42406631004aa484cbb79214ca 18-Mar-2015 Adam Cohen <adamcohen@google.com> Reducing method count by eliminating synthetic accessors

Elimates 304 methods based on dex analysis

The java compiler generates sythetic accessor methods for all private
fields, methods and contructors accessed from inner classes. By marking them
package-private and @Thunk instead, sythentic accessor methods are no
longer needeed. These annotated elements should be treated as private.

Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
26ace12135a662ad864678c9fede9817e5c02b67 16-Mar-2015 Robin Lee <rgl@google.com> Don't clobber widgets with the same component.

By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
34b6527cefd36fbd5da78464ce9771e379158552 12-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Lazy loading high res icons

> Loading low-res icons for icons which are not visible on
the homescreen.

Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b745afbdd75157c73d581b345118cdaff99e912d 02-Mar-2015 Winson Chung <winsonc@google.com> Initial changes to break out AllApps into its own view.

- Moves launcher state-transition code into its own class
- Moves all-apps related code into a separate view/set of classes
- Implements a basic list view for all apps

Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
434e667b5b488d6212e8c77c8ad3b02c4af37117 10-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Ensuring setQsbSearchBar is called whenever the QSB is created" into ub-launcher3-burnaby
ec3682b5647630d72f9533d11f2deaad5b620cc0 09-Mar-2015 Adam Cohen <adamcohen@google.com> Merge "Enabling accessible drag and drop" into ub-launcher3-burnaby
c9735cff2e558aa3f3810e49c15ef13049b9429c 24-Jan-2015 Adam Cohen <adamcohen@google.com> Enabling accessible drag and drop

-> Using the context menu, and a new two stage system, this allows
users to curate icons and widgets on the workspace
-> Move icons / widgets to any empty cell on any existing screen, or
create a new screen (appended to the right, as with regular drag
and drop)
-> Move icons into existing folders
-> Create folders by moving an icon onto another icon
-> Also added confirmations for these and some existing accessibility actions

Limitations:
-> Currently, no support for drag and drop in folders
-> Considering moving the drag view so it doesn't occlude any
content (in particular, when user changes pages)
-> In this mode, accessibility framework seems to have
problems with the next / prev operations

Bug: 18482913

Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
95deb3a57cfebe51e5b8ea74e0a870123d1347e9 05-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Fixing icon disappearing on dropping to workspace

> It was created in ag/645900

Change-Id: I31ca5bf9763292517fa5ee3ccd867897bca45bad
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
64b3fcc9f7bd951530bf9b78339882d7b104b50e 04-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Ensuring setQsbSearchBar is called whenever the QSB is created

> On launcher3 when the QSB is created for the first time after a
widget drop, it is not set in searchDropTarget and as a result
the "Remove" and "App Info" drop targets are not visible until
Launcher3 restarts and rebinds QSB

Change-Id: I599a9a18cc5d46af790b3145dae2eb385b32b20e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9282059e44604330763340e6c37ffb653b8ef187 02-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Fixing wrong check to determine the drag source

> target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget

Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4fbc3828c5ae1e8c5789ede974447fa365f3c5a1 19-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Updating IconCache to maintain a persistent of icons

> IconDB maintains a DB of icons keyed on ComponentName + User
> During loader, icons & labels are loaded first from the DB, and
if the entry doesn't exist, loaded using packageManager
> After the loader completes, IconDB updates any entry which might have
changed, while the launcher was dead.

Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1587d5362f5a66e005aa36fdfc7082c34b8ea3b7 29-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring common methods

Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
31178b8237ccb6af666df60ef60c116c8afdf316 24-Feb-2015 Hyunyoung Song <hyunyoungs@google.com> [key event focus handling] (1)hotseat <-> icon now symmetric, (2)support DEL keycode

TL;DR; (1) Key event navigation from and to the hotseat and icons in the workspace
is now symmetric. Since there is one more icon in the hotseat, only left
N-1 icon navigation was symmetric.

(2) KeyEvent.KEYCODE_DEL and KeyEvent.KEYCODE_FORWARD_DEL can now delete icons
from the workspace. The focus move to the previous icon where the focus
traveled from.

Also contains minor styling and indexing issues.

Bug: 15408321
Bug: 19381790

Change-Id: I16cbcb2693e92eebb830997d01c0bf674073dd51
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
387f4a7b36104d3e7f57d02bf386f86ff3c3472e 17-Feb-2015 Sunny Goyal <sunnygoyal@google.com> am fce720f3: Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte

* commit 'fce720f39adcf8a35b93978c36ab0e8833a74e3e':
Fixing crash when dragging and dropping a restored widget.
fce720f39adcf8a35b93978c36ab0e8833a74e3e 17-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte
2434d40ef271966096fea707ac4207d80d1b2901 17-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Fixing crash when dragging and dropping a restored widget.

> When the widget is in pending state, AppWidgetProviderInfo is not available

Bug: 19364311
Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
97079bc7d55e031f5f804a86c6cc7ff929395838 14-Feb-2015 Adam Cohen <adamcohen@google.com> am 80e6beb4: Ensure that layers are properly removed after animation

* commit '80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf':
Ensure that layers are properly removed after animation
80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf 14-Feb-2015 Adam Cohen <adamcohen@google.com> Ensure that layers are properly removed after animation

Bug 19243980

Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
14334bda039b0f70980e8782e379c5df059a5d6e 12-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-master
09cd92221e407810c2f83ab2305f42bb47197e1b 11-Feb-2015 Hyunyoung Song <hyunyoungs@google.com> Remove meaningless bug id from from addDumpLog and Log.d methods
b/11683562
b/6557954

Change-Id: Icd0e237ebb09ac868928328f45a3b30cf19a20df
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
66cfdc2549b973496f2d5555defc22b7a15b5620 02-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removing code for the unused 'upgrade path'

Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c46bfef5dfd8c6867641bdc32c27b03e2f183726 05-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Removing support library dependency

> Removed FolderAutoScrollHelper as folders are currently not scrollable

Change-Id: I261f43a665b742697e3224e1e9852ccc526badcd
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
71b5c0b988a64b3a0613ded5403749bc537ee8a5 09-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Adding accessibility controls

> Adding 'Remove' option to workspace items
> Adding 'Add to workspace' to all apps and widget list items, which
adds the item to the first available space, giving preference to
the current workspace screen
> Adding 'App info' and 'Uninstall' options to appropriate items

Bug: 18482913
Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5940042d39b576553c2499bcf3d0641281e6ad52 06-Mar-2014 Adam Cohen <adamcohen@google.com> Supporting custom widgets provided by launcher

-> This change provides integration for widgets provided by
the launcher package which can run arbitrary code.

Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
08072c05bf9c760acff653545a795a0fae4bd917 19-Nov-2014 Adam Cohen <adamcohen@google.com> Prevent multiple workspace state animators from being started

-> Probably an issue with the way we're wrapping ViewPropertyAnimator
which can lead to us acting like it's valid to have multiple
instances of a VPA. In reality I think this is very problematic.
-> For now, we can just make sure the previous animation is canceled
if it hasn't yet completed.

Bug 18428886

Change-Id: I097eec08ec68ed098e68866fb5eda72734c51b00
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
416541cc0e03ccd919d5669f0d06ef42a3b7ff21 14-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Adding a few null checks.
1) During migration, if launcher2 has deleted user data,
migration oes not happen
2) If Launcher3 does not has bind widget permission,
QSB would be null.

Bug: 18388507
Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
594d76dc66cb5666830b62594909fed187987d42 06-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Using the default search widget in Launcher3

> Removing all logic related to search and voice overlays
from Launcher3
> Using the widget provided by global search provider on the
homescreen
> Removing VoiceButtonProxy, as it is not being used anymore

Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8c4ca9277dcb92cb965a1e58eef59ad9868ae44e 25-Oct-2014 Adam Cohen <adamcohen@google.com> Fix edge case where LauncherOverlay scroll woudln't be reset

-> If the Workspace has a single page and the user goes from overscrolling
in one direction, and then the other, the LauncherOverlay scroll wouldn't
be set to 0 until the scrolling settled

Change-Id: I29ee9abdfa023ae3599d1590cdaebf457e2220fa
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
24e18aea81ad0c411ce5adb13773595005f8565f 23-Oct-2014 Adam Cohen <adamcohen@google.com> Merge "First pass of the Launcher Overlay interface / impl" into ub-now-queens
c2d6e897dbcb96b7b629e42002966368fbda2f95 16-Oct-2014 Adam Cohen <adamcohen@google.com> First pass of the Launcher Overlay interface / impl

-> Added simple reference launcher extension
-> Make launcher able to handle a null qsb

Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1231c0743cce0b6b70951d1df3e4b0876c444598 21-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating ItemInfo objects in the worker thread" into ub-now-queens
9211d42f139eeaeeaef1fe4e59df2349e6d1237a 08-Oct-2014 Adam Cohen <adamcohen@google.com> Use LauncherCallbacks model instead of method overrides

-> When extending the Launcher Activity, instead of overriding
public and protected methods, create a proper interface
-> This helps define the interface when extending Launcher
more formally and more clearly

Change-Id: Ib38e8a376b2242d4078bf6856bb145f5b5f0da80
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4390acea35aefae52bd3fe38f5fdbb7ea322afb0 13-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Updating ItemInfo objects in the worker thread

> Launcher was making non-trivial updates to ItemInfo objects
on UI thread. These updates were getting skipped when the
Activity gets destroyed (possibly due to onConfigurationChange)
> Unregistering SessionCallback on application onTerminate,
rather than activity onDestroy

Bug: 17941096
Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1a745e8f18e54aff152ff51743ae7595adde6927 03-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Keeping icons in disabled state when SD-card is unmounted

> changing shortcutInfo.isDisabled to be a flag based variable
> on received OnPackageUnavailable, icons are disabled from desktop
instead of being removed. Icons in all apps are removed

Bug: 15852084
Bug: 16238283
Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b50cc8c5d6125715b139d978887830a5341971aa 07-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Updating icons for sortcuts when the target app updates.

Bug: 17398260
Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
acefecbff3141b43dc55fe18146cf842d1d4a8ae 19-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating promise icon's bitmap and label when onBadgingChanged is received" into ub-now-porkchop
a22666f68151269853e7ab6ab696ee6361bac793 18-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Updating promise icon's bitmap and label when onBadgingChanged is received

Bug: 17583799
Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
83e5941d8ef6ca33bdd6278f6089c8d6d00de942 18-Sep-2014 Adam Cohen <adamcohen@google.com> Fix NPE in Workspace

Bug: 17503479
Change-Id: Ib20dfd67c5a755cd4b684163bb538a1bf77fa6ca
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ad5c2bf9983f6685d9ce6b2099ccdfd7ad83def9 10-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Updating shourcuts only when the corresponding user also matches the AppInfo

issue: 17480447
Change-Id: I0afbd80e760b7b73b84e483be325b2e905d65a00
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1c13ff569170bec075ab9961fbc0eb1ca395696b 05-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Handling label and icon from SessionInfo." into ub-now-porkchop
66205ce9ceb46a821c9a2d93745226d67f1b119a 04-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating content of page description frequently." into ub-now-porkchop
349426234e8c5a0e5bcf2c8d94dbb9844b5f724a 30-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Handling label and icon from SessionInfo.

> The ShortcutInfo stores state as bit flags and not as ints
> Intents of auto-install shortcut are automatically updated
upon installation
> Icons/titles for active sessions are cached in IconCache

Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2854d256192a8260ddeb2f2e94bc1a2fc5f6ef71 28-Aug-2014 Adam Cohen <adamcohen@google.com> All apps transition work

-> Fix icons popping in
-> Fix issue 17259204
-> posting animation start and buildLayer to allow first
frame to be ready. This becomes necessary with RevealAnimator
on the render thread, since it can't use FirstFrameAnimatorHelper
any longer.
-> adding a bit better transition for K, issue 17252683
-> updating a few assets

Change-Id: I0b193b4b3b511492a2fad6230cd91e3f0de634f0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4cbf046bf9fd1b4a40563a960a758e0a02b90538 29-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating content of page description frequently.

> Removing unused search icon page indicator

issue: 17256565

Change-Id: I95158cf68f98b2af847cefb4d126468b908301e2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e7b8cd9e4f8d38d0445f3a032fafd44332f70878 27-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Improving restored widget behavior

> Clicking a broken widget install shows a dialog similar
to an app icon
> Clicking remove on the dialog removed all components
for the corresponding package
> Widget pending view shows 'Setup' text instead of icon,
if there is enough space

Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
424418bb50ccf5d9270650b70cc51f423da51a65 23-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating clings, removing ununsed clings

issue: 16127412

Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b3726d90a567e992e4d0f43e7c7acdd8739ae805 21-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Changing hotseat keyboard controls

> Left and right keys don not navigate to next/prev page
> Down arrow on apps apps last row, do not take the focus to the end
> Nagivation sounds when focus changes

issue: 16352221

Change-Id: I5982f22dc80c408673092f8fa8ca1b2fc6381635
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
22308ce1b858aa9a4e9068ea4fb1d47e62fc6e67 20-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating the icon click feedback" into ub-now-porkchop
2111606845bec8b40e8eb164c73c60f59c028014 20-Aug-2014 Jan-Willem Maarse <maarse@google.com> Merge "Ignore generic motion events if custom content doesn't allow scrolling" into ub-now-porkchop
c50438c802355dff714b04f42a32e518cb9e91d8 20-Aug-2014 Adam Cohen <adamcohen@google.com> Unify next / prev page hints for drag and drop across devices

-> Eliminate the white bgs on tablets during drag (issue 15880213)
-> Add stateful (active and rest) next / prev page hints (issue 15937059)
-> Fix recent regression which allowed overscroll in custom content area

Change-Id: I1198dc88ca8570cb9e1afd3ca939be06a8dea92e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
508da15509224b46fcccabbe78f3e92fe69a67d8 14-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating the icon click feedback

> Using BubbleTextView everywhere, removed PagedIconView
> There is a brightness feedback on touch and shadow
feedback on click, until app launches

issue: 16878374
Change-Id: I3dc1149a123c8a75feca6210948398bf2187f1f2
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d3fbe683bb52c8be9a14783bb70f32a46cf6f6db 20-Aug-2014 Jan-Willem Maarse <maarse@google.com> Ignore generic motion events if custom content doesn't allow scrolling

If the custom content screen is selected and it doesn't
allow scrolling, the workspace should ignore generic motion
events instead of trying to scroll to the next page.

Change-Id: Iee9c7e02bf7c78648b574a01c83dcb76c0b62855
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1e4359c54e82910e3c8bfba3d520ed27c91367b9 18-Aug-2014 Adam Cohen <adamcohen@google.com> Adding dampened snap back overscroll to Workspace and AppsCustomizePagedView

issue 15475254

Change-Id: I5eb9fc480167faf4be16bd17bf18e2d103f40f47
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
63f1ec00fbbd109130d1e476371dbc9a87bb544d 12-Aug-2014 Adam Cohen <adamcohen@google.com> Further refinement of all apps / widgets transition

Change-Id: Id107a9aff74f014c07f8cbea6e74951a02dbddab
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0fc1be164e982433e619bcbb16aa67e28ff681ef 12-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating the ui for widget restore flow

> Pending widget show a PreloadIconDrawable to indicate
installation progress
> Only the concerned widgets are reinflated on package
install and not the whole workspace.
> Adding support for storing default package icon in
IconCache

issue: 10779035
issue: 16737660

Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e3a55a9f4253e77c770f376c00366774cec2bead 11-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating the virtual preloader UX." into ub-now-porkchop
95abbb330ce9bbaf23594245f0f8a795c8118038 04-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating the virtual preloader UX.

> No click feedback when in preloader mode
> No preloader UI when drawn in drag layer
> The preloader consists of a background 9 patch image and a circular progress
is drawn in the content region of the background.
> The preloader is drawn in a slightly larget area than the actual bounds to
make the circular progress more prominent compared to the icon.

issue: 15835307
Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
056cf62bbb0edc46199b3791861caf4249da3ed5 11-Aug-2014 Sameer Padala <sxp@google.com> Merge "Update code so it compiles on google3" into ub-now-porkchop
6551b7ef07b4d73c096cbfb22002e080b498cbbb 11-Aug-2014 Adam Cohen <adamcohen@google.com> Merge "Updating the widget tray" into ub-now-porkchop
4e243a2dad3700868035256af1882d7a4fee2385 11-Aug-2014 Adam Cohen <adamcohen@google.com> Updating the widget tray

-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL
-> (removed Context#getDrawable() calls, L-only)

Change-Id: Ia65a6eb704b35f74e7305be9334c27971b22235a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
65c6011d0954223c14a0e6127cf307c18f7c2c0d 09-Aug-2014 Sameer Padala <sxp@google.com> Update code so it compiles on google3

Change-Id: I76c6a5264585c8ad4ded22501d2e2ee1672308c3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5337aea1536c11e5bfef49a14297fd4649baa3a3 11-Aug-2014 Mark Brophy <mbrophy@google.com> Merge "Revert "Updating the widget tray"" into ub-now-porkchop
fd0f02ce428880e7dc59ebc94717c3e25d22cbb7 11-Aug-2014 Mark Brophy <mbrophy@google.com> Revert "Updating the widget tray"

This reverts commit b172c13dcced9226c935991ef9fe85cc920ce811.

Change-Id: I375fb105e3cf6fa2c1548306cf6a109d612077de
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b172c13dcced9226c935991ef9fe85cc920ce811 11-Aug-2014 Adam Cohen <adamcohen@google.com> Updating the widget tray

-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL

Change-Id: I4f663af7022337d687124ef25a22bac03d9d6af9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d3ad9828d15f9c8fa435f2d59cd5a18e9ebee100 11-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Adding support to restore widgets even for jelly beans." into ub-now-porkchop
ff572277112ec3d6a6a8c1be274d6fa1019e3648 23-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Adding support to restore widgets even for jelly beans.

> Show 'widget-not-ready' until the widget app is installed
> Once the app is installed, bind a new widget id (not required on L if
id-remap was received).
**Remove the widget if bind failed
> If the widget has no configuration screen, show the widget, otherwise
show 'setup-widget'.
> Clicking 'setup-widget' shows the config screen, and updates the
widget on RESULT_OK.

issue: 10779035

Change-Id: I2f8b06d09dd6acbc498cdd93edc59c26e5ce17af
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e755d469d40b95e763a9dcb67d0e4f511d1948dd 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Implementing a package install progress listener for L

issue: 15835307

Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
513edaebce9846c2d5eb4c0c013a9dcf6232c0e3 30-Jul-2014 Sameer Padala <sxp@google.com> Modify code so it compiles on google3

The diamond operator isn't supported on google3 Android projects.

Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e86b9d79c470dad9e9dcda42bc236b3167bd8acc 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Adding nulls check in various drop-drop events" into ub-now-master
25611b181f19a302fc6fa1aa1489ee1585c11316 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Adding nulls check in various drop-drop events

The original patch by motorola had another check, but the 2nd check
is wrong as in that case, there would be a nullpointer exception just
after the check for the same reason.

issue: 15518908
issue: 15516428

Change-Id: I85c5fb3541b7f837e6c5295e97e45162a4120e39
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
82cc3fe6c77322d93ff74b25354e4bca77ab4a83 21-Jul-2014 Adam Cohen <adamcohen@google.com> Merge "Preliminary work on Material Transitions" into ub-now-master
651077bdd603bb182be039925fd17bdf0da15016 30-Jun-2014 Sunny Goyal <sunnygoyal@google.com> Adding app widget restore support in Launcher3 for android L

When the app is restored, it displays placeholders for all pending widgets.
These placeholders can be moved and removed similar to a widget (size is fixed
to what defined in backup). Once the system notifies the launcher of the new
widget ids, the place holders are replaced with actual widgets.

issue: 10779035

Change-Id: I68cbe4da01e9ca2978cb4471a7c645d2aa592055
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6c5891a9fce95eee3d87823d11d21889743e9c68 10-Jul-2014 Adam Cohen <adamcohen@google.com> Preliminary work on Material Transitions

-> Early exploration of AllApps Hero transition with
circular reveal
-> Stripping a bunch of dead code from AppsCustomizeTabHost
-> Moved background scrim to DragLayer
-> Removed "SMALL" state from workspace: replaced with
NORMAL_HIDDEN and OVERVIEW_HIDDEN. This is mainly to
reduce the overall usage of the z-space model between
allapps/widgets and workspace. There are vestigial
remains of this model, mainly due to the overview
mode, and a bit for spring-loaded.

Change-Id: If2302a24394f0ec66621f01ffa2fc4934aa10c3f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c5c60ad3592f53549c9ffaa58e9a87b0480080e8 14-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merging Motorola's patch to disable apps when is safe mode.

issue: 16044192

Change-Id: I10069dcdf459ecc71361271e883eabb743d77822
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2ff91c46fa6f1b84fb08b6f31499934d30d8a91d 11-Jul-2014 Jan-Willem Maarse <maarse@google.com> Allow custom content to lock the workspace

Change-Id: Ic337df1b2cd54b99d4ef02dcfaca955c90297df0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e10abafa50c01060f96d1464e81929bdec7f2c27 02-Jul-2014 Kenny Guy <kennyguy@google.com> Merge "Revert "Revert Cls stopping now-master running on googlefood"" into ub-now-master
803a4bec0fe4f291b5e131f0a4fcb6ca8ecd2ec3 01-Jul-2014 Chris Wren <cwren@android.com> Drop support for remove all dead promises.

Bug: 12764789
Change-Id: Id876b66cf8da4388cb3ed5670a0bbdcf73f2982d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c2bd8101b8e26b9ebb2c079ae6867229dad3f196 30-Jun-2014 Kenny Guy <kennyguy@google.com> Revert "Revert Cls stopping now-master running on googlefood"

This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb.

Conflicts:
src/com/android/launcher3/BubbleTextView.java

Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
40c5ed303909c4df71037be3429aa1423e59585f 25-Jun-2014 Chris Wren <cwren@android.com> Offer to delete broken promise icons.

Track state of promise in the info, not the view.
Fix bugs around moving promises to folders.
Fix bugs around filterign and removing promises.

Bug: 12764789
Change-Id: If5e8b6d315e463154b5bafe8aef7ef4f9889bb95
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7bc272a11b701a32d2ed91277341c382cbd84aeb 24-Jun-2014 Kenny Guy <kennyguy@google.com> Revert Cls stopping now-master running on googlefood

This reverts commits 01453e855fa87ee19f61223b2b1a6965071ee95a.
and 242bbe1b72e4978dde8a662d164cd186305e14a7.
"Add content description to bagded icons."
"Remove reflection now we are building against L"

Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
01453e855fa87ee19f61223b2b1a6965071ee95a 20-Jun-2014 Kenny Guy <kennyguy@google.com> Add content description to bagded icons.

Enabled accesibility so that icons badged by the
managed profile have a content description
that is different to the non-bagdged version.

Bug: 15106236
Change-Id: Id483273173d9539916eebd59111d179087526be3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e25c5d1c94949044c4cd7416f60ea0dc12dadc8d 18-Jun-2014 Adam Cohen <adamcohen@google.com> Prevent discordant state between Workspace and Launcher (issue 15409018)

Change-Id: I13bb3e51da18998a5dade49c50e5fbf2266022d3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6f127a614c6a3e64a5de963f3a11d68d3368cd84 12-Jun-2014 Adam Cohen <adamcohen@google.com> More defense for issue 14491953

Change-Id: I90de51c74e337d56aad891741233e6a857d89b62
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ea90f83e248086b91dbbc7969059f6887190b2a2 22-May-2014 Adam Cohen <adamcohen@google.com> Check before suggesting default wallpaper dimensions

issue 14470153

Change-Id: Id00e9cb4bd2b769818ed61de65be8c1c0119e07d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
824fcb3a3e05166d7e1bd9c2cd821aeaebc994c5 22-May-2014 Adam Cohen <adamcohen@google.com> Revert "Debugging wallpaper stuff on production device (to be reverted once built)"

This reverts commit f8dc557cf84ad90186e94d1ebe15f850a6edf2a0.

Change-Id: I2a2ce9a067ec6df829eb23997661bb090daa64ff
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f8dc557cf84ad90186e94d1ebe15f850a6edf2a0 22-May-2014 Adam Cohen <adamcohen@google.com> Debugging wallpaper stuff on production device (to be reverted once built)

issue 14470153

Change-Id: I6c93b11f639d79163da0c3ce4e4053e304e0081e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
db364c3355a7f5212459c74bd7e837f12aca463b 20-May-2014 Adam Cohen <adamcohen@google.com> Fix crash when launcher dies while configuring a widget / shortcut

issue 15014018

Change-Id: I083fa40fb2fd0eb217852e5d088fa5e18e5f5697
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c29217b08f3e7994876733ad1cf45bc03618f3a6 18-May-2014 Adam Cohen <adamcohen@google.com> Revert "Debugging something for wallpaper noise issue"

This reverts commit 211d38c784a2211ba6d1d9bcdf3c3bb1cf396d72.

Change-Id: I2c3e69e8951c3435f51d9ac43eddf0b56157b792
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
211d38c784a2211ba6d1d9bcdf3c3bb1cf396d72 17-May-2014 Adam Cohen <adamcohen@google.com> Debugging something for wallpaper noise issue

issue 14470153

Change-Id: Ifdde30b9a26443cdcf480f0ed4cfed2d612d09cf
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6268f2db4c129e33d8d77513cb9df0f4799c7520 17-May-2014 Adam Cohen <adamcohen@google.com> Disable the folder cling in two cases

-> When the user creates a new folder
-> When the user drags an existing folder
-> The folder cling gets cut off in certain instances
and until we make it more extensible (not worth
it right now), we're disabling it in the problematic
cases. Also, in the problematic cases, the user
is demonstrating some advanced knowledge, so
it's somewhat justifiable.

issue 14491765

Change-Id: Ib15d2f097c51a9b755f04b95ed6ef468d3bacc60
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e1c92c4afa7df98c13c3f57986f6f44ffe8ce952 10-May-2014 Adam Cohen <adamcohen@google.com> Remove debug println

Change-Id: I8bf8f948394ed2ecbcb3da3761506c9aa5752494
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
689ff16ea27fb7c22c247aaf4f42ffe42fede253 09-May-2014 Adam Cohen <adamcohen@google.com> Cleanup pattern for removing the extra empty screen after drag operations

-> Fixes a couple bugs: issue 12179908, issue 12372657, issue 13287732

Change-Id: I24b5abe8e432ea331eeb77407120a8cec28f6376
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ed13187a745866483139e2878037e1f8427ce567 30-Apr-2014 Kenny Guy <kennyguy@google.com> Launcher3 multi-profile support

Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.

Adds support to show apps from current user and any managed profiles.

Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.

Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.

Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.

Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8f3f6830f2693647034e8df974d67f6b50d01602 28-Apr-2014 Adrian Roos <roosa@google.com> Sanity check screenId before persisting ItemInfo.

Bug: 13447571
Change-Id: I014dcf1eb313c2312953716fb53e542caaeb285b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
031d0ff4ad4baeb548c4272a08af4e8844cb5fbe 24-Apr-2014 Jason Monk <jmonk@google.com> Merge "Fix accessibility announce on apps page" into ub-now-nova
ed05f09aa1f83fc7ed02c8c40fa473a7f1a3a1e0 24-Apr-2014 Jason Monk <jmonk@google.com> Fix accessibility announce on apps page

Stops the workspace from announcing incorrectly while the apps
page is open, also makes the apps announce which page on opening.

Bug: 13006306
Change-Id: I723011fc55c24b66604a24b16c17bac4f5653f84
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
859002985e0e5d73f54c942f2024607431db60fc 16-Apr-2014 Mathew Inwood <mathewi@google.com> Take account of bounds set on drag drawables.

If bounds are set on a compound drawable in a textview, drawing it into a
bitmap set to the intrinsic size of the drawable results in it being scaled
down in the top corner. Scaling it down again into the grid icon size then
gives a tiny icon.

Use the drawable bounds if any are set, otherwise use the intrinsic size.

Bug: 14103508
Change-Id: Idadd7bb891dc33d092eb9ceb3025b9a5d9e1bfd8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
babb53ef8fd0fcba32fcc8fc213663f0f27b8f5e 15-Apr-2014 Winson Chung <winsonc@google.com> Adding external path for drag/drops.

Change-Id: I3b315c4d14cadb9210f15d3c3e0b9545f4591be4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dcb173d0e348c23d967bb0939e63b6ce4e1bd503 01-Apr-2014 Adam Cohen <adamcohen@google.com> Make sure the workspace screens don't get updated while workspace is loading

-> Found another path that could lead to the same issue
[add shortcut with config activity to an existing folder,
when config activity launches, kill launcher, configure
shortcut. observe crash and data loss].
-> Plugged up above, and a couple other potential holes
-> Initial fix probably took care of the main issue

Issue 12523285

Change-Id: I29db9da4af4a8bf22047eb46bd49354447d04b8d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
62d18edcc74ce96e2955048f5e0fc0ce3e4ec275 11-Mar-2014 Anjali Koppal <akoppal@google.com> Add Launcher.onDragStarted

Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
aeff7ea43409d817490fbb8c22b8d4b9725bb54f 14-Feb-2014 Chris Wren <cwren@android.com> update promise icon status

also fix a crash in LauncherModel.DEBUG_LOADERS

Bug: 10778992
Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3a8a8f7c2355863006208fced945f63c9bdb40b4 16-Jan-2014 Selim Cinek <cinek@google.com> Disable wallpaper in -1 space in GEL and hack around window animations

Bug: 12978354

Change-Id: I8b5602ae434a9151b40d41defb891db1ad78ce81
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c6c0367111e587c7f19cb8185dcda550aa94a848 06-Mar-2014 Winson Chung <winsonc@google.com> Disabling cling when the user moves the folder before launching it. (Bug 12963868)

Change-Id: Iddcdf655c78b7240be123bd549f3d45794d02c83
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
65e43032c8962765a3e89826d4312042a03ee3be 03-Mar-2014 Adam Cohen <adamcohen@google.com> Fix build

Change-Id: I17944c557970ed35e1bc67f6f3e3372ff88651ad
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
517a7f5fd03fb89bd6b465013b278c9f281d0b26 01-Mar-2014 Adam Cohen <adamcohen@google.com> Avoid stripping empty screens if the workspace is still loading (issue 12523285)

-> This appears to be what may be causing data loss in some users during update.
A certain (seemingly) rare combination of life-cycle events and package events
seems to be the culprit (potentially why it's seen at update time).

Change-Id: Iea4f8aef012ba80b7ba568e0df264edb9284efbe
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ec0d61d79ef50010660b426b259a8ccb14656b31 08-Feb-2014 Adam Cohen <adamcohen@google.com> Fix NPE in when dropping from all apps (issue 12917451)

When dropping from all apps, accept drop was returning true if the item
was above a folder, however, when it came time to complete the drop,
the folder wouldn't accept the item. This can be prevented by increasing
the criteria in acceptDrop.

Change-Id: Ib644ec45984e8366c33bb674f3d3a76e22ed5160
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b6d4c2827a1514432b5eda46ff7d484d6cf244ac 27-Jan-2014 Chris Wren <cwren@android.com> update placeholder on package install or restore

Bug: 10778992
Change-Id: I3293d8bab8ae0ef49fc5554531bba5bd6f70932c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
93b92d0895f86fddf270b4861282b75c8e455ce3 30-Jan-2014 Derek Prothro <dprothro@google.com> Merge "Fix black flash during rotation of -1 screen with GEL." into ub-now-lunchbox
dadd984a891a574cebf3dfd38a454a0e6a4228b3 17-Jan-2014 Derek Prothro <dprothro@google.com> Fix black flash during rotation of -1 screen with GEL.

We need to make sure the custom content is adding synchronously
while the rest of the workspace is being created. If we wait
for it to be added in a separate run task, we see a black
flash during rotation.
Also rename a few methods and remove obsolete methods.

Bug: 11802691
Change-Id: I3f6500aa1fabe68cef59ad8c764877f954986a99
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2a4f4928a964fa8eef9ea6542f835ad4a79b9bd5 29-Jan-2014 Michael Jurka <mikejurka@google.com> Fix bug: Scroll position reported incorrectly to live wallpapers

Bug: 11189265

Change-Id: I410f318df4e43ed13d33889a8158a03438a6174f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
00c3184fa6fae69123d160b92977799a1a47fa34 15-Jan-2014 Jorim Jaggi <jjaggi@google.com> Merge "Fix NPE in Workspace.onDropCompleted" into jb-ub-now-kermit
eedb00a674358bb88dce1e0d3a90bd6cb9e97cfc 13-Jan-2014 Jorim Jaggi <jjaggi@google.com> Fix NPE in Workspace.onDropCompleted

Bug: 11627757
Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a694524047fda0a51dede4eefb1201a598d2d3a7 08-Jan-2014 Winson Chung <winsonc@google.com> Adding migration Clings. (Bug 11973614)

- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
309260ee593aa3f209510ae6bf137f9b75e2498b 14-Dec-2013 Adam Cohen <adamcohen@google.com> Merge "Don't notifyPageSwitchListener until page settles (issue 12069757)" into jb-ub-now-kermit
674531f26196502db825838b21b9cbf34463088c 14-Dec-2013 Adam Cohen <adamcohen@google.com> Don't notifyPageSwitchListener until page settles (issue 12069757)

-> Should address the dismiss timer not working quite right

Change-Id: I63ad32d8f7c37f1a090ff1dd6024eeb7c0c6ce65
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7ad868b86e45d6f58c186d2731ab2beb84643757 12-Dec-2013 Michael Jurka <mikejurka@google.com> Create separate project for Wallpaper Picker

Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
69a10949d62255f6b32dff8c3a6a91cbfcf98587 13-Dec-2013 Adam Cohen <adamcohen@google.com> Merge "Fix NPE from feedback (issue 12106858)" into jb-ub-now-kermit
4de0974c460ce6439cce7931fb0ba945095a4b94 13-Dec-2013 Adam Cohen <adamcohen@google.com> Fix NPE from feedback (issue 12106858)

Change-Id: I63f7f73b85d4c1652d1e722f94c51b567a83cc6b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b6147f85786c78b3608eabf2286cd9e61c28878d 12-Dec-2013 Winson Chung <winsonc@google.com> Merge "Adjusting grid for tablets and fixing incorrect resources for large tablets." into jb-ub-now-kermit
1239b9da8901f1384aa30f88f8b660078d37ea82 12-Dec-2013 Winson Chung <winsonc@google.com> Merge "Fixing issue with Widget sizes being icorrectly reported." into jb-ub-now-kermit
dcd27ba90940f29bfc185c86c1b5b789e0d8f2de 12-Dec-2013 Winson Chung <winsonc@google.com> Fixing issue with Widget sizes being icorrectly reported.

Change-Id: I8474514cc3722d8450c707b7fd1ccea2ea344a59
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
59a488ac03aa122b75e9a358db74acf7bb4d2508 10-Dec-2013 Winson Chung <winsonc@google.com> Adjusting grid for tablets and fixing incorrect resources for large tablets.

Change-Id: I4c2a058da934bef14f5be3c53ebda940aeb990ca
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fa3c58f647e603760c0bd929166c0edee25675a9 07-Dec-2013 Adam Cohen <adamcohen@google.com> Adding reorder hinting, hopefully will help with (issue 10654628)

-> Adds instant feedback that reorder _will_ happen, so hopefully will
improve perceived disambiguation

Change-Id: Icd99e7beeb87e79627a6b9fc78a9132781410379
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
566bdc3759584d5fedbbd82ccda1fa8d8d4441cb 05-Dec-2013 Michael Jurka <mikejurka@google.com> Merge "Update suggested wallpaper dimensions in onResume" into jb-ub-now-kermit
531a5c324e20b354a674851fd4808c105a80af3a 04-Dec-2013 Adam Cohen <adamcohen@google.com> am b0ee0810: Add guards for restoreInstanceState (issue 11982812)

* commit 'b0ee08109ec89959d9bbd526c6e5f7ab96c8c3ea':
Add guards for restoreInstanceState (issue 11982812)
a6a0547fa6df0769fcd107a2e5f7c7d527fa0700 13-Nov-2013 Michael Jurka <mikejurka@google.com> Update suggested wallpaper dimensions in onResume

If another launcher runs in between, it might
change the suggested dimensions. This fixes that
case.

Bug: 11667475
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b0ee08109ec89959d9bbd526c6e5f7ab96c8c3ea 03-Dec-2013 Adam Cohen <adamcohen@google.com> Add guards for restoreInstanceState (issue 11982812)

Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
16fa074d824ed64c02e8ac3bca6cc7eaab6db509 03-Dec-2013 Michael Jurka <mikejurka@google.com> am 1c00fd0b: Fix NPE when going to All Apps in landscape

* commit '1c00fd0b045179c9e6cc2dfc344cddc1a8d5b383':
Fix NPE when going to All Apps in landscape
1c00fd0b045179c9e6cc2dfc344cddc1a8d5b383 03-Dec-2013 Michael Jurka <mikejurka@google.com> Fix NPE when going to All Apps in landscape
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6229a0d564d02d661b8b362dbec2bd748675bbfb 28-Nov-2013 Adam Cohen <adamcohen@google.com> am 6400b84d: Update custom content insets when Workspace insets are set

* commit '6400b84d5594d7b9244e3b118f107033eb8b87a0':
Update custom content insets when Workspace insets are set
1eeb3fc9d874d98dfb43883d17efb4202d83d88a 25-Nov-2013 Mathew Inwood <mathewi@google.com> Generalize support for 'App Info', 'Uninstall' and 'Delete'

This allows other DragSource's to allow this behaviour, instead of it being
tied to specific source types.

Change-Id: I06b7c39b1b34a0ae141245bcc13b6a0873a4c0fd
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6400b84d5594d7b9244e3b118f107033eb8b87a0 27-Nov-2013 Adam Cohen <adamcohen@google.com> Update custom content insets when Workspace insets are set

-> Not sure if custom content can be added before insets are set,
so this is just a speculative fix.

Bug: 11875171
Change-Id: Ia8e07f51f527f464262b7ff99e4db245fe5a7906
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
166ebd4da5d85195bd1f562572f468726ade548f 26-Nov-2013 Adam Cohen <adamcohen@google.com> De-parent custom content view before adding to custom content screen

Bug: 11666352
Change-Id: Ief35e6e8a16ec0217e0dd27434723ee7a7d5beef
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
04a231bbe44e9af184e76f124430a5bf7ae8ac8a 26-Nov-2013 Michael Jurka <mikejurka@google.com> Merge "Making workspace->overview transition smoother" into jb-ub-now-jolly-elf
cccfe95beb2de07fb3aef19e99e975e3a01cd055 25-Nov-2013 Adam Cohen <adamcohen@google.com> Merge "Allowing ability to pick up items / enter overview before full page settle" into jb-ub-now-jolly-elf
853f5a46ebef0161737f5ddb7f63f43c5d7a99d5 25-Nov-2013 Michael Jurka <mikejurka@google.com> Making workspace->overview transition smoother

- Also set interpolator on page indicators
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f0716b7a7475fc80a97fd6f95efecab570d186fb 19-Nov-2013 Winson Chung <winsonc@google.com> Update the database when converting the final screen. (Bug 11683562, Bug 11034205)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
540efef758eb3bcf3bafe2241a4e3652a0e22c56 18-Nov-2013 Winson Chung <winsonc@google.com> Merge changes Ida9603e3,I3dfa45cc into jb-ub-now-jolly-elf

* changes:
Initialize FastBitmapDrawable bounds with default bitmap dimensions.
Updating LauncherModel filtering to use screen ids. (Bug 11685286)
a765215280ef9e128da3fbab37b3d51a565941e3 18-Nov-2013 Adam Cohen <adamcohen@google.com> Allowing ability to pick up items / enter overview before full page settle

-> Fixes issue 11701996
-> Fixes issue where if you tried to longpress a widget before the page
settled, it would instead enter overview

Change-Id: Ic6321805687dd5e8c69506c6cd6941a11d557ed6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f9618856d6910ac385ad37762f9f067ae59a8622 08-Nov-2013 Adam Cohen <adamcohen@google.com> Syncing up state transition with paging transition

Change-Id: Id91e4c046cfe7d9aa6e7de10dbf57ee727ba160e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9b9fb967b2305413520dc676d6d3c472b2b6b25e 16-Nov-2013 Winson Chung <winsonc@google.com> Updating LauncherModel filtering to use screen ids. (Bug 11685286)

- Fixes the issue with the current page not synchronously binding

Change-Id: I3dfa45cc1777f846c77f3e86059dfb715553e1a3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
28b690ab8e21d28ae5ebdea32475d3f1952203a5 15-Nov-2013 Winson Chung <winsonc@google.com> Merge "Adding logs to track down missing workspace screen. (Bug 11683562)" into jb-ub-now-jolly-elf
a90303bb6fdad59e4a55855edba68c9902192599 15-Nov-2013 Winson Chung <winsonc@google.com> Adding logs to track down missing workspace screen. (Bug 11683562)

Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3a14eeb54eb6f901629b26bf9e2ccf2d5bc564dd 15-Nov-2013 Adam Cohen <adamcohen@google.com> Bit of code cleanup (issue 11648206)

Change-Id: I2d04bbbdb037de089a16da236dadc4f5950504da
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
202e4fdafb5e4e94dd925905c1553bd92e61985e 15-Nov-2013 Adam Cohen <adamcohen@google.com> Merge "Fix for transparent CustomContent screen (issue 11549096)" into jb-ub-now-jolly-elf
1774a8a0c67ae225b31dfb37213d6cadc630e48c 15-Nov-2013 Adam Cohen <adamcohen@google.com> Fix for transparent CustomContent screen (issue 11549096)

Change-Id: I8b371e3c556a80b7eb3e145a8d4b78f15421046a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
89ee93e0f8b6ac1ed6aefc2b940d1606f2027491 14-Nov-2013 Winson Chung <winsonc@google.com> Merge "Use the icon bounds for all calculations." into jb-ub-now-jolly-elf
eeb5bbc9409978cc2ae52d48380399fcde3d9f85 14-Nov-2013 Winson Chung <winsonc@google.com> Use the icon bounds for all calculations.

- Fixes a drag and drop issue when the dynamic
grid scales icons down, due to the drawable bounds
not being equal to their bitmap sizes.

Change-Id: If7c68b51131de7bac3195a2619e22340f7789432
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
76128b6359fc430542811fbb32e4a1d593a9ef07 14-Nov-2013 Adam Cohen <adamcohen@google.com> Fix issue where custom content would be invisible (issue 11644432)

-> Also making sure to clear the widget frame when moving to custom
content.

Change-Id: I460c707f1b6ec34bc6d78c9df43a613d9bfced3c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c76e1dda0875c13131462d80d0c1721a6149e08d 14-Nov-2013 Adam Cohen <adamcohen@google.com> Change the way view ids are assigned (issue 11627801)

Change-Id: I4d9c0542ea3ac581c4a9f4da68824f0b498ea337
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2f32ad29075bf666199cc49fe20014e00991d1bb 13-Nov-2013 Adam Cohen <adamcohen@google.com> Add logging for NPE (issue 11627249)

Change-Id: I75352f9eb1249fa5cc46d05cd7c168a868c6f7b7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
84a465aa0e795619b248047c5e21cd77c82b1ff1 11-Nov-2013 Adam Cohen <adamcohen@google.com> Small tweaks to custom content management

-> Never allow the custom content overhang onto the viewport when
it is not the current page
-> Never fade the custom content screen as a consequence of scrolling

Change-Id: I91a4cfb3f740ee8b429084fce1c96258bac8dd9e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c82d2622bc7305fd3545fe7df97a30187283113f 06-Nov-2013 Winson Chung <winsonc@google.com> Dyanmically lay out overview mode across all orientations and form factors.

Change-Id: I788bbf289717b30b19afc9ad9d611c85715bc623
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8590ecd29a7de85700de662a0723970e9cf884af 31-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Fix issue with adding widget with config activity to empty screen (issue 11381059)" into jb-ub-now-jetsonic
917e38851cbc6caffe1f8dade4db452bace522ba 31-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue with adding widget with config activity to empty screen (issue 11381059)

Change-Id: Ic7eecb30422e7a6cf35ebe8470d9eba8752d406e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
87752940206f1b576e6e814d3970ba274a84ffde 31-Oct-2013 Michael Jurka <mikejurka@google.com> Merge "Fix issues with sizing wallpapers" into jb-ub-now-jetsonic
3b185e2513bcc3318753c21d3909d8dab2291e31 29-Oct-2013 Adam Cohen <adamcohen@google.com> Fixing up PagedView to work in landscape mode

-> separated notion of page spacing and paged view padding
-> always position the current page within the rect
created by pagedview's viewport + padding
-> space pages by a constant amount

Change-Id: I6bb35f72f04543f83b51ef981f8c9ded051623ac
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
454db97700cb545c541d708ca551ee1e249062fa 31-Oct-2013 Michael Jurka <mikejurka@google.com> Fix issues with sizing wallpapers

- properly sync size across Launcher and wallpaper
picker
- remove code that was calculating wrong default
wallpaper size

Bug: 11324470

Change-Id: Ib4e7202363c56e3cb0c09d4448a7f96eef0a0915
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ad4e15cae4b628677fc249628a9ff661e67add78 18-Oct-2013 Adam Cohen <adamcohen@google.com> Cleaning some page animations

-> Fix jump when last page gets delted (issue 10908427)
-> Fade out empty screen
-> If the final page is empty, and that is the current page when
spring loaded mode ends, animate back to the previous page
and then fade out the final page. Examples: cancel widget
or shortcut drop on the final page, scroll to final page and
drop an icon into a the hotseat, etc.

Change-Id: I13438fb0af6555b6f0b511b7aff51b3972431438
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d8e596db4bcd19409bae99938f8b5c91b6267f74 22-Oct-2013 Winson Chung <winsonc@google.com> Clearing reference to SavedState bundle after restoring from it. (Bug 11322014)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8c903311938db7d3711dbdd11bc2c28a4571e331 17-Oct-2013 Winson Chung <winsonc@google.com> Updating folder icons when the shortcut is updated. (Bug 10803060)

Change-Id: Idee158b3458213e441c01890e0db341a3bcce1f7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8fd3adc2a3ca4c2cbf6af4917d2c3addc0a7e678 16-Oct-2013 Michael Jurka <mikejurka@google.com> Refactor RTL wallpaper code to use getLayoutTransitionOffsetForPage

Bug: 11157913
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
28f852ab678d9750879b6d3549bf5da176cf1225 15-Oct-2013 Adam Cohen <adamcohen@google.com> Fix drop animation issue in springloaded

Change-Id: I1d8bf9d92ab7b94238e3e6a27b0eebf2c9af6872
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
84add1de6d0964d675542af2a70f7f67e5da556a 15-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue where custom content pops in (issue 11209357)

Change-Id: Ibb40505ac25d59add0b405a1b2ac48a9778314d3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8ec05f9fa47f28740f92905a8614118a93835789 13-Oct-2013 Adam Cohen <adamcohen@google.com> Fix bugs / jank with folder creation feedback (issue 11195148)

Change-Id: Ia53438a7724c95d304f08a4c16382a9b9e8bdfea
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
982470ead562f5cb99e9bf5a26610473737b4a5f 12-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Speed up overview transition" into jb-ub-now-indigo-rose
fa2450a9ffa8bfaf7866b914cbd4bf5bd807e1f0 12-Oct-2013 Adam Cohen <adamcohen@google.com> Speed up overview transition

Change-Id: Ie4086717318939875228dd3a920cecf79ba0ff91
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
920a9c2577e1a6d08f84529d56e96da8cf25acd3 12-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Clean up interpolators on overview mode transition fades" into jb-ub-now-indigo-rose
58993ad14da65dac1e43f3490cba8f751c92085b 12-Oct-2013 Adam Cohen <adamcohen@google.com> Clean up interpolators on overview mode transition fades

Change-Id: Id10292286cba217ad18e77f7273e497efac4708c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1226be4398d848fe59ddf9718d9a2939ae5b8e43 12-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Fix custom content scroll effects bug (recent regression) (issue 11188769)" into jb-ub-now-indigo-rose
a45de07ece42b8dac4d5a99326ebf2d4b72ef267 12-Oct-2013 Adam Cohen <adamcohen@google.com> Fix custom content scroll effects bug (recent regression) (issue 11188769)

Change-Id: Ib90c024daf64baac2ccd1cfd04897d18cd35e111
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dc734ef2c0a7152b0ada9425fd54c556128f3be4 12-Oct-2013 Winson Chung <winsonc@google.com> Merge "Fixing issue where the PagedView scroll is out of sync with the current page. (Bug 11050528)" into jb-ub-now-indigo-rose
964df6b93e8171a0d3a6f212fed095065f1a65dd 12-Oct-2013 Winson Chung <winsonc@google.com> Fixing issue where the PagedView scroll is out of sync with the current page. (Bug 11050528)

Change-Id: I9c445d862763b2a77847cc3bff994f6ba9af8cc4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a5f4e488dff461fbbc61400a8d284d9886164f76 11-Oct-2013 Adam Cohen <adamcohen@google.com> Guarantee views are invisible after being faded (issue 11112570)

-> Prevent clicking of hotseat items during non-normal state
-> Update folder text edit highlight color (issue 11072862)

Change-Id: I0292b51dc5f7e318dc59e9a26bf1e39f333bc8eb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d36d9476dc2ed915d90f8df5916450c02d107eff 11-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue where can't long click page indicators (issue 11136731)

Change-Id: Idcd3a3eabed9db6f1ab17891544578170b8cac6f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bb6fda6ac3c4246b91cf66b28cdbc89c3d8a3e52 10-Oct-2013 Adam Cohen <adamcohen@google.com> Provide final callbacks before remove CustomContent (issue 11169651)

Change-Id: I0c30d58a4380f4525dcabf54a0cabf3789031ba6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
21cd002fef13ff0b6336f10f97e29738a2b0ecb9 10-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue where custom content would show up on boot (issue 10713745)

Change-Id: I1c03784970fe1a88e2561f1c5367979cda825973
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
82e5c98446e1f1765aabca1725cba181a56edcb4 09-Oct-2013 Winson Chung <winsonc@google.com> Update custom content hint after custom content is invalidated (Bug 11067230)

Change-Id: I5f98e2a0e4bc3439ff36688555990798c59efa58
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
564a2e7116b026c1d73829e65d47b660b03a3c72 09-Oct-2013 Adam Cohen <adamcohen@google.com> Fix custom content state for scroll in RTL (issue 11068877)

Change-Id: I731c55e3e4e01ef42eba94c002d0fde296dd9540
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5376e7a86fd9e87681584871b62c66cf31b5c262 09-Oct-2013 Winson Chung <winsonc@google.com> Merge "Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)" into jb-ub-now-indigo-rose
ad7db6e8ddddae423d027163a1bdf7015210f7ce 08-Oct-2013 Winson Chung <winsonc@google.com> Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)

Change-Id: I8d613104d07e64e55f31f777d222a2ecaccb0adc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ed307df7446288f23a1ce34e5cdb6b55dd3df675 02-Oct-2013 Adam Cohen <adamcohen@google.com> Cleaning up home / back behaviour in overview mode (issue 10965421)

Change-Id: Ib85e8b3ca369582122298ca0a66109c8a363880c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d9ecec11667aa5d26b04b16f9b37eb6ed01c22c3 08-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Fixing flash when you swipe a page and go into All Apps (Bug 10971209)" into jb-ub-now-indigo-rose
296ab0fde68c6aeb255c96a31440fa7f844e02a2 08-Oct-2013 Winson Chung <winsonc@google.com> Fixing flash when you swipe a page and go into All Apps (Bug 10971209)

Change-Id: I7d63012409c3b084cc81095a243a2d492594bb5f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a3818ab906de7c82bd25bb41c18e40558c2cf2b4 08-Oct-2013 Winson Chung <winsonc@google.com> Merge "Hiding side pages during AllApps transition. (Bug 10971209)" into jb-ub-now-indigo-rose
f4bd23662d7fb76007624222a1fe678b3a37b874 08-Oct-2013 Winson Chung <winsonc@google.com> Hiding side pages during AllApps transition. (Bug 10971209)

- Tweaking page indicator sizing (Bug 11116262)

Change-Id: Ia03f0ba3713c90a2672a1d8770a19c61adf9badc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
225ad9b7ff206b0beb1b448de38fa1b5679f2ed0 07-Oct-2013 Adam Cohen <adamcohen@google.com> Only show the most recent screen added to custom content (issue 11087978)

Change-Id: Id50604e982cbb3abb26e5dfc3fcc37339529539d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
53805218809cc1f93a0f1307b442df7c65a3068c 01-Oct-2013 Adam Cohen <adamcohen@google.com> First pass on accessibility

-> issue 10801717
-> issue 11012432
-> issue 11012764

Change-Id: I9a687a39a358441afd57c0c46b57399ecbf23c36
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fe0ace3583bc57adbaaec730b1b1757032e90c41 03-Oct-2013 Michael Jurka <mikejurka@google.com> Fix RTL bugs with wallpaper parallax

Bug: 10901046

Change-Id: Id4277173b0c13d25eb0507bd6fa9fa1309946510
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6fecd410e8567af916b1bbd53198d9878c686177 03-Oct-2013 Adam Cohen <adamcohen@google.com> Trying to come up with a simpler approach for onShow/onHide.

-> In this approach, the shown/hidden state should be tracked
by the CustomContent provider and excess calls to onShow and onHide
should be debounced. That is, if onShow is called twice in a row,
without an intermediate onHide, the second should be discarded.
Viceversa for onHide.

Change-Id: I2fa48d15f28767775a9a9cb84c1d920867a12176
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
20df4f87ec69e34f62bf15c7e3078db479fbfdd7 02-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Ensuring launcher is always setting "interactionBegin/End" where appropriate (issue 11030735)" into jb-ub-now-indigo-rose
edaaa3023251eb2bd71e3da180df39334f77d4a8 02-Oct-2013 Adam Cohen <adamcohen@google.com> Ensuring launcher is always setting "interactionBegin/End" where appropriate (issue 11030735)

Change-Id: I16f4f6a19cdc92af6b817a658dc32e082f08660c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ba4e52f41c961c19b0c8592e84af7d1c51dd03b2 02-Oct-2013 Winson Chung <winsonc@google.com> Updating page indicator assets.
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
01f2d7fa4b24b21543012060305d693899b4beaa 01-Oct-2013 Chris Craik <ccraik@google.com> Disable hardware layer on custom screen

Whereas standard ShortcutAndWidgetContainers are static during screen
transition, the custom screen may animate during its transition.
Disabling the hardware layer reduces the cost of this animation
significantly.

bug:10810505

Change-Id: I560d209f651951f54c224862a706e8a243dc71af
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1970614d0980699a6858a098dd1e13e65664ab47 01-Oct-2013 Michael Jurka <mikejurka@google.com> Merge "Restore parallax even if Google Now isn't present" into jb-ub-now-indigo-rose
16205da30e223368b31c68b7d76ac3d52f940c88 01-Oct-2013 Michael Jurka <mikejurka@google.com> Restore parallax even if Google Now isn't present

- Also fix a crash when choosing third-party wallpaper pickers

Bug: 11008122

Change-Id: Ie5923fdadc1db6facf695ec05522f5e469d6c72a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5841efa6121fb40dd7c1a6a432a899b894fa5c6d 01-Oct-2013 Winson Chung <winsonc@google.com> Using state to update voice button proxy visibility instead of view flags. (Bug 10915381)

Change-Id: I72feb506cbc1b03e2b99d36bc4a9d7bda27101be
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
def01fb8dc7da0d8287603ed5694ebe028640dcb 30-Sep-2013 Adam Cohen <adamcohen@google.com> Merge "Trying to get onShow in all the right places" into jb-ub-now-indigo-rose
2bf63d520576baa433a53a77e4e24386e40c1cda 30-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing issue where you couldn't drag an item multiple pages (issue 10754544)

-> This was caused by a strange race condition. The page snap time was equal to
the delay to recheck whether to snap (in DragController). This meant that
scrollRight()/Left() would get called, and the scroller would be finished
however, the final computeScrollHelper() hadn't been called, so the mCurrentPage
hadn't yet been incremented.
-> Fixed the underlying race condition.
-> Added suitable gap (150 ms) between the two delays.

Change-Id: If700eb9e14d77a174e4395ca6933119bdb0da768
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
74c5491d1b84e072d29065748b41f0bb67459f59 29-Sep-2013 Adam Cohen <adamcohen@google.com> Improving the granularity of reorder with resize on drop (issue 9533227)

Change-Id: If196f75c148487a8d31f4fcdb5293cc41d3bb7a7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
949debe6e64034be1625ec21de100ea7e68545e2 29-Sep-2013 Adam Cohen <adamcohen@google.com> Fix issue where we weren't saving span after resize drop (issue 9533407)

Change-Id: I760bf505ce9c894aedb6f1d0def63cdc7d39271a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
54e65135548818cb2fa8522b27df92c0aaa3e4a7 27-Sep-2013 Winson Chung <winsonc@google.com> Ensuring that Launcher always has a search bar. (Bug 10965514)

- Also disabling voice proxy when we are in now (Bug 10915381)

Change-Id: I4ad6392b5139d12b9b298110109b9363ba426cb4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fe411c8e31f44a5a977d76885e9b20dece57962d 27-Sep-2013 Winson Chung <winsonc@google.com> Fixing issue where incorrect min/max widths/heights were being reported to widgets. (Bug 10940505)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a29f5047f004062a9fcee5fb8a4b90fdd56f7d0a 26-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing overscroll with single page (issue 10937081)

-> Also fixing asymmetrical assets (10951956)
-> Also fixing camera distance to improve overscroll effect

Change-Id: If229c7b8a0c80073f6dea89d5fb009a0e2f5845f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
93c9756e7a64e782e6b78ec978d2f7a5802c277d 26-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing some touch / interaction problems

-> Weird reorder/scroll mode hybrid (issue 10550801)
-> Entering overview mode when we shouldn't (issue 10855389)

Change-Id: Ic936ead8deb3a5d4e00f265d09329528a1517063
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
89cbbb9d2e6885f176d59d8e7476a4001fe6e7f5 26-Sep-2013 Adam Cohen <adamcohen@google.com> Trying to get onShow in all the right places

Change-Id: I875ecc160640a425026b1a8dc8ca2d48ae172a22
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b923fb339969c58dc6f6eea51e3e201787126a84 25-Sep-2013 Adam Cohen <adamcohen@google.com> Merge "Fix issue where overview panel was taking clicks because it was visible (issue 10732462)" into jb-ub-now-indigo-rose
3d41198024fd5f27f84c9966683ca12333e370ae 25-Sep-2013 Adam Cohen <adamcohen@google.com> Fix issue where overview panel was taking clicks because it was visible (issue 10732462)

Change-Id: Ie75f9237203d3c2bd147f72d1e860ddcaff53ed9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
abedd9fd4e692cd390f5c23d850206c9156e387a 25-Sep-2013 Winson Chung <winsonc@google.com> Extending the hit rect when testing for dragging over the hotseat.

Change-Id: I57cf863c663b1e57fa422db880b6003ead1199c8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
21f9f2a74795d88140794f3f64a26aed71ea1418 24-Sep-2013 Winson Chung <winsonc@google.com> Merge "Tweaking styles for AllApps and widgets spaces. (Bug 10843502)" into jb-ub-now-indigo-rose
2d75f125f4e8bb5358dfdb63096d0493488ac2e5 24-Sep-2013 Winson Chung <winsonc@google.com> Tweaking styles for AllApps and widgets spaces. (Bug 10843502)

- Fixing various issues with Search bar showing when it shouldn't be.

Change-Id: I2a553ad93e3422666a883b90a1ff97625bf05831
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
af9b0e51aac239457fbd038f7cb2088265054e42 24-Sep-2013 Adam Cohen <adamcohen@google.com> Getting RTL up to a reasonable state in Launcher3

-> Fixing random page jumps from one edge of page view to another (issue 10846070)
-> Fixing screen -1 overlap (issue 10861684)
-> Fixing callbacks / transition state related to Custom Content in RTL (issue 10858355)
-> Overview mode now works in RTL
-> Making visible page range code RTL-LTR independent

Change-Id: I4dcc6127a02bf6669f5a1e8e1b62b340b60a5edc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
410f3cdfb4a8c2cf82749a3e73201fb7930540ae 22-Sep-2013 Adam Cohen <adamcohen@google.com> Getting the Overview Mode to look up to spec

-> New assets, text, fonts
-> New spacing of pages (translated upwards)
-> Updated outline color to white (the ones we're drawing)

Change-Id: Ie664ac0598ae18b86ae6d54d1d6b497c13d2ee95
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e67ccac004416d78d37968f60fe68f3bac6d33c1 22-Sep-2013 Adam Cohen <adamcohen@google.com> Merge "Fix issue where you could page to -1 during spring loaded drag (issue 10640529)" into jb-ub-now-indigo-rose
df041bc7ad99a6d33a5dd83a5dff28a617fedf12 22-Sep-2013 Adam Cohen <adamcohen@google.com> Fix issue where you could page to -1 during spring loaded drag (issue 10640529)

Change-Id: I487c871af4ec4412ee4edc74ce58947e54ccd43b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5108bc0fd9f7e30c87c223fbb75f024e271b2103 21-Sep-2013 Adam Cohen <adamcohen@google.com> More folder cleanup

-> Eliminating out ring
-> Fixing the cursor color
-> Using "nolip" asset appropriately

Change-Id: Ie0e341e865298555dcb0fcb5644e1f3e6b5e39e6
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
89f9705077c054b541af7da52be832760e2ae2e8 20-Sep-2013 Winson Chung <winsonc@google.com> Fixing small regression in PageIndicators add page, fixing NPE (Bug 10779956)

Change-Id: I7ff711c6fc97987efc57bf023913e33e31ccf140
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
37cab1bc25b99e4ac2429f7d965342a534d441b4 20-Sep-2013 Winson Chung <winsonc@google.com> Merge "Tweaking page indicators to support add page icon, remembering widget picker page (Bug 10787439)" into jb-ub-now-indigo-rose
8be886da011371e60863b2f4d2cd1dcb1581505a 20-Sep-2013 Michael Jurka <mikejurka@google.com> Merge "Improve parallax" into jb-ub-now-indigo-rose
2f81731e0986e21bd8407a8793112433795a2d2e 20-Sep-2013 Michael Jurka <mikejurka@google.com> Improve parallax

- Don't move wallpaper when picking up items
- Don't use the entire wallpaper for parallax
until you have at least 4 pages

Bug: 10839029
Bug: 10840014

Change-Id: I1bb165c375429e4d449f654812784df610d9fcb7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ede4129e77f8347e32c0da9c615bcff2cbc06fd8 20-Sep-2013 Winson Chung <winsonc@google.com> Removing old debugging logs. (Bug 107442854)

Change-Id: I56d6838af3cca710eab300d3e71ca1be90866cdd
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7819a56217fd4e216d3675905586b275799723bb 20-Sep-2013 Winson Chung <winsonc@google.com> Tweaking page indicators to support add page icon, remembering widget picker page (Bug 10787439)

Change-Id: Iab0b5676aa9c34a610b4b968940abc81c913c234
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
437dec39ee89ba6817967ae5bd75d663eecad5db 19-Sep-2013 Adam Cohen <adamcohen@google.com> Merge "Adding some assets / fixing a couple bugs" into jb-ub-now-indigo-rose
3f452c87db9c3639285eafd17fff6a6f9d28da44 19-Sep-2013 Adam Cohen <adamcohen@google.com> Adding some assets / fixing a couple bugs

-> Adding wallpaper, settings and widgets icons for overview mode
-> Fix issues with disappearing search bar / custom content screen
when screen is turned off from overview mode.

Change-Id: I0904098bd642c40709e27f571e458f1b6e479c17
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8c082818a8ee813318e32a667883f73d7b94126a 19-Sep-2013 Dave Hawkey <dhawkey@google.com> Merge "Support for dynamically adding/removing -1 screen" into jb-ub-now-indigo-rose
dbdff6bc7b225255207a46fad8f536b55a18efac 19-Sep-2013 Adam Cohen <adamcohen@google.com> Handful of small changes / bug fixes

-> Fixed fade in of overview panel on first animation
-> Fixed long press issue in page indicator region
-> Added background scrim to overview mode
-> Fading search bar in overview mode / disabling clickability
of search bar and mic

Change-Id: Ic9bf84f7cb9ff2991c5b4e93273d9e3f65556e5c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a888158880fea53479447d883391f552604e46b6 17-Sep-2013 Dave Hawkey <dhawkey@google.com> Support for dynamically adding/removing -1 screen

Change-Id: Ife68b64c04498e336192caf895edb9a090dcdc26
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ab2d9d72ae0a37553a82fa845c412167c727a258 17-Sep-2013 Sandeep Siddhartha <sansid@google.com> Add settled/unsettled state information to launcher

Bug: 10789736
Bug: 10785435
Change-Id: I876707103d495f4a8e55909af63c75da210fefde
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f343499f9b2c01978027e810255274b714ac457d 17-Sep-2013 Adam Cohen <adamcohen@google.com> Making sure CustomContent is never visible during overview / springloaded

Change-Id: I187f7fcfbd4e24e20959c9e0cf5fd5400d006f45
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d3ecce919296594ceeed6619d32994360b65ae40 16-Sep-2013 Adam Cohen <adamcohen@google.com> Fix issue where you can't long press on empty screen to enter overiew mode

Change-Id: Ia7e3913187e5f38ce9db6f9da4bf9e8408ea977a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1003be9e626570ce3ca44baf9c60bad3c4438c8b 16-Sep-2013 Adam Cohen <adamcohen@google.com> Fix NPE (issue 10708277)

Change-Id: I76cc74ae4e75bb9a0c1437c2f7d1c27b2fc6afd7
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
046cf3443691dcc3f9fb257e5cd170950c032639 14-Sep-2013 Michael Jurka <mikejurka@google.com> Fix wallpaper offset after boot

Bug: 10722164
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
336fd4f65b8fa0f5188060eba351fa70bb5bfde0 12-Sep-2013 Michael Jurka <mikejurka@google.com> Exit overview mode after setting wallpaper

Also, create method to exit overview mode without
an animation
Bug: 10332065
Change-Id: Iaade5ccb07aefa7d19be5f07db821a69762cb1bb
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
78cf9299b9273053aebba0fdc465d91753aae83f 14-Sep-2013 Michael Jurka <mikejurka@google.com> Merge "Update to using new crop intent" into jb-ub-now-indigo-rose
af110e8603b2f372286d9155cbe8955a6a329e2d 12-Sep-2013 Allan Wojciechowski <allanwoj@google.com> WIP: Add moveToCustomContentScreen method

To allow as to move to the -1 screen from GEL. Also added a
showWorkspace method to handle intents when we are in All Apps.

Related GEL CL at ag/357408

Change-Id: I0a4d03df2bf035d342b74f6c3c9b3fe9105f1c59
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d6214a7a639ef0cb70467c75cd09737c05589e1f 14-Sep-2013 Adam Cohen <adamcohen@google.com> Merge "Tweaking animation while scrolling to custom content page. (Bug 10394396)" into jb-ub-now-indigo-rose
5084cbab0eb0c06bd2778e0a48efaf392717cd10 03-Sep-2013 Adam Cohen <adamcohen@google.com> Shrink-wrapping model to spec (issue 10397399)

Change-Id: I87e32e8bd93f3b0468bc840200faed8270922a03
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
624cea3f7b0aa7c9a8fe40cb804d248a0ec86265 14-Sep-2013 Winson Chung <winsonc@google.com> Tweaking animation while scrolling to custom content page. (Bug 10394396)

Change-Id: I792439eb6b052ba747ab115ffd345638382ac58d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
adc574ccb1986856b38198ad5a934b7543a1debb 12-Sep-2013 Michael Jurka <mikejurka@google.com> Update to using new crop intent

Also, unify WallpaperCropActivity so it's
identical to the system default version (mainly
removing Launcher dependencies)

Change-Id: I1ebc390bce23de62d76daced6f8cb44d57e4ac0c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
77e1f47520958edd7ec04e203db65b932537bd1c 11-Sep-2013 John Spurlock <jspurlock@google.com> Add system window inset support to DragLayer and children.

Instead of fitting system windows as before, DragLayer now
lays out under the system windows.

DragLayer will simply add the system window insets to each
child's layout margins by default. e.g. for Hotseat, Page
Indicators, QSB, Search Overlay.

Children that want to use the full viewport can declare so
by implementing a new Insettable interface. System window
insets will be passed to Insettable#setInsets(insets) and
the child can do what it wants with them.

Currently, two of DragLayer's children implement Insettable:

1) Workspace (for the -1 screen).
Full screen pages are given the entire viewport, paged
view offsets modified to end up in the right place now
that the viewport is larger (the full screen height).
Non-full screen pages like the normal icon pages simply
apply the insets to end up in the same place they did
before.
NowClientCardsView uses the full viewport, applying the
insets as padding. Will want to better take advantage
of this new real estate in a future CL.

2) All Apps (AppsCustomizeTabHost).
Applies the insets as layout margin one level down, so that
the bar area is opaque during the transition, but visually
the content lands in the same place.

(Also add db_files to .gitignore to ignore the output of the
db tool)

Bug:10687177
Bug:10652189
Change-Id: I80b25d63884d244fcf704b24dad9497ee0d8b453
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
837b2413f4d101b19484b52ce7b1ce7137140133 09-Sep-2013 Winson Chung <winsonc@google.com> Removing click sounds on clicking workspace. (Bug 10547952)

Change-Id: I2e41d384041415dffc723f3c302e0854e691a01a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1bd90b0ed3344102faf1ffb5706f956ef6877f38 05-Sep-2013 Michael Jurka <mikejurka@google.com> Catch exceptions when setting wallpaper offsets

Bug: 10514504
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b56e95af5d46510334e01b109c4ec34f46be4562 05-Sep-2013 Daniel Sandler <dsandler@android.com> Fix crash on uninstall via drag.

Bug: 10347293
Change-Id: I2a2e4693fb79dd71a71cb53f9a90899788702a17
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
eadbfc564d84aaf1d800da3d0d6edf6312f89648 04-Sep-2013 Michael Jurka <mikejurka@google.com> Move wallpapers to external activity

Also renaming Launcher's ApplicationInfo to
AppInfo since ApplicationInfo is already a
framework class

Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e92c8c8e3036e15ad629b5b17ddad18b55b13a5c 29-Aug-2013 Adam Cohen <adamcohen@google.com> Merge "Adding custom content scroll progress callback" into jb-ub-gel-agar
c36fa5ce395bd39d16f6a998372700ed53d5d9d6 29-Aug-2013 Adam Cohen <adamcohen@google.com> Adding custom content scroll progress callback

Change-Id: I23b007f6ac30809c03127f5d9030d8f367694310
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
fe09cb7fe3ec1ab3e7aabd2d0415de61df31c4db 27-Aug-2013 Michael Jurka <mikejurka@google.com> Improve wallpaper cropping

- Add support for tablets
- Add support for parallax with user-cropped images
- Improve behavior in landscape

Change-Id: I50c4bba59b03d26d595a086a9ea425894f341705
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
4caf298a2c9d861d69f5a47b747ada911b125b6d 21-Aug-2013 Adam Cohen <adamcohen@google.com> Logging to disk for more reliable logging

-> Re-adding basic distinction btw apps and shortcuts
-> Adding functionality to e-mail dump file, but not using

Change-Id: I2b635004ab082af79445158ab61f20aac62d2e2f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9e6a0a20d40675ef98c7fdb8892cf34b90152f7a 27-Aug-2013 Winson Chung <winsonc@google.com> Clearing workspace screen data structures along with pages.

Change-Id: Ib6c4522cd0c0c06dd6fd327be3621a6de0778f9c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
53fc06d5d6d4b57e824490300bf62dbed54d9ac7 27-Aug-2013 Winson Chung <winsonc@google.com> Merge "Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue." into jb-ub-gel-agar
6c15a644cb72df32edb62489f272c4aefe711e8a 27-Aug-2013 Winson Chung <winsonc@google.com> Merge "Fixing folders to always show in view, removing old assets and references to LauncherModel count." into jb-ub-gel-agar
cc07e7a9c6e383f35a8de717be71201f666b01a8 26-Aug-2013 Michael Jurka <mikejurka@google.com> Add wallpaper parallax

- Currently only works with built-in wallpapers
- Animates smoothly when the number of wallpapers
changes

Change-Id: Ia63f5d4cdc6fc83495e507d93cf34405e6733515
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
0e6a713fca3261021fcaca62c75dad8486c5e39f 23-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue.

- Fixing restoring of workspace screens on rotation (and flash of custom content page indicator)
- Fixing NPE on long pressing on empty screen to go into overview mode
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
892c74d460ad98c6306420e1127c9aa3e505ba25 23-Aug-2013 Winson Chung <winsonc@google.com> Fixing folders to always show in view, removing old assets and references to LauncherModel count.
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
104c45677660586026a7e74ef8c47d396403d50e 09-Jul-2013 Michael Jurka <mikejurka@google.com> Initial implementation of new wallpaper picker.

Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6670073de833cb56dabecb1eb751b6625a5aed78 21-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue with widget sizes being misreported.

- Fixing NPE with getting page indicators in phone landscape

Change-Id: Id369596e38cbe7a161c0d1f62e62e4f4f3cc31b3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
81d6f6ecca788e6c300dfbc7d732a3867859fbd8 21-Aug-2013 Winson Chung <winsonc@google.com> Merge "Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher." into jb-ub-gel-agar
d64d1763c590b1c954b759156683abf39ff22945 20-Aug-2013 Winson Chung <winsonc@google.com> Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher.

- Updating print_db to print workspace screens

Change-Id: Id477f5a5649c0d3b7ab0cce5ed99ca0a519d7706
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
89bddfaa6d1dbd1534c5f5c5f3163c10f627209e 20-Aug-2013 Adam Cohen <adamcohen@google.com> Stripping unused method param

Change-Id: Id71664a88908773c5e64c9394070ad231d2148a1
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
5f8afe6280eae34620067696173e71943e1a30a3 13-Aug-2013 Winson Chung <winsonc@google.com> Initial Changes for Dynamic Grid

Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
76828c87ddb50ee3b423ef26f36387a2f03fd562 20-Aug-2013 Winson Chung <winsonc@google.com> Ensuring that we don't clobber workspace screens map when new apps are added.

- Using Log warnings instead of debugs
- Ensuring we don't save negative screen id's

Change-Id: I13276d007193c120ee0830abcdc6eb203f22a9da
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
2702ea006084a441f085c779ff77be1128a19bad 16-Aug-2013 Adam Cohen <adamcohen@google.com> Removing custom content padding

-> Cleaned up extraneous imports

Change-Id: I3f9258a893e85f9f6a7cc1eab03d4c5a3dfba786
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3d1b2b420684a61cf68baf4bd2a6a5ac9680d16a 15-Aug-2013 Adam Cohen <adamcohen@google.com> Passing right swipes through to custom content

-> Right swipes must follow page settle by >= 200 ms.

Change-Id: Ie5a5ae36e63f28736599a8a846570949447f7a03
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
61a9a5c359e3e14cb1beaf43dbdb54e00911fe80 14-Aug-2013 Adam Cohen <adamcohen@google.com> Don't switch pages when dragging out of folder

-> Fix bug where page switch indicator wouldn't draw on right
-> Fixed some code related to folder reordering -- no behaviour change
yet, but once the new AutoScroll is in, this should behave correctly
(ie. shouldn't reorder while in scroll zone)

Change-Id: Ic14a8d70858777164f094204472dc6a726dd461a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1b7d423c65fa40008e6bb61ad6c75d74ac20be6a 14-Aug-2013 Adam Cohen <adamcohen@google.com> Merge "Adding overview mode for reordering, widget adding and wallpaper switching" into jb-ub-gel-agar
f358a4bbd6ce5b6ddadfae19e6b9c6872530d627 24-Jul-2013 Adam Cohen <adamcohen@google.com> Adding overview mode for reordering, widget adding and wallpaper switching

Change-Id: I082ba0b90ca4b3fbba32e8dfdec8ba79486d841c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
cda092178215afea108bc299181e343adf0a6627 13-Aug-2013 Winson Chung <winsonc@google.com> Merge changes I559fae32,Ic4db1a3a into jb-ub-gel-agar

* changes:
More logging.
Adding additional logging.
e6661950f54f1813aec69928cecb3e5d4446c7e7 09-Aug-2013 Romain Guy <romainguy@google.com> It is *very important* to call super.onDetachedFromWindow()
Bug #10075732

Change-Id: I515005e35398317d98124964b6bb74f488a213f4
(cherry picked from commit 2361a4daf77ac1f076273d19bc6e171b3b74b22e)
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
45fa06ed1e1098eb40ce811e75fa556a82c0245d 13-Aug-2013 Winson Chung <winsonc@google.com> Adding additional logging.

Change-Id: Ic4db1a3abe8b735f07e51a2d35ca92273b5f76c8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
8481e32e5ba318d11c31317072a8a23aacd3d0b9 10-Aug-2013 Winson Chung <winsonc@google.com> Adding additional debugging code to track screen id updates.

Change-Id: I1749ab998a4c213b32f1160d5d21f21b2f30e389
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
3dba179949b4c1ce6d91c8eb847a91d9f2c56282 02-Aug-2013 Winson Chung <winsonc@google.com> Merge "Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic." into jb-ub-gel-agar
482a5b6ed389ef943990277e461444626c34ebf2 01-Aug-2013 Winson Chung <winsonc@google.com> Fixing crash due to grabbing oob screen index. (Bug 10114488)

Change-Id: I9e0c3d9bfcf96f092260a82b930b7ea728b6e98d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
707f650c5c9f569f1c4bfe98be00ea77cc24073d 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Adding hint for launcher to pre-create custom workspace screen." into jb-ub-gel-agar
98ca0f7203f66c491a5362c2f4db79547872bdfe 29-Jul-2013 Winson Chung <winsonc@google.com> Adding hint for launcher to pre-create custom workspace screen.

Change-Id: I150fb8b6ff13053bf4b0b49f2b510630ed50714a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
63d7870ea23502f10b74e9c91de9bd8f0bfc0507 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Verifying that new applications are added and fixing issue with new items getting wrong ids." into jb-ub-gel-agar
08ab8d28c659436966fd4afefb408dd0116ea6ff 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Prevent dragging workspace items to custom content page." into jb-ub-gel-agar
df11a77f291b1fd6d1f9358c0a42d0621737d15a 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Adding support for custom page indicator markers." into jb-ub-gel-agar
ce9249e4d31dab2a2436e5bcb4488ed7497d481c 30-Jul-2013 Derek Prothro <dprothro@google.com> Call onShow/onHide when visibility changes on -1 screen.

Bug: 10089616
Change-Id: I4365432d5ff699b3722ca3f30713e0c490d0e4ed
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
82dfe585143b8cc8b082e4ba42c58a66187994dd 27-Jul-2013 Winson Chung <winsonc@google.com> Adding support for custom page indicator markers.

Change-Id: I057b0cccc4194157d92ebb123af2afaf94fb5415
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
9883c9ae25a60b0be12f66f624a7eeff6781c175 26-Jul-2013 Winson Chung <winsonc@google.com> Prevent dragging workspace items to custom content page.

Change-Id: I4279f5feffb9512af66243969efaaadfb9011962
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
997a92348a6d6e061737399321393449c16cd4d8 25-Jul-2013 Winson Chung <winsonc@google.com> Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic.

Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c763c4e4d28c256d1368be3fc1c4526c8b9bd232 19-Jul-2013 Winson Chung <winsonc@google.com> Verifying that new applications are added and fixing issue with new items getting wrong ids.

- Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes

Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
6ad0e7dcaeef394cc1c28294dde309da69233412 24-Jul-2013 Adam Cohen <adamcohen@google.com> Fix overhang of custom content area into first screen of launcher

Change-Id: I2e8cbedb644c8399be269616e617851136489da5
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ec40b2b90c649be3b513af2ba174db56b54b64f6 24-Jul-2013 Adam Cohen <adamcohen@google.com> Giving custom content full screen

Change-Id: Icd104fff8a1a315b795a60b812048a6218bf0e5a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bffe745b1e195deedc1dcc60f37950b3b0b4c652 23-Jul-2013 Adam Cohen <adamcohen@google.com> Adding contract for custom content screen

Change-Id: Ia4dae3c641730ab24a0a124fd94b871d248b7dda
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
bc902ad603b3821f62178df31bc3fd0a501f664b 22-Jul-2013 Winson Chung <winsonc@google.com> Merge "Fixing performance issues with drawing all visible pages." into jb-ub-gel-agar
d6371244620c2c32811a4727384c8a4283f31ca2 20-Jul-2013 Adam Cohen <adamcohen@google.com> Merge "Just for now, for fun" into jb-ub-gel-agar
3e056d13d2bddc83d30abfd6a8ea17807188d07f 20-Jul-2013 Adam Cohen <adamcohen@google.com> Merge "Adding layout transition for when pages get deleted" into jb-ub-gel-agar
955806dfc49aa793a386722800be9433f94c5563 20-Jul-2013 Adam Cohen <adamcohen@google.com> Just for now, for fun

Change-Id: I4105b4299da59f5f34e280f7e7386f6e0e9c1b1a
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
22cba7f9958569a5e4c1dfcce4969daeaa6c898c 20-Jul-2013 Adam Cohen <adamcohen@google.com> Adding layout transition for when pages get deleted

-> Fixing NPE

Change-Id: I1e0cb057ff65c2b8831a2e10652acb6db10e50e3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1e2f465f46ded990ea30516cdb7f0fcf3280411f 09-Jul-2013 Michael Jurka <mikejurka@google.com> Implement ability to uninstall shortcuts from workspace

Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c9ca2980983ab21fc8631c7a65399d6d9c70f39c 19-Jul-2013 Winson Chung <winsonc@google.com> Fixing performance issues with drawing all visible pages.

Change-Id: I17736c1e6afa1f4a961c136fe82bf1d632cbe6cc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
edb4076e59861d0c343e7245f247e2bee6d48159 19-Jul-2013 Adam Cohen <adamcohen@google.com> More PagedView cleanup

-> Custom content screen is now full screen (with some padding inserted for now)
-> Hiding the hotseat and page indicators when scrolling to the
custom content screen
-> Adding background scrim fade in to custom content space.

Change-Id: I28921318a38af46f11fa836020a590c70d5d96ed
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
02b3a8ca1f9dac40677dcdee2fc88307b99cc15d 17-Jul-2013 Adam Cohen <adamcohen@google.com> Merge "Adding notion of fullscreen page to PagedView" into jb-ub-gel-agar
d2be381d36485059d0108ae89cfe57a30a7a8499 16-Jul-2013 Winson Chung <winsonc@google.com> Removing old scroll indicator and adding page indicator dots.

Change-Id: I44c5b4b532e8464010d45dd0a3dfeccb2d475216
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
96d30a165185dc59617e181314f4d22634e22952 17-Jul-2013 Adam Cohen <adamcohen@google.com> Adding notion of fullscreen page to PagedView

-> This will be used for appending custom content to the left of the workspace
-> Stripped out a bunch of dead code related to notion of layout scale in PagedView

Change-Id: If4dbe28431cb5fb60dc170f6ee6e55a649dac45e
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
b5da44583957ffe9b0311074eeb77d33e753a9e5 13-Jul-2013 Adam Cohen <adamcohen@google.com> Merge "Fixing issue where migration all apps folder couldn't be picked up." into jb-ub-gel-agar
156ab5b22e45b36a1c5edbe5accccf6aefcb4907 12-Jul-2013 Winson Chung <winsonc@google.com> Fixing issue where migration all apps folder couldn't be picked up.

- Ensuring that we add items to the non-primary home page
- Fixing issue with drop-target touch handling on tablets

Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
accfd5648ccb3a3248b422a8c1971b7de8d3207b 12-Jul-2013 Adam Cohen <adamcohen@google.com> Fix weird page jumps after dropping items

Change-Id: I9f5063d2a9db9e2f2a5c2fd183b45884da11dacc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dedbd962dcfaf055a6835abf5b0000ce1564e51e 11-Jul-2013 Adam Cohen <adamcohen@google.com> Enabling reordering

-> Reordering is enabled and persists
-> Fixed persistence issue when adding items to empty screen

Change-Id: I7c797b2c81a2988c95d8d9383be46d6ef0b7532d
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
64359a53dc827797917a8d9a0697a91996789801 09-Jul-2013 Winson Chung <winsonc@google.com> Ensuring that the db reflects all package added/removed/updated broadcasts.

- Also ensuring that newly added pages are added before the empty page

Change-Id: I97a01f791c438aa5c5b1fd770d3536b449a871bc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d6e7aa31546fd8c1d047a581c141c12fc23c047e 10-Jul-2013 Adam Cohen <adamcohen@google.com> Fix widget resizing (Which stopped working at some point)

-> Also, deferring empty screen removal until after the drop animation
in order to reduce buggy transitions
-> Also fixing workspace layout on tablet

Change-Id: I1ae9fdaf592262f959424f321efa6df4298f85cc
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7d30a37007bac318db1c9af47a9af12d348042a5 02-Jul-2013 Adam Cohen <adamcohen@google.com> Porting PagedView from KG to gain simplified scaling model, reordering

-> We are no longer scaling individual Celllayouts, instead we are scaling
the entire Workspace (and the CellLayouts come along for the ride)
-> Due to the above change, many assumptions were broken. In particular,
our drag and drop / animation archiecture is fairly fragile due to the
frequent and complex mapping of points between different bits of the
hierarchy. This CL contains a number of fixes which address such
breakages.

Change-Id: I2e630eab17528729b764b61f587858f6499fd318
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
ee0ce2b29f9cb06cc143c6f30ffc77f4915b0da9 03-Jul-2013 Michael Jurka <mikejurka@google.com> Fix NPE when drags are cancelled
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
d34ba129b16881b48ca9bbd6d0edb8aa1b2b3573 28-Jun-2013 Daniel Sandler <dsandler@android.com> Merge "Lazily instantiate LauncherAppState." into jb-ub-gel-agar
41eb470ef9c319b28ed4f5eb3b55dc525eff4750 28-Jun-2013 Adam Cohen <adamcohen@google.com> Fix now showing on screen 1

Change-Id: I83c3aa0b219e62af8c024229fe00933bcedbf9df
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e4f9891f01bdc10d8f96e4e2429e2f4d0558238b 25-Jun-2013 Daniel Sandler <dsandler@android.com> Lazily instantiate LauncherAppState.

The application context for LauncherAppState is supplied by
the application whenever it starts; don't ask for an
instance before that.

Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c916834ad0da535f08325bcd902a60070f2f7e53 26-Jun-2013 Winson Chung <winsonc@google.com> Using package broadcasts to key adding of shortcuts on the workspace.

Change-Id: Id4f83cb0351d21e3f7c029c7fe39efdacd2d6f17
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
f70696d8cc9b68c1491496de952349866dd6f6ed 26-Jun-2013 Winson Chung <winsonc@google.com> Fixing crash in shrink wrap on tablets.

Change-Id: I061960b2ca7a2cf02729665fb032d23d8f463ada
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
dcd297f05a866e07090d6e2af8fb4b15f28cb555 18-Jun-2013 Adam Cohen <adamcohen@google.com> Initial implementation of Shrink-wrap

Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
7c4c5108295db764ba091cc0ffd7af335a166449 15-Jun-2013 Adam Cohen <adamcohen@google.com> HACK: Fixing major persistence regression associated with extra screen to the left

-> Also adding ability to delete shortcuts.

Change-Id: I263baf813eae9089f11288494d575a99f0e859c3
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
a0b5749433c66b6fed5c6026414ef438a938089b 15-Jun-2013 Adam Cohen <adamcohen@google.com> Easier way to handle shortcuts

Change-Id: I91c4a25e961774de0bed51ba986802a1834173f9
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
99894d9bb73fdc4bf9bba8423b5c5d5715a4f5d5 14-Jun-2013 Adam Cohen <adamcohen@google.com> Fixing up handling of shortcuts

Change-Id: I70dd044b608f4ef18a9c436964a11122168305d0
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e572fe46f75adfb1adbf3c2a6812d1e3dbdee5e1 13-Jun-2013 Daniel Sandler <dsandler@android.com> Make HolographicOutlineHelper a singleton.

It's a pretty heavy object, including three Paints at 74
bytes apiece, and we allocate one for every workspace and
every icon. We really only need one.

Change-Id: Ic9e12d478c3be27b13133718875c91540f7ccf4c
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
1cbd1a0dec59483e27579d4ad7b7a1f7342d3898 12-Jun-2013 Bjorn Bringert <bringert@android.com> Merge changes Id26e9dcf,I4e323bd7 into jb-ub-gel-agar

* changes:
Memory debugging overlay for L3.
Move LauncherApplication's state and code to LauncherAppState.
cc8befac3550c81d04ea206c170adae36c9a6c93 11-Jun-2013 Daniel Sandler <dsandler@android.com> Move LauncherApplication's state and code to LauncherAppState.

This removes Launcher's static data and other state out of
the Application object. Now LauncherApplication (extends
Application) exists only to instantiate LauncherAppState.

Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
66a01fd24bde7c94ea892b007df7f79fbaa43d80 11-Jun-2013 Adam Cohen <adamcohen@google.com> Add API to launcher to insert a custom page to the left of workspace

Change-Id: I85a4e096aab9bfcb1de74f04075bcabcb7e3262f
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
c459e5241ea0c53dd53c16e73fd7a187701f537b 07-Jun-2013 Bjorn Bringert <bringert@google.com> Allow subclassing Launcher

Changes included:

- Make Launcher not final

- Add some new methods as hooks for subclasses

- Allow Launcher to intercept Workspace touch events

Change-Id: I9a2b628c853394a3b237a384336e1b9e5c2382ec
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
e25af795647a19f1a0d60bc4baea5a996d215fdf 07-Jun-2013 Adam Cohen <adamcohen@google.com> HACK: temporary upgrade path from com.android.launcher2

-> load old provider
-> permute pages
-> strip all duplicates from workspace
-> add [allapps minus workspaceapps] to apps folder

Change-Id: Id319d532c6bf1d78370ecc736e95a9475d831de8
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java
325dc23624160689e59fbac708cf6f222b20d025 06-Jun-2013 Daniel Sandler <dsandler@android.com> Launcher2 is now Launcher3.

Changes include
- moving from com.android.launcher{,2} to
com.android.launcher3
- removing wallpapers
- new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
/packages/apps/Launcher3/src/com/android/launcher3/Workspace.java