OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoMerge "Fixed mw bug where resize frame is off when resizing." into ub-launcher3-master
Jonathan Miranda [Mon, 9 Jan 2017 19:48:01 +0000 (19:48 +0000)]
Merge "Fixed mw bug where resize frame is off when resizing." into ub-launcher3-master

7 years agoMerge "Removing logic around replacing icon during restore" into ub-launcher3-master
Sunny Goyal [Fri, 6 Jan 2017 18:01:36 +0000 (18:01 +0000)]
Merge "Removing logic around replacing icon during restore" into ub-launcher3-master

7 years agoRemoving logic around replacing icon during restore
Sunny Goyal [Thu, 5 Jan 2017 22:03:59 +0000 (14:03 -0800)]
Removing logic around replacing icon during restore

This logic was dependent on key-value based backup. Since we are
using full-backup, the appropriate flags are never set.

Bug: 18764649
Change-Id: I95a93eee63ac9c82acfb66abfdd1a5407974df46

7 years agoUpdating PendingAppWidgetHostView to load icon on the background thread
Sunny Goyal [Wed, 4 Jan 2017 00:52:43 +0000 (16:52 -0800)]
Updating PendingAppWidgetHostView to load icon on the background thread

Bug: 21325319
Change-Id: I0886eec5a3f36f5e1ac18020c54891a56bdb5ed2

7 years agoMerge "Enables direct scrolling on the fastscroll bar." into ub-launcher3-master
Mario Bertschler [Thu, 5 Jan 2017 19:29:40 +0000 (19:29 +0000)]
Merge "Enables direct scrolling on the fastscroll bar." into ub-launcher3-master

7 years agoRevert "Build empty test apk until junit dependency issue is sorted out."
Hyunyoung Song [Thu, 5 Jan 2017 18:55:42 +0000 (10:55 -0800)]
Revert "Build empty test apk until junit dependency issue is sorted out."

This reverts commit 4c82c33a64b9f6719a0a1457361362cf70e2c9ac.

Change-Id: I39c142e2b0e882245a6928264465578e4ddc12c9

7 years agoMerge "Fixing onPageBeginTransition not being called when scrolling overlay" into...
Sunny Goyal [Wed, 4 Jan 2017 21:57:39 +0000 (21:57 +0000)]
Merge "Fixing onPageBeginTransition not being called when scrolling overlay" into ub-launcher3-master

7 years agoFixing onPageBeginTransition not being called when scrolling overlay
Sunny Goyal [Tue, 3 Jan 2017 22:55:47 +0000 (14:55 -0800)]
Fixing onPageBeginTransition not being called when scrolling overlay

Bug: 33693546
Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8

7 years agoMerge "Simplifying IconCache access code" into ub-launcher3-master
Sunny Goyal [Wed, 4 Jan 2017 00:33:45 +0000 (00:33 +0000)]
Merge "Simplifying IconCache access code" into ub-launcher3-master

7 years agoSimplifying IconCache access code
Sunny Goyal [Fri, 16 Dec 2016 01:40:07 +0000 (17:40 -0800)]
Simplifying IconCache access code

Providing a way to access icon cache without LauncherAcitivtiyInfo.
This allows fetching LauncherActivityInfo only when required, thus
avoiding system RPC when the icon is already in cache.

Change-Id: I92918c7a0d0d0796e5f7b70d4ecb6787c52c6600

7 years agoEnables direct scrolling on the fastscroll bar.
Mario Bertschler [Tue, 27 Dec 2016 23:41:24 +0000 (15:41 -0800)]
Enables direct scrolling on the fastscroll bar.

This enables to touch anywhere in the scrollbar to directly scroll to that particular point
without the need of exactly touching the thumb to start fastscrolling.

This feature is currently behind a feature flag LAUNCHER3_DIRECT_SCROLL and enabled by default.

Change-Id: I5b86c6acb71ff0c88476343657da221c7bdc59c3

7 years agoBind the out IntRange using its start and end values.
Jon Miranda [Tue, 3 Jan 2017 17:30:00 +0000 (09:30 -0800)]
Bind the out IntRange using its start and end values.

In applyDeltaAndBound, we add the current IntRange values
+ delta param to the outbound IntRange -- but then we only
bind based on the current IntRange values, so the out IntRange
values can end be out of bounds.

