Commit Graph

15788 Commits

Author SHA1 Message Date
Winson Chung
dbff75e3de Update dock divider during recents animation.
- Move all wrapper calls to the bg thread
- Account for position now that the task leash is in the app animation
  layer

Bug: 73118672
Change-Id: I5b680a688c0ad4ca34c76e22e1d5cee24133f40f
2018-04-03 12:42:09 -07:00
Winson Chung
8ad31511a6 Update api for canceling recents animation.
Bug: 74405472

Change-Id: Idb2fdec88115927a2db94e0216b1bea8386e6f23
2018-04-03 12:25:53 -07:00
Winson Chung
c2b64829a7 Merge "Added two touch slops for easier home press (3/3)" into ub-launcher3-master 2018-04-03 19:22:56 +00:00
TreeHugger Robot
b518981124 Merge "Fix bug where drag handle translation was not set to 0 on device profile change." into ub-launcher3-master 2018-04-03 19:09:42 +00:00
Jon Miranda
2b67bacadc Fix bug where drag handle translation was not set to 0 on device profile change.
Bug: 77523779
Change-Id: Idec97c34999e05adfac7e9931ab9596a8aae67ae
2018-04-03 11:54:49 -07:00
Tony Wickham
1c6f12d119 Swipe down on hotseat to launch recent task
If you're ever in overview and swipe down on the hotseat, it will launch
the focused task *unless* you entered overview from the workspace and
have not scrolled past the first task. This is a hidden state to allow
for reversibility of the swipe up from workspace.

Also moved PendingAnimation from quickstep to launcher3.

Change-Id: Iea077bc0ef7c74f6bf7b98d0a638892b9c5fe36c
2018-04-03 11:20:49 -07:00
Tony Wickham
274b9529ff Support swiping between states
- Swiping down on hotseat from overview goes to workspace
- Can swipe up through overview to get to all apps

Bug: 76449024
Change-Id: I7f76d92da976e268cc2a97e55746cca4603e6620
2018-04-03 11:18:18 -07:00
TreeHugger Robot
86d7b2d81d Merge "Make drawDragView protected so it can be used in subclasses." into ub-launcher3-master 2018-04-03 16:53:17 +00:00
Mario Bertschler
ab88b2243d Make drawDragView protected so it can be used in subclasses.
Bug: 73818519
Bug: 74404893
Change-Id: I75b8cc322bd8d96be83adbfaf2c0244df27019d8
2018-04-03 18:13:38 +02:00
TreeHugger Robot
5e2bcab011 Merge "Do not show overview when deviced has pinned" into ub-launcher3-master 2018-04-03 00:57:46 +00:00
Matthew Ng
cd7690d789 Do not show overview when deviced has pinned
Prevents launching overview when recents button is pressed while pinning
an app. This only occurs if quick step is disabled.

Test: disable quickstep, pin an app and try to go to overview
Change-Id: I0d453c2b6f6ebc7947de670b6cf5d09705f9188e
Fixes: 76702534
2018-04-02 17:13:36 -07:00
Tracy Zhou
0f5b12c3d3 Mask work app snapshots in QuickStep when work profile is locked.
Change-Id: I15b03a98d5f359a3b8ce28893fa183bb6af1d7d1
Fixes: 72807386
Test: manual test
2018-04-02 20:30:58 +00:00
Sunny Goyal
2fd7a8bc59 Updating the UI of the options popup to make it look similar to icon popup
Bug: 77327164
Change-Id: I3580df8bf8a43cb44123f203ffed9a85fa33aea7
2018-04-02 12:28:47 -07:00
Matthew Ng
e1a9c7ed3f Added two touch slops for easier home press (3/3)
The first slop starts the drag either for quick step or scrub. At this
point either launcher can animate swipe up or the home button moves for
scrub, however the home button is still active and can be pressed or
long pressed. The second slop is for activating quick step or scrub.
Similar to before when an operation has activated, the home button
cannot be pressed or long pressed. This allows the home button to have a
larger area to be clicked.

Change-Id: Ie792845a09ecf5d8bdbeae9e8ef7210e2299c69d
Fixes: 76430825
Test: scrub or swipe up
2018-04-02 10:59:00 -07:00
TreeHugger Robot
415a1402d5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-04-01 10:14:21 +00:00
Bill Yi
ea4eceeba7 Import translations. DO NOT MERGE
Change-Id: I9661c8c23d5c3f6390283edb3fba1eab99e5d997
Auto-generated-cl: translation import
2018-04-01 02:13:44 -07:00
Vadim Tryshev
ac2042a40a Accessibility options for a task
The list is:
Close [task]
<items from the task’s popup menu>

