Commit Graph

15710 Commits

Author SHA1 Message Date
Tony Wickham 864ae5a2b3 Merge "Add drag indicator to hotseat" into ub-launcher3-master 2018-03-26 18:11:49 +00:00
TreeHugger Robot f757f9cb17 Merge "Use the correct haptics when changing pages" into ub-launcher3-master 2018-03-26 17:43:16 +00:00
TreeHugger Robot da2e584a90 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-03-24 01:40:02 +00:00
Bill Yi 0a92d818d6 Import translations. DO NOT MERGE
Change-Id: Id846f816db89d0e1920f0b08e24f0c1f69d65210
Auto-generated-cl: translation import
2018-03-23 18:30:15 -07:00
Tony Wickham 7c3dd1f14e Add drag indicator to hotseat
Change-Id: Iad5b08ad290f07c6cdd3c9091e160b5af859859e
2018-03-23 17:34:04 -07:00
Tony Wickham a8c647ffa2 Merge "Fix back button not showing in all floating views" into ub-launcher3-master 2018-03-23 23:49:46 +00:00
Tony Wickham b65040ac7b Fix back button not showing in all floating views
We only show the back button when adding the floating view to the
drag layer if it is already "open". A couple of floating items
(folder and options popup) added first then set mIsOpen, causing
the back button to not appear. (We have to check that it is open,
and not just on the drag layer, because we want to get rid of the
back button when changing to some states such as spring-loaded. If
we only checked if the view was present, it wouldn't hide if one of
the floating views such as folder or shortcuts was animated closed.)

Bug: 76169527
Change-Id: I0dff6d2e3424eab72d47dccc42cc703a0fb0141b
2018-03-23 16:22:06 -07:00
Matthew Ng 4ca349c1a2 Use the correct haptics when changing pages
Uses virtual key instead of keyboard tap.

Test: scrub between pages
Bug: 70180755
Change-Id: I72bde319610dd4acf59e5f4eb9f462c106b9a911
2018-03-23 15:35:57 -07:00
Jonathan Miranda 6b34edcc0f Merge "Fix logic to get icon from any view that is a child of DeepShortcutView." into ub-launcher3-master 2018-03-23 21:15:57 +00:00
Tony Wickham d263421c1b Merge "Remove quick switch and improve quick scrub" into ub-launcher3-master 2018-03-23 18:38:56 +00:00
Jon Miranda a589814dba Show instruction toast when user taps on drag handle.
Bug: 74369785
Change-Id: I7017266efcb0db70a8d151eed10442292cb61e70
2018-03-22 16:32:33 -07:00
Tony e9054e3207 Remove quick switch and improve quick scrub
- Hide hotseat and center recents vertically during quick scrub
  - Don't animate the state change if launcher wasn't already visible, but still
    wait until the window animation completes before scrubbing past the next app
- Change interpolator of window as it scales offscreen during quick scrub, so that
  it gets out of the way faster and you can see the motion of the next app taking
  its place
- Remove haptic when snapping to task when quick scrub starts (there's already a
  haptic from the home button)

Bug: 70180755
Change-Id: I83f25bc8b791da0676c13fd62698e1f486dc016f
2018-03-22 15:50:19 -07:00
TreeHugger Robot f6a8f955ed Merge "Using dimension instead of relyong on relativeLayout for view positions" into ub-launcher3-master 2018-03-22 21:58:03 +00:00
Sunny Goyal 9623ed1894 Using dimension instead of relyong on relativeLayout for view positions
Search box can be hidden as a result of various state flags. But the dependent
views should still retain their positions

Change-Id: I820ac11d120f9c78a457e64f3f21d9e8ff3f6110
2018-03-22 14:42:00 -07:00
TreeHugger Robot bd590a4cd6 Merge "Focusing on the second task on Alt+Tab" into ub-launcher3-master 2018-03-22 21:02:35 +00:00
Vadim Tryshev 7f55336505 Focusing on the second task on Alt+Tab
Reusing the quick scrub codepath. I’m postponing the cleanup with
removing duplicated code and isolating the reused code so that it’s
separated from touch events.