Change-Id: Ibbaae8c2c2734107d1fd7ce8a59a4c66d83068ad

7 years agoFixed mw bug where resize frame is off when resizing.
Jon Miranda [Wed, 28 Dec 2016 18:49:55 +0000 (10:49 -0800)]
Fixed mw bug where resize frame is off when resizing.

When a widget resizes in multi-window mode (ie. user is dragging
the resize frame), the frame is misaligned until the user lets go.
This is because the translation value to center fit the resized
widget is not taken into consideration.

Bug: 32176631
Change-Id: I6f9ee7be12d3266f021796576c771f86f6120246

7 years agoMerge "Fix widget reorder animations in multi-window mode." into ub-launcher3-master
Jonathan Miranda [Fri, 30 Dec 2016 00:42:11 +0000 (00:42 +0000)]
Merge "Fix widget reorder animations in multi-window mode." into ub-launcher3-master

7 years agoMerge "Fixes a bug where the user ends in freescroll state even for regular workspace...
Mario Bertschler [Thu, 29 Dec 2016 23:33:01 +0000 (23:33 +0000)]
Merge "Fixes a bug where the user ends in freescroll state even for regular workspace mode." into ub-launcher3-master

7 years agoRemoving static access to Context through LauncherAppState
Sunny Goyal [Thu, 29 Dec 2016 21:31:43 +0000 (13:31 -0800)]
Removing static access to Context through LauncherAppState

Bug: 33032833
Change-Id: I09baaa6d79187b3096a2ab3a89d7dcaeaf9eee68

7 years agoMerge "Removing all compatibility code below Lollipop" into ub-launcher3-master
Sunny Goyal [Thu, 29 Dec 2016 21:29:31 +0000 (21:29 +0000)]
Merge "Removing all compatibility code below Lollipop" into ub-launcher3-master

7 years agoFixes a bug where the user ends in freescroll state even for regular workspace mode.
Mario Bertschler [Wed, 21 Dec 2016 19:48:48 +0000 (11:48 -0800)]
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

7 years agoFix clipping of drag outline by increasing padding.
Jon Miranda [Thu, 13 Oct 2016 03:35:59 +0000 (20:35 -0700)]
Fix clipping of drag outline by increasing padding.

Low resolution will be addressed in future CL.

Bug: 31915722
Change-Id: I6bdd32b7a30819fde1f15473a63ac280029b6715

7 years agoFix widget reorder animations in multi-window mode.
Jon Miranda [Mon, 19 Dec 2016 22:12:05 +0000 (14:12 -0800)]
Fix widget reorder animations in multi-window mode.

The original animation assumed that the views are not
translated and not scaled. In multi-window mode this
assumption is no longer valid, because app widgets are
scaled and translated to fit center within their cells.

Bug: 32176631
Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38

7 years agoNav bar should change to light theme in sync with the status bar
Hyunyoung Song [Mon, 19 Dec 2016 22:46:21 +0000 (14:46 -0800)]
Nav bar should change to light theme in sync with the status bar
b/33708486

Nav bar should be in sync with status bar in all apps screen.
Nave bar should not change with status bar when in workspace mode.

Change-Id: Ib5a0d33d3e38f1b3ffa9693657ba7de3b6e01fed

7 years agoRemoving all compatibility code below Lollipop
Sunny Goyal [Fri, 16 Dec 2016 23:04:51 +0000 (15:04 -0800)]
Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3

7 years agoMerge "Using support lib for isAtleastO check" into ub-launcher3-master
Sunny Goyal [Fri, 16 Dec 2016 22:00:16 +0000 (22:00 +0000)]
Merge "Using support lib for isAtleastO check" into ub-launcher3-master

7 years agoUpdating edge scrolling logic during drag and drop
Sunny Goyal [Thu, 15 Dec 2016 19:02:21 +0000 (11:02 -0800)]
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

7 years agoUsing support lib for isAtleastO check
Sunny Goyal [Fri, 16 Dec 2016 17:15:32 +0000 (09:15 -0800)]
Using support lib for isAtleastO check

Bug: 32610406
Change-Id: I89b3c4f0c99ac605883677cf0becaab0fbf48a86