Also making a current task in carousel get accessibility focus. This
prevents losing focus after closing a task, and makes sense generally.

Bug: 72409756
Test: Manual
Change-Id: I2cfdfd4693a255f63417d922cb6aa4841db1d3c3
2018-03-30 18:19:03 -07:00
TreeHugger Robot
3a3878979c Merge "Updating fallback activity" into ub-launcher3-master 2018-03-30 23:53:22 +00:00
Winson Chung
953a8eb35c Fix crash when swiping up from task that doesn't appear in the list
Bug: 74567248
Test: Clear all tasks, open assistant and swipe up
Change-Id: Ie5e81ffbc921f76eb6b279f38b5e7aa423fc5af2
2018-03-30 23:05:22 +00:00
TreeHugger Robot
d55869fa4f Merge "Fixing Transition Delay - Hot Launch From Recents on Pixel 1" into ub-launcher3-master 2018-03-30 19:43:59 +00:00
Vadim Tryshev
2c09d2f972 Fixing Transition Delay - Hot Launch From Recents on Pixel 1
Generating fake to-recents event upon pressing square button with no
active task.

Bug: 72967764
Test: Transition Delay - Hot Launch From Recents on Pixel 1
Change-Id: I36fdfe9d356c7678deee37b706f1abecfbfdc812
2018-03-30 12:34:26 -07:00
TreeHugger Robot
d2a41ad179 Merge "Updating some icons" into ub-launcher3-master 2018-03-30 18:57:17 +00:00
TreeHugger Robot
3ef1ae174f Merge "Fixing LauncherState not getting applied in some cases" into ub-launcher3-master 2018-03-30 18:52:18 +00:00
Sunny Goyal
ab7ddec88e Updating some icons
Bug: 76435058
Change-Id: If2df50a738cd0bad5d0343cdd1a0542df1bee9d5
2018-03-30 11:46:34 -07:00
Tony Wickham
76642ae892 Improve quick scrub auto-advance
- Explicitly list thresholds, including for auto-advance
- Thresholds for auto-advance are smaller, so you only reach them if
  you scroll to the edges of the track
- Because auto-advance is it's own section, removed longer initial
  auto-advance delay
- When moving out of auto-advance, stay on the same page instead of
  jumping back

Bug: 70180755
Change-Id: I4a8926f9ca944ee619cc71a77b893be894248458
2018-03-30 18:11:08 +00:00
Sunny Goyal
41e7328cb5 Fixing LauncherState not getting applied in some cases
> In case of swipe-up from homescreen, super method was not called everytime
> When swiping up from an app, repply() state was skipping as we didn't finish the
  last animation, leading to views staying visible and interactive
> Intercepting touch in RecentsView and pagesView based on visibility

Bug: 76467534

Change-Id: Ia5ef58d508b656f371a32cd2f1de00dd18c6aa5c
2018-03-30 11:06:25 -07:00
Sunny Goyal
ab83773e21 Updating fallback activity
> Wallpaper based theme support
> Light/dark system UI
> Swipe gestures to start and dismiss a task
> Fixing insets and task preview size

Bug: 75979063
Change-Id: Id402e6ac50551a7c0849742e3a0e77df3ead5aa2
2018-03-30 09:45:59 -07:00
Sunny Goyal
76e2775bb6 Moving some methods related to task launch animation to
recents view and related classes.
This allows the common animation to be used in fallback activity.

Bug: 75979063
Change-Id: I2b5bf5e66406621305b9a076793434f9c5cecdfd
2018-03-30 09:30:11 -07:00
Tony Wickham
b80cb40ee1 Merge changes Ia255a7af,I74e74e54 into ub-launcher3-master
* changes:
  Animate TaskView as you swipe down on it to launch
  Calculate task view animation instead of using dimens
2018-03-30 01:03:50 +00:00
Tony Wickham
3a6746ac04 Animate TaskView as you swipe down on it to launch
Bug: 73835352
Change-Id: Ia255a7af8fb6cd972f99de6390e097afc29c1b90
2018-03-29 17:46:47 -07:00
TreeHugger Robot
13c1deacb6 Merge "Enabling opening Overview via Alt-Tab by default" into ub-launcher3-master 2018-03-30 00:46:44 +00:00
TreeHugger Robot
62e07946a7 Merge "Close all floating views when animating to new screen for newly installed apps." into ub-launcher3-master 2018-03-29 18:58:48 +00:00
Jon Miranda
64eb8eafb0 Close all floating views when animating to new screen for newly installed apps.
Bug: 64073932
Change-Id: I9253c38391af75ed44a057184144f6a3cee36e69
2018-03-29 11:43:58 -07:00
TreeHugger Robot
8f665c52e5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-03-29 18:06:43 +00:00
Bill Yi
f94c0099ee Import translations. DO NOT MERGE
Change-Id: Icf33460413c168778937af5952ca08fd02f3bdca
Auto-generated-cl: translation import
2018-03-29 10:41:30 -07:00
Tony Wickham
7a802eb6db Calculate task view animation instead of using dimens
Now we compute the precise scales and offsets to synchronize adjacent
pages with the launched page. Also adjusted all apps progress so that
the predictions/hotseat go offscreen directly based on the opening
window.

