summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Set shortcuts arrow pivot to side connected to container.Tony Wickham2016-07-301-0/+2
|\ | | | | | | | | | | am: 4d5887bd8c Change-Id: I677309debc91c5a7af3dece0e076cc9182c1c7d4
| * Set shortcuts arrow pivot to side connected to container.Tony Wickham2016-07-291-0/+2
| | | | | | | | | | Bug: 30508528 Change-Id: Iddc733d79b680010785d21b347d151bc23bffc23
* | Badging shortcuts with app iconsSunny Goyal2016-07-305-26/+143
|\ \ | | | | | | | | | | | | | | | am: 79cf718fcd Change-Id: I970ef85a1b6296d7f6d1387d5d7e283ef3ab6639
| * | Badging shortcuts with app iconsSunny Goyal2016-07-295-27/+143
| | | | | | | | | | | | 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 "Cancel exit spring loaded runnable when launcher state is set to APPS ↵Hyunyoung Song2016-07-291-2/+18
|\ \ | | | | | | | | | or WIDGETS b/29645452" into ub-launcher3-calgary
| * | Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETSHyunyoung Song2016-07-291-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/29645452 By cancelling the runnable, we are enabling transition: state1 -> state3 instead of state1-> state2-> state3. Transition state1->state3 is a viable transition that is supported by our model. Launcher Workspace -------------------------------------------- state1 APPS_SPRING_LOADED SPRING_LOADED state2 WORKSPACE NORMAL state3 APPS NORMAL_HIDDEN Change-Id: If27905567efe439324494e0091a4b42fcbf01448
* | | Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgaryWinson Chung2016-07-293-44/+82
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Working around incorrect wallpaper offsets being calculated in RTL. Fixing RTL wallpaper scrolling.
| * | | Working around incorrect wallpaper offsets being calculated in RTL.Winson2016-07-283-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| * | | Fixing RTL wallpaper scrolling.Winson2016-07-281-42/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Ensure that we map the scroll offsets to the full wallpaper offset range - Default to either edge of the wallpaper (depending on RTL) to match the default system wallpaper behavior (ag/1265418) Bug: 28795125 Bug: 29398681 Change-Id: I36c316095057912d2dda0beb43bd1e6aaeac3fdc
* | | | 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
* | | | | Update fast scroll shadow to match other shadowsPeter Schiller2016-07-281-3/+3
| |_|/ / |/| | | | | | | | | | | Change-Id: Ia19f64b8c3b5a09a11909f2792e3c0956a0dc1cd
* | | | Merge "Responsive caret drawable" into ub-launcher3-calgaryPeter Schiller2016-07-284-36/+93
|\ \ \ \
| * | | | Responsive caret drawableHyunyoung Song2016-07-284-36/+93
| | | | | | | | | | | | | | | | | | | | Change-Id: I9d40052d001c80d99db511af6134227f8e4e4239
* | | | | Only add shortcuts to the deep shortcut map if they are dynamic/manifest.Tony Wickham2016-07-282-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 30475465 Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b
* | | | | Merge "Showing the shortcuts in the disabled state and removing ti from the ↵Sunny Goyal2016-07-284-7/+26
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | menu when its disabled" into ub-launcher3-calgary
| * | | | | Showing the shortcuts in the disabled state and removing ti from the menuSunny Goyal2016-07-284-7/+26
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when its disabled Bug: 30315906 Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
* | | | | Merge "Fading in the first screen, when launcher loads for the first time" ↵Sunny Goyal2016-07-283-22/+89
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into ub-launcher3-calgary
| * | | | | Fading in the first screen, when launcher loads for the first timeSunny Goyal2016-07-283-22/+89
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Bug: 29007436 Bug: 27705838 Change-Id: I95891d0bad19a67985b689bb96d6068dcd85004a
* | | | | 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
* | | | Merge "Check package name and user handle in onShortcutsChanged()." into ↵Tony Wickham2016-07-282-4/+5
|\ \ \ \ | |/ / / |/| | | | | | | ub-launcher3-calgary
| * | | Check package name and user handle in onShortcutsChanged().Tony Wickham2016-07-282-4/+5
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Otherwise shortcuts with the same id would be updated, even if they were in different packages. Bug: 28980830 Change-Id: Ideefe3aaac83af38c03a38d821bac192ae55fe67
* / | Launcher shortcuts animations update.Sunny Goyal2016-07-2711-163/+443
|/ / | | | | | | | | | | | | | | | | | | | | > 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 "Cleanup deferred drag when closing deep shortcuts container." into ↵Tony Wickham2016-07-281-0/+1
|\ \ | | | | | | | | | ub-launcher3-calgary
| * | Cleanup deferred drag when closing deep shortcuts container.Tony Wickham2016-07-271-0/+1
| |/ | | | | | | | | | | | | | | | | | | This fixes those states where a drag view dangles on the screen forever until launcher restarts. For instance, long press Settings and press home before letting go. Bug: 30291280 Change-Id: Ib8c403a02a17f35ba170c21f78f41bdc3b48d096
* | Merge "Fade QSB with the workspace as the overlay enters" into ↵Sunny Goyal2016-07-281-1/+5
|\ \ | | | | | | | | | ub-launcher3-calgary
| * | Fade QSB with the workspace as the overlay entersAdam Cohen2016-07-271-1/+5
| | | | | | | | | | | | Change-Id: Iadab9d9f051a85f6772a5d54d38534fcf1b029d7
* | | Merge "Remove two redundant layout pass in AllAppsTransitionController." ↵Hyunyoung Song2016-07-283-18/+16
|\ \ \ | | | | | | | | | | | | into ub-launcher3-calgary
| * | | Remove two redundant layout pass in AllAppsTransitionController.Hyunyoung Song2016-07-273-18/+16
| | |/ | |/| | | | | | | Change-Id: I48d043820db962c58e97a09d7888303c1d5bf4ad
* / | Clearing search query after clearing input text.Winson2016-07-271-1/+2
|/ / | | | | | | | | Bug: 30435142 Change-Id: I3f00e1339aba46f4ab3cd092e59a94b506179dcf
* | Change default animation duration for all apps open and close.Hyunyoung Song2016-07-272-5/+19
| | | | | | | | | | | | > Also set different interpolator for all apps opening clicking the caret Change-Id: I7f9b764a8bf8bb7c38d94acbd964e912f22d6941
* | Merge "AllAppsTransitionController always use ↵Hyunyoung Song2016-07-274-36/+22
|\ \ | | | | | | | | | LauncherStateTransitionAnimation b/30375760" into ub-launcher3-calgary
| * | AllAppsTransitionController always use LauncherStateTransitionAnimationHyunyoung Song2016-07-274-36/+22
| | | | | | | | | | | | | | | | | | b/30375760 Change-Id: Iee2f8060e4d272d276ddd5d40b4bc6053e8c7778
* | | 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 "Moved hide keyboard to its own method" into ub-launcher3-calgaryPeter Schiller2016-07-271-0/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | Moved hide keyboard to its own methodPeter Schiller2016-07-261-0/+4
| | | | | | | | | | | | | | | | Change-Id: I3f5877965a2b8f92d48e2fecef54f400b6e455d2
* | | | 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-263-15/+135
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | - 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-267-62/+103
|\ \ \ \ | |/ / / |/| | | | | | | 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-267-62/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These are added as soon as the icon is added to the workspace Bug: 28980830 Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
* | | | Merge "Adding TransformingTouchDelegate to allow transforming touch events ↵Sunny Goyal2016-07-262-5/+97
|\ \ \ \ | |_|/ / |/| | | | | | | before sending to the delegate." into ub-launcher3-calgary
| * | | Adding TransformingTouchDelegate to allow transforming touch events beforeSunny Goyal2016-07-172-5/+97
| | | | | | | | | | | | | | | | | | | | | | | | sending to the delegate. Change-Id: I1dfb727fe433bed05dd5ac3d0f779ede4ec1d292
* | | | 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
* | | | Merge "Ensure that we update the preview layout rule when not animating." ↵Winson Chung2016-07-263-4/+10
|\ \ \ \ | | | | | | | | | | | | | | | into ub-launcher3-calgary