Commit Graph

10334 Commits

Author SHA1 Message Date
Hyunyoung Song 72dc60c576 Merge "Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS b/29645452" into ub-launcher3-calgary 2016-07-29 21:32:48 +00:00
Hyunyoung Song 06ca7568c6 Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS
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
2016-07-29 13:03:54 -07:00
Winson Chung c42087e5c0 Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgary
* changes:
  Working around incorrect wallpaper offsets being calculated in RTL.
  Fixing RTL wallpaper scrolling.
2016-07-29 05:49:20 +00:00
Tony Wickham 6257bc327b Merge "Prevent opening shortcuts container if one is already open." into ub-launcher3-calgary 2016-07-29 01:14:22 +00:00
Peter Schiller 62d7023639 Update fast scroll shadow to match other shadows
Change-Id: Ia19f64b8c3b5a09a11909f2792e3c0956a0dc1cd
2016-07-28 16:58:06 -07:00
Winson c7d2e83c15 Working around incorrect wallpaper offsets being calculated in RTL.
- 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
2016-07-28 16:21:20 -07:00
Winson d96fa13369 Fixing RTL wallpaper scrolling.
- 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
2016-07-28 16:05:47 -07:00
Peter Schiller 7da6d00c2e Merge "Responsive caret drawable" into ub-launcher3-calgary 2016-07-28 21:18:37 +00:00
Hyunyoung Song 7ccc4625e3 Responsive caret drawable
Change-Id: I9d40052d001c80d99db511af6134227f8e4e4239
2016-07-28 13:06:21 -07:00
Tony Wickham ca258b36be Only add shortcuts to the deep shortcut map if they are dynamic/manifest.
Bug: 30475465
Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b
2016-07-28 12:31:28 -07:00
Sunny Goyal 55f5bd730c Merge "Showing the shortcuts in the disabled state and removing ti from the menu when its disabled" into ub-launcher3-calgary 2016-07-28 19:23:29 +00:00
Sunny Goyal 70a7c9b700 Showing the shortcuts in the disabled state and removing ti from the menu
when its disabled

Bug: 30315906
Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
2016-07-28 12:22:51 -07:00
Sunny Goyal e34dd33156 Merge "Fading in the first screen, when launcher loads for the first time" into ub-launcher3-calgary 2016-07-28 19:13:17 +00:00
Tony Wickham c714c0148b Stop setting original icon visible when dragging app with shortcuts.
- 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
2016-07-28 11:35:55 -07:00
Tony Wickham 64035e9ee6 Merge "Check package name and user handle in onShortcutsChanged()." into ub-launcher3-calgary 2016-07-28 17:18:07 +00:00
Tony Wickham 672d07f3f0 Check package name and user handle in onShortcutsChanged().
Otherwise shortcuts with the same id would be updated,
even if they were in different packages.

Bug: 28980830

Change-Id: Ideefe3aaac83af38c03a38d821bac192ae55fe67
2016-07-28 17:17:51 +00:00
Sunny Goyal b5b9ad68b7 Fading in the first screen, when launcher loads for the first time
Bug: 29007436
Bug: 27705838
Change-Id: I95891d0bad19a67985b689bb96d6068dcd85004a
2016-07-28 10:13:30 -07:00
Sunny Goyal a2454ad2d8 Launcher shortcuts animations update.
> 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
2016-07-27 17:37:23 -07:00
Tony Wickham 71538da6e2 Merge "Cleanup deferred drag when closing deep shortcuts container." into ub-launcher3-calgary 2016-07-28 00:29:45 +00:00
Sunny Goyal e117f53f36 Merge "Fade QSB with the workspace as the overlay enters" into ub-launcher3-calgary 2016-07-28 00:23:04 +00:00
Tony Wickham 8141d63ed1 Prevent opening shortcuts container if one is already open.
Bug: 30245433
Change-Id: Id50f9e4b9ff40e1d1124caee537a07a594d6a790
2016-07-27 17:10:01 -07:00
Hyunyoung Song d7380e210e Merge "Remove two redundant layout pass in AllAppsTransitionController." into ub-launcher3-calgary 2016-07-28 00:09:12 +00:00
Hyunyoung Song dd60ce41b3 Remove two redundant layout pass in AllAppsTransitionController.
Change-Id: I48d043820db962c58e97a09d7888303c1d5bf4ad
2016-07-27 17:08:38 -07:00
Adam Cohen 2a82afd6f6 Fade QSB with the workspace as the overlay enters
Change-Id: Iadab9d9f051a85f6772a5d54d38534fcf1b029d7
2016-07-27 17:00:20 -07:00
Tony Wickham b9da46275b Cleanup deferred drag when closing deep shortcuts container.
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
2016-07-27 23:44:53 +00:00
Winson a81f580fb7 Clearing search query after clearing input text.
Bug: 30435142
Change-Id: I3f00e1339aba46f4ab3cd092e59a94b506179dcf
2016-07-27 13:50:05 -07:00
Hyunyoung Song e3876e8dd0 Change default animation duration for all apps open and close.
> Also set different interpolator for all apps opening clicking the caret

