summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/shortcuts
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Moving the shortcut application logic to the DeepShortcutView. This ↵Sunny Goyal2016-08-152-36/+41
|\ | | | | | | makes the logic for accessing various properties consistant and and ties it to the UI of the DeepShortcutView." into ub-launcher3-calgary-polish
| * Moving the shortcut application logic to the DeepShortcutView.Sunny Goyal2016-08-122-36/+41
| | | | | | | | | | | | | | | | This makes the logic for accessing various properties consistant and and ties it to the UI of the DeepShortcutView. Bug: 30817556 Change-Id: I09536b9f91b2a9969fcc286f83dd2b17e16cd9ce
* | Log shortcuts open on ACTION_UP instead of in showForIcon().Tony Wickham2016-08-121-26/+1
|\ \ | |/ |/| | | | | | | am: be06874c81 Change-Id: Iefc3b03644c2c197f0b744bb9f42fd3058624377
| * Log shortcuts open on ACTION_UP instead of in showForIcon().Tony Wickham2016-08-101-26/+1
| | | | | | | | | | | | | | | | | | | | | | - We only want to log when the container is opened and potentially used, not when a long press is followed by a drag-and-drop. - Also cleaned up code that was determining the container of the app icon, since LaunchSourceProvider.fillInLaunchSourceData() can do that instead (it's more robust and consistent). Bug: 30791570 Change-Id: I05b6750f26182fda8a9940ac66f1371c2d228ca9
* | Reloading workspace when the shortcuts permission changesSunny Goyal2016-08-111-0/+12
|\ \ | | | | | | | | | | | | | | | am: 95f3d6ba2c Change-Id: I90ca9f1380eee4c3e26f929614a1c77b2520b378
| * | Reloading workspace when the shortcuts permission changesSunny Goyal2016-08-101-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | > Check for permission on every onResume > If the permission is different than last known permission, reload and rebind workspace. Bug: 30789422 Change-Id: Idfa445815e29e2336505779545507d106b33a253
* | | Change drag from shortcuts to say "Cancel" instead of "Remove"Tony Wickham2016-08-091-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | am: df64e9ee06 Change-Id: I27b16b2f526034b50012b65d032098b75f86a754
| * | Change drag from shortcuts to say "Cancel" instead of "Remove"Tony Wickham2016-08-091-1/+1
| |/ | | | | | | | | Bug: 30757836 Change-Id: I7d2d97898bd1feac3cd7ba15614c29a1e1b33841
* / Make padding consistent between shortcuts and the app icon.Tony Wickham2016-08-051-13/+17
|/ | | | | | | | | | | | | This change makes the padding consistent regardless of where the app is (e.g. folder vs workspace vs all apps) by ignoring the app's padding and adding our own to the shortcuts container. Also note that this padding is relative to the icon, excluding the text beneath it. So we also hide the text when the container opens downwards, and re-show it when the container closes. Bug: 30604007 Change-Id: I6e51c4983a8b5d495833f86e483ebaa229ed2099
* Use shortcut disabled message if available.Tony Wickham2016-08-051-0/+4
| | | | | Bug: 30681210 Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466
* Merge "Start shortcuts close animation where open left off." into ↵Tony Wickham2016-08-032-21/+76
|\ | | | | | | ub-launcher3-calgary
| * Start shortcuts close animation where open left off.Tony Wickham2016-08-022-22/+76
| | | | | | | | | | | | | | | | | | | | | | - Before we always started the close animation at 0 instead of the previous open progress, which looked janky. - Shortened the animations' durations and start delays to account for the fact that the open animation was only partially finished when the close animation started. Bug: 30465231 Change-Id: I958ee5f4543dbf1185f3d0229c55fc1b51929655
* | Updating content description for the shortcuts menu and announcingSunny Goyal2016-08-021-0/+5
| | | | | | | | | | | | | | it when the container is opened Bug: 30587453 Change-Id: I6f2d3ba05593f3e2a1a8f05c66a0f80e76932c38
* | Merge "Always cancel forwarding on ACTION_UP or ACTION_CANCEL." into ↵Tony Wickham2016-08-021-6/+5
|\ \ | | | | | | | | | ub-launcher3-calgary
| * | Always cancel forwarding on ACTION_UP or ACTION_CANCEL.Tony Wickham2016-08-011-6/+5
| |/ | | | | | | | | Bug: 30563284 Change-Id: I6285eda6d9f7a775f8ae896baebc420a0cf84e21
* | Merge "Handling IllegalStateException which can be thrown by the system when ↵Sunny Goyal2016-08-021-5/+5
|\ \ | | | | | | | | | the user is locked" into ub-launcher3-calgary
| * | Handling IllegalStateException which can be thrown by the system when the ↵Sunny Goyal2016-08-011-5/+5
| | | | | | | | | | | | | | | | | | | | | user is locked Bug: 30411561 Change-Id: I0d7fc0aaecba01b1aaac95b98654f6e3ee090ce8
* | | Merge "Add logging for shortcuts opening." into ub-launcher3-calgaryTony Wickham2016-08-021-1/+26
|\ \ \ | |/ / |/| |
| * | Add logging for shortcuts opening.Tony Wickham2016-08-011-1/+26
| |/ | | | | | | | | | | | | | | | | - Log as long press with child type DEEPSHORTCUTS container - Parent type can be one of WORKSPACE, HOTSEAT, FOLDER, ALLAPPS, PREDICTION, or SEARCHRESULT. Bug: 30537079 Change-Id: Ie62e4889ee06c845f959ca998781787a7fdaf00e
* | Merge "Adding quiet mode support for shortcuts" into ub-launcher3-calgarySunny Goyal2016-08-012-4/+18
|\ \ | |/ |/|
| * Adding quiet mode support for shortcutsSunny Goyal2016-07-292-4/+18
| | | | | | | | | | | | | | | | | | | | | | > 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
* | Merge "Set shortcuts arrow pivot to side connected to container." into ↵Tony Wickham2016-07-301-0/+2
|\ \ | | | | | | | | | ub-launcher3-calgary
| * | Set shortcuts arrow pivot to side connected to container.Tony Wickham2016-07-291-0/+2
| |/ | | | | | | | | Bug: 30508528 Change-Id: Iddc733d79b680010785d21b347d151bc23bffc23
* | Merge "Badging shortcuts with app icons" into ub-launcher3-calgarySunny Goyal2016-07-292-2/+10
|\ \
| * | Badging shortcuts with app iconsSunny Goyal2016-07-292-2/+10
| | | | | | | | | | | | Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1
* | | Filter shortcuts down to 4 if there are more.Tony Wickham2016-07-292-29/+101
| |/ |/| | | | | | | | | | | | | | | | | | | | | - We take the first 4 in sorted order, except we remove up to 2 static shortcuts to make room for dynamic ones if they exist. - Added ShortcutFilterTest with testSortAndFilterShortcuts(). This asserts that the filtered list is sorted and has the expected number of static and dynamic shortcuts based on inputs with various amounts of each. Bug: 28980830 Change-Id: I832b6b21144f17c74bb8b90a840d6620e99911b8
* | Merge "Prevent opening shortcuts container if one is already open." into ↵Tony Wickham2016-07-291-0/+5
|\ \ | | | | | | | | | ub-launcher3-calgary
| * | Prevent opening shortcuts container if one is already open.Tony Wickham2016-07-271-0/+5
| | | | | | | | | | | | | | | Bug: 30245433 Change-Id: Id50f9e4b9ff40e1d1124caee537a07a594d6a790
* | | Only add shortcuts to the deep shortcut map if they are dynamic/manifest.Tony Wickham2016-07-281-1/+4
| | | | | | | | | | | | | | | Bug: 30475465 Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b
* | | Merge "Showing the shortcuts in the disabled state and removing ti from the ↵Sunny Goyal2016-07-281-0/+4
|\ \ \ | | | | | | | | | | | | menu when its disabled" into ub-launcher3-calgary
| * | | Showing the shortcuts in the disabled state and removing ti from the menuSunny Goyal2016-07-281-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | when its disabled Bug: 30315906 Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
* / | Stop setting original icon visible when dragging app with shortcuts.Tony Wickham2016-07-281-1/+3
|/ / | | | | | | | | | | | | | | | | - This was leaving a "ghost" icon behind, which looked really weird. - We still need to make it visible for All Apps, or else you can get in a state where the icon is gone from all apps indefinitely. Bug: 30465972 Change-Id: I79eacf2dfdb0cd267732ae63ef69a9bb193933a5
* / Launcher shortcuts animations update.Sunny Goyal2016-07-274-86/+383
|/ | | | | | | | | | | > 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
* Merge "Match updated redlines for shortcuts." into ub-launcher3-calgarySunny Goyal2016-07-271-20/+48
|\
| * Match updated redlines for shortcuts.Tony2016-07-261-20/+48
| | | | | | | | | | | | | | | | | | - Align shortcut icons with original icon. - Drag handle is lighter and smaller. - Shortcut pills are slightly wider to accommodate long text. Bug: 28980830 Change-Id: I8e9709e3cbdb9df86a805a4b63a696975c61df5a
* | Merge "Remove DisallowIntercept runnable from ShortcutsContainerListener." ↵Tony Wickham2016-07-271-29/+0
|\ \ | |/ |/| | | into ub-launcher3-calgary
| * Remove DisallowIntercept runnable from ShortcutsContainerListener.Tony Wickham2016-07-261-29/+0
| | | | | | | | | | | | | | | | | | This was copied from ForwardingListener, which was used to prevent scrollable parents from intercepting swipe gestures. We only use long press, so we don't want to do this. Bug: 30230790 Change-Id: Icbb692c1b46ad8287af2942baa452f3578fee679
* | Add arrow view to deep shortcuts container.Tony2016-07-262-15/+79
|/ | | | | | | | | - We create a trangular path, which we use as the view's outline (for the shadow) and as its PathShape background. - We scale up the arrow as the container opens. Bug: 28980830 Change-Id: I71e566552f063dfdb69067bb7e3cee659988f934
* Merge "Remove hover-to-launch gesture for shortcuts." into ub-launcher3-calgaryTony Wickham2016-07-262-123/+11
|\
| * Remove hover-to-launch gesture for shortcuts.Tony Wickham2016-07-262-123/+11
| | | | | | | | | | | | | | | | | | - You can no longer long press and drag over shortcuts before lifting to launch them. - Dragging in any direction past a threshold enters spring-loaded mode. Bug: 28980830 Change-Id: I36bfc379cc983017456a3ef0314faa1ac9691c36
* | Merge "Removing shadow and badging from the icon which is shown in the menu ↵Sunny Goyal2016-07-261-3/+27
|\ \ | |/ |/| | | These are added as soon as the icon is added to the workspace" into ub-launcher3-calgary
| * Removing shadow and badging from the icon which is shown in the menuSunny Goyal2016-07-261-3/+27
| | | | | | | | | | | | | | These are added as soon as the icon is added to the workspace Bug: 28980830 Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
* | Merge "Fixing regression where the source icon becomes visible while ↵Sunny Goyal2016-07-261-5/+11
|\ \ | |/ |/| | | dragging" into ub-launcher3-calgary
| * Fixing regression where the source icon becomes visible while draggingSunny Goyal2016-07-251-5/+11
| | | | | | | | | | Bug: 30291280 Change-Id: I5687e00371315a318e8ff93dd3de4c5f437a6971
* | Added custom actions for showing the shortcuts menu and adding a quick actionSunny Goyal2016-07-252-32/+41
|/ | | | | | | on the home screen Bug: 30374655 Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
* Fixing missed events during motion interactionSunny Goyal2016-07-252-5/+14
| | | | | | | | > Only ignoring touch events during the start of the motion events > Handling action_cancel Bug: 30291280 Change-Id: I4aa791b30c65ebaff90bb2f232d77de62ab6a033
* Merge "Increasing the size of the drag icon when a shortcut is dragged" into ↵Sunny Goyal2016-07-221-5/+5
|\ | | | | | | ub-launcher3-calgary
| * Increasing the size of the drag icon when a shortcut is draggedSunny Goyal2016-07-211-5/+5
| | | | | | | | Change-Id: I7d768657300d3229e05d1eb18aec3720a9098ffc
* | Fix deep shortcuts RTL issues.Tony Wickham2016-07-212-26/+38
|/ | | | | | | | | - Container was shifted off screen. - Touch down x coordinate was incorrect, causing the deferred drag to start immediately upon moving the original icon. Bug: 30075428 Change-Id: I148b6f4f7945ecbcf67b52ba26a2af0065d8f538
* Add user event log for deep shortcuts and all apps opening interaction.Hyunyoung Song2016-07-211-5/+3
| | | | | | b/30114798 Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823