7 years agoNo more UserHandleCompat
Sunny Goyal [Thu, 15 Dec 2016 23:53:17 +0000 (15:53 -0800)]
No more UserHandleCompat

Bug: 32745285
Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95

7 years agoMerge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-master
Sunny Goyal [Fri, 16 Dec 2016 00:21:29 +0000 (00:21 +0000)]
Merge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-master

7 years agoMerge "Restore original scaleRectAboutCenter method." into ub-launcher3-master
Jonathan Miranda [Thu, 15 Dec 2016 19:36:40 +0000 (19:36 +0000)]
Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-master

7 years agoRestore original scaleRectAboutCenter method.
Jon Miranda [Thu, 15 Dec 2016 19:24:18 +0000 (11:24 -0800)]
Restore original scaleRectAboutCenter method.

Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25

7 years agoUsing java_style enum generation for proto
Sunny Goyal [Tue, 22 Nov 2016 20:54:32 +0000 (02:24 +0530)]
Using java_style enum generation for proto

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

Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569

7 years agoConsolidating a few log util methods
Sunny Goyal [Tue, 22 Nov 2016 18:19:52 +0000 (23:49 +0530)]
Consolidating a few log util methods

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

7 years agoRemoving FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logic
Sunny Goyal [Wed, 14 Dec 2016 23:13:00 +0000 (15:13 -0800)]
Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logic

Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176

7 years agoSmooth animation when dropping a widget in multi-window mode.
Jon Miranda [Wed, 7 Dec 2016 20:10:44 +0000 (12:10 -0800)]
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

7 years agoMerge "Refactoring FlingToDelete" into ub-launcher3-master
Sunny Goyal [Wed, 14 Dec 2016 22:10:31 +0000 (22:10 +0000)]
Merge "Refactoring FlingToDelete" into ub-launcher3-master

7 years agoRefactoring FlingToDelete
Sunny Goyal [Wed, 14 Dec 2016 03:37:10 +0000 (19:37 -0800)]
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

7 years agoMerge "Don't let AllAppsTransitionController intercept when a floating view is open...
Tony Wickham [Wed, 14 Dec 2016 05:06:08 +0000 (05:06 +0000)]
Merge "Don't let AllAppsTransitionController intercept when a floating view is open." into ub-launcher3-master

7 years agoMerge "Scale folders to fit within the available height and width." into ub-launcher3...
Jonathan Miranda [Tue, 13 Dec 2016 19:19:02 +0000 (19:19 +0000)]
Merge "Scale folders to fit within the available height and width." into ub-launcher3-master

7 years agoScale folders to fit within the available height and width.
Jon Miranda [Tue, 13 Dec 2016 16:57:36 +0000 (08:57 -0800)]
Scale folders to fit within the available height and width.

* 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

7 years agoEnsuring that ShortcutInfo always has an icon
Sunny Goyal [Wed, 9 Nov 2016 18:43:58 +0000 (10:43 -0800)]
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

7 years agoResize widget frame now wraps the scaled widget view.
Jon Miranda [Mon, 12 Dec 2016 23:43:18 +0000 (15:43 -0800)]
Resize widget frame now wraps the scaled widget view.

Previous implementation had space between the frame and
the widget ie. letterboxing.

Bug: 32176631
Change-Id: Ie50279f4edb94812120dea492aefa4f18218162f

7 years agoDon't let AllAppsTransitionController intercept when a floating view is open.
Tony [Tue, 13 Dec 2016 06:23:28 +0000 (22:23 -0800)]
Don't let AllAppsTransitionController intercept when a floating view is open.

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

7 years agoMerge "nav bar on all apps container should use light theme. b/33553066 Change-Id...
Hyunyoung Song [Mon, 12 Dec 2016 22:51:06 +0000 (22:51 +0000)]
Merge "nav bar on all apps container should use light theme. b/33553066 Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2" into ub-launcher3-master

7 years agonav bar on all apps container should use light theme.
Hyunyoung Song [Fri, 9 Dec 2016 21:56:15 +0000 (13:56 -0800)]
nav bar on all apps container should use light theme.
b/33553066
Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2

7 years agoMerge "Adding a generic method to initiate overridable objects" into ub-launcher3...
Sunny Goyal [Mon, 12 Dec 2016 22:20:36 +0000 (22:20 +0000)]
Merge "Adding a generic method to initiate overridable objects" into ub-launcher3-master