I’m accumulating the cleanup notes in a doc, and will create a Q bug
from them at the end.

This CL leaves mOverviewCommandHelper.onOverviewShown/Hidden() unused,
but we may use them later when implementing the case when System UI
invokes the callback with different params.

Note that the noew code works even when Alt+Tab is pressed while the
Overview is already open.

Bug: 73090995
Test: Alt+Tab. Alt+Tab while Overview is open.
Change-Id: Iba05c5628959b3640ddd643dead0fba3ae4714c1
2018-03-22 13:40:46 -07:00
Sunny Goyal 52587f708f Merge "Disabling default focus from icons as we use an animated focus indicator" into ub-launcher3-master 2018-03-22 20:34:39 +00:00
TreeHugger Robot d3b4dfa7e3 Merge "Fixing drag and drop states" into ub-launcher3-master 2018-03-22 20:08:52 +00:00
Sunny Goyal da3cc7a939 Fixing drag and drop states
> Not sending acceptDrop if we are not dragging
> Removing workspace scrim in all-apps

Bug: 74775232
Change-Id: I5b5354ec249d684ffccd4aacd3c47377cc0eb661
2018-03-22 12:50:12 -07:00
Tony Wickham a6db64f426 Exit from quick scrub if unable to launch task onQuickScrubEnd
Bug: 76152304
Change-Id: I142b1a894d4f1e2dcf18631e0599482ff4845995
2018-03-22 12:20:22 -07:00
Sunny Goyal c9d3d06773 Disabling default focus from icons as we use an animated focus indicator
Change-Id: I9d3f1b5f5710ff8931f02f1a3a41e4986b4e0f9c
2018-03-22 12:18:35 -07:00
Sunny Goyal edc6fb4061 Clearing the touch state on ACTON_UP/ACTIUON_CANCEL
The touch listener may not get ACTION_DOWN if it came through an intercept,
in which case it will continue to use the previous state. Clearing the state
ensures that the next touch is not affected.

Bug: 76152745
Change-Id: I18cfbac67aa373e935822003e746af9def6d9122
2018-03-22 10:47:45 -07:00
Sunny Goyal 25a5472947 Resetting UI at the end of every app transtion (instead of using a global reset)
Bug: 76145902
Change-Id: Ia7851026b5e33a67434787bd10441fe714bfc64b
2018-03-22 09:31:43 -07:00
TreeHugger Robot fa03e181cf Merge "Support multiple Views of extra hotseat content" into ub-launcher3-master 2018-03-22 02:52:42 +00:00
Winson Chung 84aa5ef1dc Merge "Disable the two-swipe when quickstep is disabled." into ub-launcher3-master 2018-03-22 01:24:15 +00:00
TreeHugger Robot 9b73c86d32 Merge "Fixing crash when changing state while all-apps is not complete bound" into ub-launcher3-master 2018-03-22 01:20:28 +00:00
TreeHugger Robot c8fd022bbe Merge "Swipe interaction changes on home screen" into ub-launcher3-master 2018-03-22 01:15:51 +00:00
Sunny Goyal 033e614127 Fixing crash when changing state while all-apps is not complete bound
Change-Id: I564501244cb1478195e5d226da295c13269ff524
2018-03-21 18:05:15 -07:00
Sunny Goyal 7a80b59e97 Swipe interaction changes on home screen
> Increasing the distance to travel for the first swipe
> Adding support for custom interpolators when building an animation
> When quickly swiping twice from home, finished the first animation

Change-Id: Ibc3c8667e9b927376fd99f08f0ca027f2398914b
2018-03-21 17:55:35 -07:00
Winson Chung edb0d6b429 Disable the two-swipe when quickstep is disabled.
Change-Id: I5eee57def216406fd8f7766ba4b87cd5de98f0a4
2018-03-21 17:50:29 -07:00
Tony Wickham e2b9a2a074 Merge "Slightly scale down adjacent recent pages" into ub-launcher3-master 2018-03-22 00:37:02 +00:00
Tony Wickham 5eb4a1e90d Slightly scale down adjacent recent pages
Bug: 70179222
Change-Id: Iad0c6f87af633dab4d5c7b67da73bd8027c37c5d
2018-03-21 17:20:09 -07:00
Tony Wickham a97f0f20cd Support multiple Views of extra hotseat content
Also adjust workspace page indicator:
- Center vertically
- Rounded corners