Change-Id: I7f9b764a8bf8bb7c38d94acbd964e912f22d6941
2016-07-27 11:54:02 -07:00
Hyunyoung Song 0dc7e91d5c Merge "AllAppsTransitionController always use LauncherStateTransitionAnimation b/30375760" into ub-launcher3-calgary 2016-07-27 18:03:52 +00:00
Hyunyoung Song 9dcf0a3ef7 AllAppsTransitionController always use LauncherStateTransitionAnimation
b/30375760

Change-Id: Iee2f8060e4d272d276ddd5d40b4bc6053e8c7778
2016-07-27 10:55:51 -07:00
Sunny Goyal cdef9dd35d Merge "Match updated redlines for shortcuts." into ub-launcher3-calgary 2016-07-27 03:05:48 +00:00
Peter Schiller 2ee96c86bc Merge "Moved hide keyboard to its own method" into ub-launcher3-calgary 2016-07-27 02:31:46 +00:00
Tony 780c926db5 Match updated redlines for shortcuts.
- 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
2016-07-26 17:54:02 -07:00
Peter Schiller 35d96306ad Moved hide keyboard to its own method
Change-Id: I3f5877965a2b8f92d48e2fecef54f400b6e455d2
2016-07-26 17:34:05 -07:00
Tony Wickham 10717bfcae Merge "Remove DisallowIntercept runnable from ShortcutsContainerListener." into ub-launcher3-calgary 2016-07-27 00:16:56 +00:00
Tony eec1f9a839 Add arrow view to deep shortcuts container.
- 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
2016-07-26 17:10:05 -07:00
Tony Wickham 47c5a49579 Remove DisallowIntercept runnable from ShortcutsContainerListener.
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
2016-07-26 16:54:31 -07:00
Tony Wickham e9381d60cc Merge "Remove hover-to-launch gesture for shortcuts." into ub-launcher3-calgary 2016-07-26 23:11:08 +00:00
Tony Wickham bf0ee9a305 Remove hover-to-launch gesture for shortcuts.
- 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
2016-07-26 15:55:11 -07:00
Sunny Goyal 984c260a98 Merge "Removing shadow and badging from the icon which is shown in the menu These are added as soon as the icon is added to the workspace" into ub-launcher3-calgary 2016-07-26 22:15:09 +00:00
Sunny Goyal 10923b30a2 Removing shadow and badging from the icon which is shown in the menu
These are added as soon as the icon is added to the workspace

Bug: 28980830
Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
2016-07-26 14:18:09 -07:00
Sunny Goyal 8c06310b06 Merge "Adding TransformingTouchDelegate to allow transforming touch events before sending to the delegate." into ub-launcher3-calgary 2016-07-26 17:55:58 +00:00
Sunny Goyal c664f24de2 Merge "Fixing regression where the source icon becomes visible while dragging" into ub-launcher3-calgary 2016-07-26 17:20:25 +00:00
Winson Chung 2f88ef34fb Merge "Ensure that we update the preview layout rule when not animating." into ub-launcher3-calgary 2016-07-26 16:47:50 +00:00
Sunny Goyal 6f155340b9 Merge "Added custom actions for showing the shortcuts menu and adding a quick action on the home screen" into ub-launcher3-calgary 2016-07-26 00:39:51 +00:00
Sunny Goyal 3ffa64df36 Added custom actions for showing the shortcuts menu and adding a quick action
on the home screen

Bug: 30374655
Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
2016-07-25 17:39:34 -07:00
Sunny Goyal 8f8f398941 Adjusting the text shadows
Bug: 30192204
Change-Id: I4a12246521c41146b801f326a3d37e88aa49b727
2016-07-25 17:34:09 -07:00
Winson 8f288aac99 Ensure that we update the preview layout rule when not animating.
Bug: 28166173
Change-Id: Ibf0245f2dd667216ccabb23a1b279b1801d60cac
2016-07-25 17:12:32 -07:00
Sunny Goyal e6fd19b19f Fixing regression where the source icon becomes visible while dragging
Bug: 30291280
Change-Id: I5687e00371315a318e8ff93dd3de4c5f437a6971
2016-07-25 15:22:27 -07:00
Hyunyoung Song 75df256cc1 Merge "Refresh the all apps container search result when apps are installed" into ub-launcher3-calgary 2016-07-25 21:28:23 +00:00
Hyunyoung Song f66b680239 Refresh the all apps container search result when apps are installed
b/30102209

> After user comes back from the play store after installing
the app that didn't exist when searched, the app will now be
shown in the filtered search result list.

Change-Id: Ia5fe501596127a7401928e5db2d6f425ad753701
2016-07-25 14:24:08 -07:00