7 years agoMerge "Move icon back to original cell if a quick drag would cause reorder." into...
Tony Wickham [Mon, 12 Dec 2016 22:17:02 +0000 (22:17 +0000)]
Merge "Move icon back to original cell if a quick drag would cause reorder." into ub-launcher3-master

7 years agoMerge "Lower the transition threshold for dropping on Workspace." into ub-launcher3...
TreeHugger Robot [Mon, 12 Dec 2016 22:02:55 +0000 (22:02 +0000)]
Merge "Lower the transition threshold for dropping on Workspace." into ub-launcher3-master

7 years agoLower the transition threshold for dropping on Workspace.
Tony Wickham [Sat, 3 Dec 2016 02:54:32 +0000 (18:54 -0800)]
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

7 years agoMerge "Allow long-press on workspace immediately after dropping." into ub-launcher3...
Tony Wickham [Mon, 12 Dec 2016 21:03:24 +0000 (21:03 +0000)]
Merge "Allow long-press on workspace immediately after dropping." into ub-launcher3-master

7 years agoAllow long-press on workspace immediately after dropping.
Tony Wickham [Fri, 2 Dec 2016 22:47:04 +0000 (14:47 -0800)]
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

7 years agoMerge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" into ub...
Sunny Goyal [Mon, 12 Dec 2016 20:45:17 +0000 (20:45 +0000)]
Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" into ub-launcher3-master

7 years agoMerge "Adding support for app widgets in the InstallQueue" into ub-launcher3-master
Sunny Goyal [Mon, 12 Dec 2016 17:16:45 +0000 (17:16 +0000)]
Merge "Adding support for app widgets in the InstallQueue" into ub-launcher3-master

7 years agoAdding a generic method to initiate overridable objects
Sunny Goyal [Fri, 2 Dec 2016 13:59:43 +0000 (19:29 +0530)]
Adding a generic method to initiate overridable objects

Change-Id: Ia433427c65ad38804f2eed9c6bc209df232758c0

7 years agoAdding support for app widgets in the InstallQueue
Sunny Goyal [Thu, 8 Dec 2016 17:59:25 +0000 (09:59 -0800)]
Adding support for app widgets in the InstallQueue

Bug: 32904959
Change-Id: I0d07a0c59d266493ae30a42579c1fa69b805009e

7 years agoMerge "Build empty test apk until junit dependency issue is sorted out." into ub...
Hyunyoung Song [Thu, 8 Dec 2016 23:05:33 +0000 (23:05 +0000)]
Merge "Build empty test apk until junit dependency issue is sorted out." into ub-launcher3-master

7 years agoBuild empty test apk until junit dependency issue is sorted out.
Hyunyoung Song [Thu, 8 Dec 2016 22:58:44 +0000 (14:58 -0800)]
Build empty test apk until junit dependency issue is sorted out.

Change-Id: Ib63a654139e43c433011d0f7b761905426aff24d

7 years agoMerge "Set PreloadIconDrawable disabled = false when restore is complete" into ub...
Tony Wickham [Thu, 8 Dec 2016 22:27:40 +0000 (22:27 +0000)]
Merge "Set PreloadIconDrawable disabled = false when restore is complete" into ub-launcher3-master

7 years agoSet PreloadIconDrawable disabled = false when restore is complete
Tony Wickham [Thu, 8 Dec 2016 19:41:22 +0000 (11:41 -0800)]
Set PreloadIconDrawable disabled = false when restore is complete

This ensures that it regains its color rather than remaining gray.

Bug: 33429398
Change-Id: Ic073570613aa01f061f0f3093cf05ee74332ae8a

7 years agoMerge "Scale widgets when dragging and dropping in multi-window mode." into ub-launch...
Jonathan Miranda [Thu, 8 Dec 2016 18:43:17 +0000 (18:43 +0000)]
Merge "Scale widgets when dragging and dropping in multi-window mode." into ub-launcher3-master

7 years agoScale widgets when dragging and dropping in multi-window mode.
Jon Miranda [Mon, 5 Dec 2016 20:04:44 +0000 (12:04 -0800)]
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

