summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-masterSunny Goyal2016-12-1616-139/+83
|\
| * Ensuring that ShortcutInfo always has an iconSunny Goyal2016-12-1316-139/+83
| | | | | | | | | | | | | | | | | | > 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
* | Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-masterJonathan Miranda2016-12-153-7/+20
|\ \
| * | Restore original scaleRectAboutCenter method.Jon Miranda2016-12-153-7/+20
| | | | | | | | | | | | Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
* | | Using java_style enum generation for protoSunny Goyal2016-12-1512-232/+169
| | | | | | | | | | | | | | | | | | | | | This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
* | | Consolidating a few log util methodsSunny Goyal2016-12-152-127/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | LoggerUtils had a lot of methods with same name and similar arguments but completely different behavior. Instead only defining macros in LoggerUtils and movoing the action logic in the UserEventDispatcher. Change-Id: Ibce8ea1a0890499b47c950930accb9b28473f44c
* | | Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-1510-403/+45
|/ / | | | | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* | Smooth animation when dropping a widget in multi-window mode.Jon Miranda2016-12-148-32/+64
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Refactoring FlingToDelete" into ub-launcher3-masterSunny Goyal2016-12-1419-327/+227
|\ \
| * | Refactoring FlingToDeleteSunny Goyal2016-12-1319-327/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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
* | | Merge "Don't let AllAppsTransitionController intercept when a floating view ↵Tony Wickham2016-12-142-5/+4
|\ \ \ | |/ / |/| | | | | is open." into ub-launcher3-master
| * | Don't let AllAppsTransitionController intercept when a floating view is open.Tony2016-12-122-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | Previously we checked for deep shortcuts when closing all apps by swiping down. Now we check any AbstractFloatingView, and when swiping up. Bug: 33542711 Change-Id: I860eb55c69567a92cd626e966bf881b7d1bffc6e
* | | Merge "Scale folders to fit within the available height and width." into ↵Jonathan Miranda2016-12-131-14/+20
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Scale folders to fit within the available height and width.Jon Miranda2016-12-131-14/+20
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * In the previous implementation, the folder icon size would not get updated if the cell height/width was set to the minimum value not including the folderChildIconSizePx AND the usedLength was less than the maxLength. * The bug is only really noticeable in an unlikely multi-window landscape mode, which is why it was not noticed before. Change-Id: I776c6f710e081645cff891487022cf787869ee3f
* / | Resize widget frame now wraps the scaled widget view.Jon Miranda2016-12-131-10/+10
|/ / | | | | | | | | | | | | | | Previous implementation had space between the frame and the widget ie. letterboxing. Bug: 32176631 Change-Id: Ie50279f4edb94812120dea492aefa4f18218162f
* | Merge "nav bar on all apps container should use light theme. b/33553066 ↵Hyunyoung Song2016-12-123-4/+20
|\ \ | | | | | | | | | Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2" into ub-launcher3-master
| * | nav bar on all apps container should use light theme.Hyunyoung Song2016-12-123-4/+20
| | | | | | | | | | | | | | | b/33553066 Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2
* | | Merge "Adding a generic method to initiate overridable objects" into ↵Sunny Goyal2016-12-128-72/+32
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Adding a generic method to initiate overridable objectsSunny Goyal2016-12-128-72/+32
| | | | | | | | | | | | | | | | Change-Id: Ia433427c65ad38804f2eed9c6bc209df232758c0
* | | | Merge "Move icon back to original cell if a quick drag would cause reorder." ↵Tony Wickham2016-12-121-4/+15
|\ \ \ \ | | | | | | | | | | | | | | | into ub-launcher3-master
| * | | | Move icon back to original cell if a quick drag would cause reorder.Tony Wickham2016-12-071-4/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Most likely the user accidentally dragged the icon, so let's not rearrange their home screen. Bug: 30378199 Change-Id: I815a0817bca3b0d212324a58842b1f59dfdf0b91
* | | | Merge "Lower the transition threshold for dropping on Workspace." into ↵TreeHugger Robot2016-12-121-3/+12
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-master
| * | | | Lower the transition threshold for dropping on Workspace.Tony Wickham2016-12-121-3/+12
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Allow long-press on workspace immediately after dropping." into ↵Tony Wickham2016-12-122-2/+7
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-master
| * | | | Allow long-press on workspace immediately after dropping.Tony Wickham2016-12-122-2/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" ↵Sunny Goyal2016-12-129-89/+78
|\ \ \ \ | |_|_|/ |/| | | | | | | into ub-launcher3-master
| * | | Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-219-89/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* | | | Merge "Adding support for app widgets in the InstallQueue" into ↵Sunny Goyal2016-12-123-30/+116
|\ \ \ \ | |_|/ / |/| | | | | | | ub-launcher3-master
| * | | Adding support for app widgets in the InstallQueueSunny Goyal2016-12-123-30/+116
| | | | | | | | | | | | | | | | | | | | Bug: 32904959 Change-Id: I0d07a0c59d266493ae30a42579c1fa69b805009e
* | | | Merge "Set PreloadIconDrawable disabled = false when restore is complete" ↵Tony Wickham2016-12-081-2/+3
|\ \ \ \ | | | | | | | | | | | | | | | into ub-launcher3-master
| * | | | Set PreloadIconDrawable disabled = false when restore is completeTony Wickham2016-12-081-2/+3
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | This ensures that it regains its color rather than remaining gray. Bug: 33429398 Change-Id: Ic073570613aa01f061f0f3093cf05ee74332ae8a
* | | | Merge "Scale widgets when dragging and dropping in multi-window mode." into ↵Jonathan Miranda2016-12-083-18/+57
|\ \ \ \ | |_|/ / |/| | | | | | | ub-launcher3-master
| * | | Scale widgets when dragging and dropping in multi-window mode.Jon Miranda2016-12-083-18/+57
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Simplifyling widget inflation and addition flow." into ↵Sunny Goyal2016-12-084-70/+50
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Simplifyling widget inflation and addition flow.Sunny Goyal2016-12-074-70/+50
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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
* | | Merge "Adding support for deep shortcuts in Install queue" into ↵Sunny Goyal2016-12-083-68/+148
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Adding support for deep shortcuts in Install queueSunny Goyal2016-12-033-68/+148
| | | | | | | | | | | | | | | | | | | | Bug: 32904959 Change-Id: Ida43bcf78da716defdf95eb704c31973bc390ea1
* | | | Adding an overridable DrawableFactory to allow creating custom icon drawablesSunny Goyal2016-12-077-48/+97
| |/ / |/| | | | | | | | | | | | | | > Adding ItemInfo as a parameter for creating drawable Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
* | | Fix for mTransitionProgress not being updated throughout animation.Tony Wickham2016-12-061-2/+1
|/ / | | | | | | Change-Id: I8f792794b7bc6edff081383b5a0a74af04a744ad
* | Merge "Bug fix: QSB sometimes gets stuck to transparent." into ↵Sunny Goyal2016-11-305-22/+35
|\ \ | | | | | | | | | ub-launcher3-master
| * | Bug fix: QSB sometimes gets stuck to transparent.Sunny Goyal2016-11-245-22/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At some places, we were calling removeAllListeners before calling cancel on an animation. AnimationListeners are also used to track states, and removing listeners before canceling will prevent onAnimationEnd to be called, thus preventing state cleanup. PinchAnimationManager was causing ZeroAlphaAnimatorListener to be removing from Qsb alpha animation, making the MultiStateAlphaController think there is a zeroAlpha animation running. > Removing all instances of removeAllListeners > Updating various affected listeners to handle onAnimatinoCancel > Fixing WorkspaceStateTransitionAnimation, which was animation QSB alpha on page scroll index Bug: 31910152 Change-Id: Ie7f31b67d4c502badcdd41f7b04867d1f35f5d27
* | | Merge "Moving ShortcutInfo creation in InstallShortcutReceiver to background ↵Sunny Goyal2016-11-305-50/+108
|\ \ \ | | | | | | | | | | | | thread" into ub-launcher3-master
| * | | Moving ShortcutInfo creation in InstallShortcutReceiver to background threadSunny Goyal2016-11-305-50/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > Creating shortcut info requires iconCache access Bug: 21325319 Change-Id: I3317d8b6824aa05b836f3ed3626f169d4d34f783
* | | | Merge "Fixing wrong message sent on app widget host reset" into ↵Sunny Goyal2016-11-301-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-master
| * | | | Fixing wrong message sent on app widget host resetSunny Goyal2016-11-291-1/+1
| | |/ / | |/| | | | | | | | | | Change-Id: If5842d4ebbf3fa0ef8596f22788f909748f01ac5
* / | | Scale widgets in multi-window mode.Jon Miranda2016-11-234-13/+52
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | To keep this CL small and focused, I'm going to create a separate CL that handles the scaling for the widget in drag and drop mode. Bug: 32176631 Change-Id: Id6557d070edb664aa1f4851de7abf494cf8a0677
* | | Added logging for HOME_INTENT and BACK commands.Jon Miranda2016-11-215-36/+133
| | | | | | | | | | | | | | | | | | Document: go/false-longpress-overview Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2
* | | Add logging for workspace rearrangement in overview modeHyunyoung Song2016-11-212-1/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: 0d4899026c Change-Id: Ie6569ecafdd63981e167a910f852a8133697ae81
| * | | Add logging for workspace rearrangement in overview modeHyunyoung Song2016-11-172-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | b/32457561 Change-Id: Ic38fbd540616a74f26c19a09ab4247fe8f9174b4
* | | | Merge "Changing DeepShortcutManager to have a singleton contructor instead ↵Sunny Goyal2016-11-219-31/+36
|\ \ \ \ | | | | | | | | | | | | | | | of getting it from LauncherAppState" into ub-launcher3-master