Change-Id: I96c2f3da3522d70726f544126b516c33c8fb7bc8
2018-03-21 15:53:11 -07:00
Vadim Tryshev 9869f75825 Handling arrow keys in Overview
Bug: 73090995
Test: Tab, Shift-Tab, left, right: when overview is opened via Alt+Tab
or via touch.

Change-Id: Ifb05027da2f6b9c2a9a2320cec7015e5cc82d633
2018-03-21 15:48:50 -07:00
Tony Wickham 81bd3f57cf Merge "Separate some elements to set visibility separately" into ub-launcher3-master 2018-03-21 20:04:31 +00:00
TreeHugger Robot 40b8059751 Merge "Solving losing [Alt+]Tab events" into ub-launcher3-master 2018-03-21 19:55:07 +00:00
Tony Wickham bd6f05e0b6 Separate some elements to set visibility separately
Added entries for:
- All apps header extra content
- Hotseat extra content

Change-Id: I47c4ccfe3b54fd47cbbee88698ed045611e3e92d
2018-03-21 12:15:48 -07:00
TreeHugger Robot 2fc7f319fc Merge "Adding support for single tap & double tap on the recents button" into ub-launcher3-master 2018-03-21 16:50:38 +00:00
Sunny Goyal 4f37b93e9b Adding support for single tap & double tap on the recents button
Bug: 75979063
Change-Id: I4dd0595cf94edf77dbedad56f047d86aaf227dac
2018-03-21 09:42:16 -07:00
Tony Wickham c1b6157398 Merge "Hide back button in drag-n-drop and quick scrub" into ub-launcher3-master 2018-03-20 23:06:11 +00:00
TreeHugger Robot 1fd6dbeb4e Merge "Not opening current task for closed Recents" into ub-launcher3-master 2018-03-20 21:32:36 +00:00
Tony Wickham 76cf236596 Hide back button in drag-n-drop and quick scrub
Add a state flag to hide the back button, used by NORMAL, SPRING_LOADED,
and FAST_OVERVIEW states.

Bug: 74390697
Change-Id: Ifdb2aa41691db4594ea597fc5b5839967711b43d
2018-03-20 14:18:34 -07:00
TreeHugger Robot ada91b94ab Merge "Close floating views when entering quick scrub" into ub-launcher3-master 2018-03-20 20:27:44 +00:00
TreeHugger Robot 9bbb000271 Merge "Using new APIs for disabling metaData table" into ub-launcher3-master 2018-03-20 20:11:13 +00:00
Tony 456c6e7cf0 Close floating views when entering quick scrub
Bug: 74904924
Change-Id: I8f5aa923778cb6a36f85562d066f7c6eb8066089
2018-03-20 11:26:24 -07:00
Jorim Jaggi bb2a605449 Merge "Fix wrong position in first frame" into ub-launcher3-master 2018-03-20 17:47:52 +00:00
Jorim Jaggi f24c0757e1 Fix wrong position in first frame
mFloatingView wasn't laid out yet when processing the first
animation frame. Force the initial values to make sure we don't
submit a wrong position for the surface.

Test: Open app, take surface trace
Bug: 74220420
Change-Id: Ie0a827969b980eeffa1860e307586d0e648b4834
2018-03-20 18:28:20 +01:00
Sunny Goyal 2e38cf4825 Merge "Changing the overviewState to show appsearch and floating header" into ub-launcher3-master 2018-03-20 17:01:49 +00:00
TreeHugger Robot 6742b3a5e4 Merge "Fix proguard flag" into ub-launcher3-master 2018-03-20 03:59:22 +00:00
Adam Cohen c9a2fac84a Fix proguard flag
-> widget resize frame animations are broken

Change-Id: I138b29d7d99f80462985f9e2445048b3ab690e18
2018-03-19 20:51:26 -07:00