7 years agoMerge "Simplifyling widget inflation and addition flow." into ub-launcher3-master
Sunny Goyal [Thu, 8 Dec 2016 00:46:10 +0000 (00:46 +0000)]
Merge "Simplifyling widget inflation and addition flow." into ub-launcher3-master

7 years agoMerge "Adding support for deep shortcuts in Install queue" into ub-launcher3-master
Sunny Goyal [Thu, 8 Dec 2016 00:36:24 +0000 (00:36 +0000)]
Merge "Adding support for deep shortcuts in Install queue" into ub-launcher3-master

7 years agoAdding an overridable DrawableFactory to allow creating custom icon drawables
Sunny Goyal [Sat, 12 Nov 2016 17:58:29 +0000 (09:58 -0800)]
Adding an overridable DrawableFactory to allow creating custom icon drawables

> Adding ItemInfo as a parameter for creating drawable

Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc

7 years agoSimplifyling widget inflation and addition flow.
Sunny Goyal [Tue, 22 Nov 2016 11:22:39 +0000 (16:52 +0530)]
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

7 years agoMove icon back to original cell if a quick drag would cause reorder.
Tony Wickham [Wed, 7 Dec 2016 00:24:43 +0000 (16:24 -0800)]
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

7 years agoFix for mTransitionProgress not being updated throughout animation.
Tony Wickham [Wed, 7 Dec 2016 01:11:35 +0000 (17:11 -0800)]
Fix for mTransitionProgress not being updated throughout animation.

Change-Id: I8f792794b7bc6edff081383b5a0a74af04a744ad

7 years agoAdding support for deep shortcuts in Install queue
Sunny Goyal [Mon, 21 Nov 2016 21:53:51 +0000 (03:23 +0530)]
Adding support for deep shortcuts in Install queue

Bug: 32904959
Change-Id: Ida43bcf78da716defdf95eb704c31973bc390ea1

7 years agoMerge "Bug fix: QSB sometimes gets stuck to transparent." into ub-launcher3-master
Sunny Goyal [Wed, 30 Nov 2016 17:50:01 +0000 (17:50 +0000)]
Merge "Bug fix: QSB sometimes gets stuck to transparent." into ub-launcher3-master

7 years agoMerge "Moving ShortcutInfo creation in InstallShortcutReceiver to background thread...
Sunny Goyal [Wed, 30 Nov 2016 16:42:30 +0000 (16:42 +0000)]
Merge "Moving ShortcutInfo creation in InstallShortcutReceiver to background thread" into ub-launcher3-master

7 years agoMoving ShortcutInfo creation in InstallShortcutReceiver to background thread
Sunny Goyal [Wed, 16 Nov 2016 17:23:42 +0000 (09:23 -0800)]
Moving ShortcutInfo creation in InstallShortcutReceiver to background thread

> Creating shortcut info requires iconCache access

Bug: 21325319
Change-Id: I3317d8b6824aa05b836f3ed3626f169d4d34f783

7 years agoMerge "Fixing wrong message sent on app widget host reset" into ub-launcher3-master
Sunny Goyal [Wed, 30 Nov 2016 00:10:06 +0000 (00:10 +0000)]
Merge "Fixing wrong message sent on app widget host reset" into ub-launcher3-master

7 years agoFixing wrong message sent on app widget host reset
Sunny Goyal [Tue, 29 Nov 2016 01:55:49 +0000 (07:25 +0530)]
Fixing wrong message sent on app widget host reset

Change-Id: If5842d4ebbf3fa0ef8596f22788f909748f01ac5

7 years agoBug fix: QSB sometimes gets stuck to transparent.
Sunny Goyal [Thu, 24 Nov 2016 01:16:50 +0000 (06:46 +0530)]
Bug fix: QSB sometimes gets stuck to transparent.

 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

7 years agoScale widgets in multi-window mode.
Jon Miranda [Tue, 22 Nov 2016 00:18:46 +0000 (16:18 -0800)]
Scale widgets in multi-window mode.

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

7 years agoAdded logging for HOME_INTENT and BACK commands.
Jon Miranda [Thu, 6 Oct 2016 17:53:29 +0000 (10:53 -0700)]
Added logging for HOME_INTENT and BACK commands.

Document: go/false-longpress-overview

Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2

