summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Adding support for drag and drop for requestPinItem.Sunny Goyal2017-01-2414-342/+411
| | | | | | | | | | | | | | | | | | | | On long pressing, the confirmation activity starts a system drag-n-drop and focuses the launcher activity. We then drive the launcher drag controller using the system drag event Caveats: > We use a transparent preview for system drag and drop and use a view inside launcher for actual preview. This gives us better control over various animations. > The parameters for drag operation are passed to the Launcher activity using the intent. Since onNewIntent and onDragEvent come at different times and are not associated, a random uuid is used as mime-type to match the drag event with intent params > If the workspace is locked (eg, loader is running) the drag operation is simply dropped. Will be imporved in follow up cls Bug: 33584624 Change-Id: I0bb5b25b690f86b6af31a14e11beb669fcb3a281
* Adding some widget addition flow testsSunny Goyal2017-01-236-56/+90
| | | | | | | > Added two dummy widget providers: with config and without config > Added tests for verify widget config flow Change-Id: I4577f085abe8f8b82047b644c71cc9065358153a
* Adding WidgetAddFlowHandler to handle widget addition and configuration.Sunny Goyal2017-01-235-76/+149
| | | | | | | | This will allow us to override the implementation and provide custom logic for widget addition. Bug: 33584624 Change-Id: I310bf39e301c7e1c8de4f62456594535e2fe5bbc
* Merge "Using WidgetCell in the Pin Item confirmation prompt for a consistent ↵Sunny Goyal2017-01-217-44/+122
|\ | | | | | | UI Also fixing some platform API changes in PinItemRequestCompat" into ub-launcher3-master
| * Using WidgetCell in the Pin Item confirmation prompt for a consistent UISunny Goyal2017-01-207-44/+122
| | | | | | | | | | | | | | Also fixing some platform API changes in PinItemRequestCompat Bug: 33584624 Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
* | Merge "Fix shortcuts alignment in landscape" into ub-launcher3-masterTreeHugger Robot2017-01-201-8/+57
|\ \ | |/ |/|
| * Fix shortcuts alignment in landscapeTony Wickham2017-01-201-8/+57
| | | | | | | | | | | | | | | | | | | | | | | | - Take left inset into account. - If there is no way to orient the shortcuts next to the icon, instead center it in the drag layer and don't draw the arrow. - If possible, place the shortcuts to the left or right of the icon when centered vertically. If for whatever reason that isn't possible, center the shortcuts horizontally as well. Bug: 33421656 Change-Id: I838b30ea487e0f7c64637db1cb8991ca3ee16bf9
* | Merge "Adding support for new APIs in O related to configurable shortcuts" ↵Sunny Goyal2017-01-2012-57/+296
|\ \ | |/ |/| | | into ub-launcher3-master
| * Adding support for new APIs in O related to configurable shortcutsSunny Goyal2017-01-1912-57/+296
| | | | | | | | | | | | | | | | > Config activities can now return PinItemRequest which can be used to pin deep shortcuts Bug: 33584624 Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
* | Updating widget preview generation to not embed any badge.Sunny Goyal2017-01-196-68/+102
|/ | | | | | | | | Instead drawing badge in the view directly. This will allow us to reuse the same preview when we do not want to draw badges. This also simplified badging of shortcut config activities. Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-189-28/+359
| | | | | | | on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
* Merge "Moving icon generation out of ShortcutInfo constructor so that it can ↵Sunny Goyal2017-01-188-85/+92
|\ | | | | | | be created on the UI thread" into ub-launcher3-master
| * Moving icon generation out of ShortcutInfo constructor so that itSunny Goyal2017-01-188-85/+92
| | | | | | | | | | | | can be created on the UI thread Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed
* | Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ↵Tony Wickham2017-01-188-7/+219
|\ \ | |/ |/| | | ub-launcher3-master
| * FastBitmapDrawable can draw an icon badge (notification count)Tony Wickham2017-01-138-7/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Merge "Only marking items not already restored as restore" into ↵Sunny Goyal2017-01-142-43/+38
|\ \ | | | | | | | | | ub-launcher3-master
| * | Only marking items not already restored as restoreSunny Goyal2017-01-132-43/+38
| | | | | | | | | | | | | | | | | | | | | > Moving the restore property to LoaderCursor Bug: 34123089 Change-Id: I1f992ef086d65e0b3cf18d3b2cf37a4f254c97d2
* | | Merge "Fixing AppWidgetsRestoredReceiver updating model on UI thread" into ↵Sunny Goyal2017-01-131-5/+15
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Fixing AppWidgetsRestoredReceiver updating model on UI threadSunny Goyal2017-01-111-5/+15
| | | | | | | | | | | | | | | | | | | | Bug: 34203314 Change-Id: If2c149f353109350e45e581a654956bec78bce96
* | | | Merge "Loading proper app icon if the associated activity is null" into ↵Sunny Goyal2017-01-131-9/+21
|\ \ \ \ | |_|/ / |/| | | | | | | ub-launcher3-master
| * | | Loading proper app icon if the associated activity is nullSunny Goyal2017-01-111-9/+21
| |/ / | | | | | | | | | | | | Bug: 34123342 Change-Id: Ibb80c6e442beea34c612fb4ce5246260714820e2
* | | Merge "Removing promiseIntent property from ShortuctInfo" into ↵Sunny Goyal2017-01-137-56/+47
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Removing promiseIntent property from ShortuctInfoSunny Goyal2017-01-127-56/+47
| |/ / | | | | | | | | | | | | | | | | | | | | | > Instead of checking promiseIntent != null, using isPromise() for consistency > Fixing bug where clicking a pending icon does not launch anything > Fixing bug where draging an icon on Info target, permanently hides the icon Change-Id: Ic8f6b56042dba42d5ed9aedb0f5947186e1a4208
* | | Merge "Use MaskableIconDrawable only in dogfood builds" into ub-launcher3-masterHyunyoung Song2017-01-131-0/+18
|\ \ \ | |/ / |/| |
| * | Use MaskableIconDrawable only in dogfood buildsHyunyoung Song2017-01-121-0/+18
| | | | | | | | | | | | | | | Bug: 32063838 Change-Id: Id0d15c4fff54b9429dbe5f9ee7ef26fd9cf8703d
* | | No more LauncherActivityInfoCompatSunny Goyal2017-01-1114-171/+66
| | | | | | | | | | | | | | | Bug: 32745285 Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
* | | Removing static Context access using LauncherAppStateSunny Goyal2017-01-1130-100/+97
| | | | | | | | | | | | | | | | | | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* | | Merge "Reset initial animation values before completing reorder animation." ↵Jonathan Miranda2017-01-111-0/+1
|\ \ \ | | | | | | | | | | | | into ub-launcher3-master
| * | | Reset initial animation values before completing reorder animation.Jon Miranda2017-01-041-0/+1
| |/ / | | | | | | | | | | | | | | | In some reorder cases, the icons would stop in a transient position. Change-Id: I9d358e74ab403989929dee87542d3dde78c2f229
* | / Enforcing background thread when accessing iconCacheDb.Sunny Goyal2017-01-107-29/+50
| |/ |/| | | | | | | | | | | | | > Moving any icon cache access to background thread > Updating Apps list to avoid loading icons for ignored apps Bug: 21325319 Change-Id: Id72755100f1176ccfcc99249c5e02873cc249a13
* | Merge "Creating AllAppsBackgroundDrawable using DrawableFactory to allow ↵Sunny Goyal2017-01-113-50/+70
|\ \ | | | | | | | | | easier overriding using derivative projects" into ub-launcher3-master
| * | Creating AllAppsBackgroundDrawable using DrawableFactory to allowSunny Goyal2017-01-083-50/+70
| | | | | | | | | | | | | | | | | | easier overriding using derivative projects Change-Id: I7265d888876ea0928391f76ec1bcb7d928c0f27a
* | | Merge "Refactoring some loadWorkspace logic in a separate class" into ↵Sunny Goyal2017-01-109-581/+618
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Refactoring some loadWorkspace logic in a separate classSunny Goyal2017-01-109-581/+618
| | | | | | | | | | | | | | | | | | | | Bug: 34112546 Change-Id: I8a43ed1646056aa1957ac3d6ea82018691df6386
* | | | Fixing AppInfo missing intent when loading iconSunny Goyal2017-01-101-0/+3
| | | | | | | | | | | | | | | | | | | | Bug: 34199268 Change-Id: I7223d1d408e7b48f9c63c9801c2805aaf7363038
* | | | Merge "This enables to slide up All Apps from anywhere in the workspace, not ↵Mario Bertschler2017-01-092-34/+47
|\ \ \ \ | | | | | | | | | | | | | | | only over the hotseat." into ub-launcher3-master
| * | | | This enables to slide up All Apps from anywhere in the workspace,Mario Bertschler2017-01-092-34/+47
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not only over the hotseat. The tricky part handling with scrollable widgets is solved by setting requestDisallowInterceptTouchEvent from within the widget view host (and resetting it upon performing long click). Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
* | | | Adding some logging around launcher restoreSunny Goyal2017-01-095-1/+19
| |/ / |/| | | | | | | | | | | | | | | | | | | | > Also enabling fileLog when the device is debug build (even when launcher is not dogfood build) Bug: 30735662 Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
* | | Merge "Fixed mw bug where resize frame is off when resizing." into ↵Jonathan Miranda2017-01-091-10/+44
|\ \ \ | |/ / |/| | | | | ub-launcher3-master
| * | Fixed mw bug where resize frame is off when resizing.Jon Miranda2016-12-291-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Removing logic around replacing icon during restore" into ↵Sunny Goyal2017-01-064-192/+2
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Removing logic around replacing icon during restoreSunny Goyal2017-01-054-192/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Updating PendingAppWidgetHostView to load icon on the background threadSunny Goyal2017-01-054-43/+34
|/ / / | | | | | | | | | | | | Bug: 21325319 Change-Id: I0886eec5a3f36f5e1ac18020c54891a56bdb5ed2
* | | Merge "Enables direct scrolling on the fastscroll bar." into ub-launcher3-masterMario Bertschler2017-01-051-21/+44
|\ \ \ | |_|/ |/| |
| * | Enables direct scrolling on the fastscroll bar.Mario Bertschler2017-01-031-21/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Fixing onPageBeginTransition not being called when scrolling overlay" ↵Sunny Goyal2017-01-042-5/+4
|\ \ \ | | | | | | | | | | | | into ub-launcher3-master
| * | | Fixing onPageBeginTransition not being called when scrolling overlaySunny Goyal2017-01-042-5/+4
| | |/ | |/| | | | | | | | | | Bug: 33693546 Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8
* | | Merge "Simplifying IconCache access code" into ub-launcher3-masterSunny Goyal2017-01-0416-274/+159
|\ \ \
| * | | Simplifying IconCache access codeSunny Goyal2017-01-0316-274/+159
| |/ / | | | | | | | | | | | | | | | | | | | | | 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
* / / Bind the out IntRange using its start and end values.Jon Miranda2017-01-031-2/+2
|/ / | | | | | | | | | | | | | | | | 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