Change-Id: I74e74e541c60b3b116e2b5713522bd4a0f5928a7
2018-03-29 09:32:18 -07:00
Winson Chung
873cd43326 Merge changes I838ef4de,I22e2948a into ub-launcher3-master
* changes:
  Use onQuickStep call from SysUI
  Workaround for ensuring dummy task view has valid task
2018-03-28 23:42:37 +00:00
Winson Chung
19adf653bd Use onQuickStep call from SysUI
Change-Id: I838ef4de2d86abde1848efd757a523c088016756
2018-03-28 16:27:08 -07:00
TreeHugger Robot
457dedd1bf Merge "Starting wallpaper picker in a separate task" into ub-launcher3-master 2018-03-28 22:07:17 +00:00
Tracy Zhou
b1a7f2829e Merge "Move default pip position to right above the shelf (Pt. Launcher)" into ub-launcher3-master 2018-03-28 21:54:57 +00:00
Sunny Goyal
112c927f8a Starting wallpaper picker in a separate task
Bug: 74500048
Change-Id: Icb315f3fd3aca800633be5105bf89c6e354425b9
2018-03-28 14:42:30 -07:00
Tracy Zhou
a706f00d78 Move default pip position to right above the shelf (Pt. Launcher)
SysUI change: ag/3721784, ag/3793664

- Track LauncherState and launcher activity state through callbacks.
- Devise logic to send shelf visibility and height signal to SysUI based
on LauncherState and Launcher activity state.

Bug: 73961893
Test:
- By default, pip shows up right above the shelf.
- Transitioning to all apps moves the pip down as the shelf becomes
invisible.
- Going to any specific app moves pip down. Hitting home moves pip
right above the shelf again.
- Dismissing IME should push PIP down but above the shelf on home
screen, bottom if not.

Change-Id: I1ab6ceb8007a5a7b5d932a456efa0a07f586ea4c
2018-03-28 14:40:49 -07:00
Jonathan Miranda
1f447d285a Merge "Pass intent extras as string arraylist." into ub-launcher3-master 2018-03-28 21:31:34 +00:00
TreeHugger Robot
599b494010 Merge "Don't wait until layout to calculate the scroll range" into ub-launcher3-master 2018-03-28 21:29:07 +00:00
Sunny Goyal
8c1a935a45 Don't wait until layout to calculate the scroll range
State UI is based on scroll range, which is applied on insets change.
So the scroll range should be updated as part of insets change, for the State
UI to be applied properly

Bug: 77220795
Change-Id: I839f89e4887d9731b1483135724227c4245a00a9
2018-03-28 14:20:04 -07:00
Vadim Tryshev
32e634a7f4 Enabling opening Overview via Alt-Tab by default
Now that it's sufficiently implemented.

Bug: 77218050
Bug: 73090995
Test: Open Overview vial Alt-tab
Change-Id: I684f1d642a7d63e0bf9b6e1b537e7484ede23ed1
2018-03-28 14:02:24 -07:00
Jon Miranda
75161b9750 Pass intent extras as string arraylist.
Bug: 74355094
Change-Id: I697d837e48d7de4a490d2ad74a9c1ec7987d0574
2018-03-28 13:40:17 -07:00
Jon Miranda
591e360803 Match folder icon size to normalized circle icon size.
Simplifies the logic for calculating the folder icon size,
and ensures consistent sizing in different launcher viewing modes.

Bug: 74078689
Change-Id: I5cf4474fd81e55aa50b056418c95533801f07d48
2018-03-28 12:46:48 -07:00
TreeHugger Robot
71d45a0ab0 Merge "Removing accessibility workaround for changing View visibility" into ub-launcher3-master 2018-03-28 17:42:07 +00:00
Sunny Goyal
18d718492a Removing accessibility workaround for changing View visibility
Original change-id: I9a687a39a358441afd57c0c46b57399ecbf23c36

Bug: 76418647
Change-Id: I0800bd4f521e052f0a1229fe6b7ceafd1b0429ae
2018-03-28 10:32:19 -07:00