7 years agoAdd logging for workspace rearrangement in overview mode
Hyunyoung Song [Mon, 21 Nov 2016 19:48:08 +0000 (19:48 +0000)]
Add logging for workspace rearrangement in overview mode
am: 0d4899026c

Change-Id: Ie6569ecafdd63981e167a910f852a8133697ae81

7 years agoMerge "Changing DeepShortcutManager to have a singleton contructor instead of getting...
Sunny Goyal [Mon, 21 Nov 2016 17:07:05 +0000 (17:07 +0000)]
Merge "Changing DeepShortcutManager to have a singleton contructor instead of getting it from LauncherAppState" into ub-launcher3-master

7 years agoMerge "Adding a utility class to enforce that icons are always flattened on the backg...
Sunny Goyal [Mon, 21 Nov 2016 17:02:10 +0000 (17:02 +0000)]
Merge "Adding a utility class to enforce that icons are always flattened on the background thread." into ub-launcher3-master

7 years agoChanging DeepShortcutManager to have a singleton contructor instead
Sunny Goyal [Mon, 21 Nov 2016 10:32:39 +0000 (16:02 +0530)]
Changing DeepShortcutManager to have a singleton contructor instead
of getting it from LauncherAppState

This follows the design of other managers and makes it easier to access it
from other processes and non-ui thread.

Bug: 33032833
Change-Id: I8ad82ae5b6cc47bae885f9896985675c7dd0d5b8

7 years agoDefining various modes for CellLayout: Workspace, Hotseat & Folder
Sunny Goyal [Sat, 19 Nov 2016 07:44:48 +0000 (23:44 -0800)]
Defining various modes for CellLayout: Workspace, Hotseat & Folder

> Moving the definition of modes to xml
> Defining attributes in xml

Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11

7 years agoRemoving widgetGap and heightGap from cellLayout
Sunny Goyal [Sun, 20 Nov 2016 09:56:01 +0000 (15:26 +0530)]
Removing widgetGap and heightGap from cellLayout

This values are always set to 0

Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8

7 years agoAdding a utility class to enforce that icons are always flattened on
Sunny Goyal [Fri, 11 Nov 2016 19:45:00 +0000 (11:45 -0800)]
Adding a utility class to enforce that icons are always flattened on
the background thread.

Bug: 21325319
Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf

7 years agoMerge "Moving saving state transtion listener logic to individual views" into ub...
Sunny Goyal [Fri, 18 Nov 2016 01:17:51 +0000 (01:17 +0000)]
Merge "Moving saving state transtion listener logic to individual views" into ub-launcher3-master

7 years agoMerge "Fixing item check when user is enabled/disabled" into ub-launcher3-master
Sunny Goyal [Thu, 17 Nov 2016 22:41:34 +0000 (22:41 +0000)]
Merge "Fixing item check when user is enabled/disabled" into ub-launcher3-master

7 years agoAdd logging for workspace rearrangement in overview mode
Hyunyoung Song [Thu, 17 Nov 2016 20:23:33 +0000 (12:23 -0800)]
Add logging for workspace rearrangement in overview mode

b/32457561

Change-Id: Ic38fbd540616a74f26c19a09ab4247fe8f9174b4

7 years agoMerge "Add bottom padding to hotseat in multi-window mode." into ub-launcher3-master
Jonathan Miranda [Wed, 16 Nov 2016 16:31:20 +0000 (16:31 +0000)]
Merge "Add bottom padding to hotseat in multi-window mode." into ub-launcher3-master

7 years agoFixing item check when user is enabled/disabled
Sunny Goyal [Wed, 16 Nov 2016 01:27:15 +0000 (17:27 -0800)]
Fixing item check when user is enabled/disabled

Bug: 32747950
Change-Id: I278cbd7626ee30be6b803d617cf05f8359e5d940

7 years agoMake Launcher3 privileged module am: 7810d4bfa9
Hyunyoung Song [Wed, 16 Nov 2016 00:18:08 +0000 (00:18 +0000)]
Make Launcher3 privileged module am: 7810d4bfa9
am: fb9fe7c157

Change-Id: I8cc95fd91df275defcc90b222be9ac166f98618d

7 years agoMake Launcher3 privileged module
Hyunyoung Song [Wed, 16 Nov 2016 00:11:06 +0000 (00:11 +0000)]
Make Launcher3 privileged module
am: 7810d4bfa9

Change-Id: Id58c4dab888e8a97ccab39b1934515e3f8bb0db0

7 years agoAdd bottom padding to hotseat in multi-window mode.
Jon Miranda [Tue, 15 Nov 2016 22:37:56 +0000 (14:37 -0800)]
Add bottom padding to hotseat in multi-window mode.

In multi-window mode, the navigation bar is black which makes the
hotseat's top padding -- and lack of symmetric botom padding --
super apparent. We add bottom padding to the hotseat so that the
hotseat icons remain visually centered.

Bug: 32176631
Change-Id: I3eebf5ab98898c8ee092bda6ec48c6afdcd353b9

7 years agoMerge "Hide workspace text in multi-window mode." into ub-launcher3-master
Jonathan Miranda [Tue, 15 Nov 2016 20:17:42 +0000 (20:17 +0000)]
Merge "Hide workspace text in multi-window mode." into ub-launcher3-master

7 years agoMerge "Animate icons back to where they were picked up." into ub-launcher3-master
Tony Wickham [Tue, 15 Nov 2016 19:53:32 +0000 (19:53 +0000)]
Merge "Animate icons back to where they were picked up." into ub-launcher3-master

7 years agoHide workspace text in multi-window mode.
Jon Miranda [Fri, 11 Nov 2016 22:13:04 +0000 (14:13 -0800)]
Hide workspace text in multi-window mode.

* Vertically centers workspace icons.
* New iconDisplay value so shortcut text is not overriden.

Bug: 32176631

Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0

7 years agoMerge "Catching TransactionTooLargeException when binding widget." into ub-launcher3...
Sunny Goyal [Tue, 15 Nov 2016 19:07:31 +0000 (19:07 +0000)]
Merge "Catching TransactionTooLargeException when binding widget." into ub-launcher3-master

7 years agoMerge "Using dimension defined for all apps search bar height." into ub-launcher3...
Jonathan Miranda [Tue, 15 Nov 2016 18:52:16 +0000 (18:52 +0000)]
Merge "Using dimension defined for all apps search bar height." into ub-launcher3-master

7 years agoMerge "Add ShortcutsLaunchTest and ShortcutsToHomeTest." into ub-launcher3-master
Tony Wickham [Tue, 15 Nov 2016 18:03:06 +0000 (18:03 +0000)]
Merge "Add ShortcutsLaunchTest and ShortcutsToHomeTest." into ub-launcher3-master

7 years agoMoving saving state transtion listener logic to individual views
Sunny Goyal [Thu, 27 Oct 2016 02:12:47 +0000 (19:12 -0700)]
Moving saving state transtion listener logic to individual views

Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb

7 years agoMerge "Moving the setContentView at the end of onCreate" into ub-launcher3-master
Sunny Goyal [Tue, 15 Nov 2016 00:53:28 +0000 (00:53 +0000)]
Merge "Moving the setContentView at the end of onCreate" into ub-launcher3-master

7 years agoAdd ShortcutsLaunchTest and ShortcutsToHomeTest.
Tony Wickham [Mon, 14 Nov 2016 23:22:52 +0000 (15:22 -0800)]
Add ShortcutsLaunchTest and ShortcutsToHomeTest.

- ShortcutsLaunchTest verifies that launching shortcut
  from the deep shortcuts container works.
- ShortcutsToHomeTest verifies that shortcuts can be
  dragged from the deep shortcuts container.

Change-Id: I6919b69d4ea1c9e0f13a8f236266745c12ef0715

7 years agoFix drag and drop test by moving a bit if there are shortcuts.
Tony Wickham [Mon, 14 Nov 2016 22:14:19 +0000 (14:14 -0800)]
Fix drag and drop test by moving a bit if there are shortcuts.

Change-Id: Icd023f5d095610b6d1aadbf455d068ce7d700768

7 years agoMake Launcher3 privileged module
Hyunyoung Song [Mon, 14 Nov 2016 18:44:39 +0000 (10:44 -0800)]
Make Launcher3 privileged module

Make privileged module to enable Launcher to render search widget
without granting permission to gmscore.

Change-Id: I920233ced18325ecc8db70e9227993913a2d9762
(cherry picked from commit 3fa9954cf16d57aa156b51a9fe97decff4f4140f)