Commit Graph

7758 Commits

Author SHA1 Message Date
Sunny Goyal
82d2074cd2 Merge "Do not reset the previous state animation, if it is a part of the new state animaiton" into ub-launcher3-master 2018-04-10 03:02:02 +00:00
Tony Wickham
97b658f289 Merge "Can now swipe away to dismiss second task" into ub-launcher3-master 2018-04-10 00:13:05 +00:00
Sunny Goyal
b35f50cf55 Do not reset the previous state animation, if it is a part of the new state animaiton
Change-Id: Ic433db8cd2b0701923185d0a2db2a4361567437f
2018-04-09 16:31:12 -07:00
Matthew Ng
f0f00b30b8 Check for eng build as a debug build
Test: compile with eng lunch and see if you get debug settings
Change-Id: If94c4d49b5fb12cd46d51197e0a60ea6d0b0a01e
2018-04-09 16:20:42 -07:00
Tony Wickham
52c7b8c6ac Can now swipe away to dismiss second task
Previously we only allowed dragging the forefront task. Now you can
swipe up to dismiss the second task as well, but can't drag it down to
launch.

Also cleaned up page-scroll-while-dismissing logic to ensure it works
correctly in RTL and for new cases with dismissing adjacent pages.

Bug: 73187449
Change-Id: I1fe873c4cf1380b951dd3b2e396ab401ca1f7470
2018-04-09 16:04:21 -07:00
TreeHugger Robot
a4e8763d11 Merge "Updating the card size logic" into ub-launcher3-master 2018-04-09 17:20:31 +00:00
Tony Wickham
9ae484b95d Merge "Log dismissing or launching recent tasks" into ub-launcher3-master 2018-04-06 22:55:50 +00:00
Tony Wickham
3541ac10a1 Merge "When dragging past first or last state, don't reinit target" into ub-launcher3-master 2018-04-06 22:51:06 +00:00
Tony Wickham
9bd862e588 Log dismissing or launching recent tasks
We now pass the log action (e.g. SWIPE or FLING) to the pending
animation, so that the end listener can log appropriately. This
is used when swiping down or up on a task, for example.

Bug: 73783784
Change-Id: I5c2eee24e8b23cf4af68d503d3435a6d8088dd8a
2018-04-06 15:41:39 -07:00
Tony Wickham
6270a0ea18 When dragging past first or last state, don't reinit target
Example bug:
1. Swipe up to overview and let go
2. Swipe all the way to the top of the screen, past where all apps stops
3. Swipe down

Before this change, you get reset in NORMAL state instead of OVERVIEW.

By ensuring that getTargetState() checks the drag direction before
returning a new state, we guarantee we only re-init in the case that the
state is actually changing. Otherwise it's possible to change the state
to one that is impossible, such as NORMAL when swiping up from ALL APPS.

Change-Id: I19913dded9c94228d06289780b6400e99403f378
2018-04-06 14:32:18 -07:00
Sunny Goyal
d792a77234 Updating the card size logic
In full screen always follow the device aspect ratio
In multi-window, follow the 1:1 split window size
Rotate the screen shot only in full-screen mode

Bug: 70289009
Change-Id: Id5095565634d4d7920fefa929b28276db80bda5f
2018-04-06 11:29:32 -07:00
Jonathan Miranda
80be805996 Merge "Fix bug where BTV text alpha stays 0 when PopupContainer closed w/o animation." into ub-launcher3-master 2018-04-06 16:30:43 +00:00
Mario Bertschler
d39148afb0 Adding FLAG_ICON_BADGED and check flag in DragView.getBadge.
Bug: 77634973
Change-Id: I0e398bea7aa86246616e37bbd76f0936facb83ba
2018-04-06 08:15:28 +02:00
Jon Miranda
0fd7c6c9da Fix bug where BTV text alpha stays 0 when PopupContainer closed w/o animation.
Bug: 77565147
Change-Id: I71501c7a65369386efcb7b1a36f19b117e119ed9
2018-04-05 15:23:41 -07:00
Sunny Goyal
ca90706994 Merge "Simplifying fallback recents animation" into ub-launcher3-master 2018-04-05 21:31:14 +00:00
Sunny Goyal
9054843a1f Simplifying fallback recents animation
Instead of using WindowTransformSwipeHandler, keeping the launcher UI in place and
just animating the window

Change-Id: I4defce3a9745407523de651aeb28a37867567507
2018-04-05 13:51:21 -07:00
Tony Wickham
c51493d281 Don't let touches go through popup when notification is present
Bug: 76139059
Change-Id: I7d39fbeb60e871eeadedb8a3ee1ef81dc4e2f47e
2018-04-05 12:07:08 -07:00
TreeHugger Robot
5c7e6c258e Merge "Close options popup when rebinding launcher." into ub-launcher3-master 2018-04-05 18:47:54 +00:00
Jon Miranda
fcb7e19f67 Close options popup when rebinding launcher.
Bug: 77582012
Change-Id: I6707ca526c8c934f56b227288d2cbea7139ac41d
2018-04-05 11:32:41 -07:00
TreeHugger Robot
f54a8f345b Merge "Avoid duplicate accessibility announcement upon switching to -1st page" into ub-launcher3-master 2018-04-05 18:02:25 +00:00
Vadim Tryshev
2c430b34cb Avoid duplicate accessibility announcement upon switching to -1st page
Since -1st window already has accessible description, no need to
announce "Page X of Y" for it.

Bug: 74210311
Test: Manual
Change-Id: I5cbfd763778b5f7049be732a750df4501b5419e0
2018-04-05 10:53:08 -07:00
TreeHugger Robot
e976ca950b Merge "Fix animations home" into ub-launcher3-master 2018-04-04 22:02:14 +00:00
Tony Wickham
81839b86b2 Merge "Change overview animation to scale instead of translationX" into ub-launcher3-master 2018-04-04 21:40:15 +00:00
Winson Chung
9800e730a2 Fix animations home
- To prevent surface thrashing, we no longer hide the home activity before
  starting the transition home. This prevents the launcher from being added
  to the remote animation target list, which means that we default to
  skipping the launcher animation. As a workaround, we special case the
  flow and force the animation to run when starting the recents animation.

Bug: 74405472
Test: Go home from an app, ensure there is an animation.
Change-Id: Ifd2b39444fdeab323ee79a368b580a6264c3e5b9
2018-04-04 14:36:40 -07:00
Tony
0c95559cbc Change overview animation to scale instead of translationX
As you swipe up to overview from home, workspace scales down and fades out as before,
and now recents scales down from 1.2f on top of it. The interpolators are set such
that the workspace animation is seen before the recents animation. Also, we don't
scale down all of recents, only the visible pages (current and adjacent).

Change-Id: I5f8bfe8cafeaa41d26873c63549735d7bdff2bce
2018-04-04 13:48:42 -07:00
Sunny Goyal
b959cfb44f Reverting some debug logs
Bug: 72481685
Change-Id: Ib9e52504d9513bd7fdede28f6c0798ca7873083d
2018-04-04 10:19:30 -07:00
TreeHugger Robot
b49c89de39 Merge "Adding support for highlighting preference in sub-screens" into ub-launcher3-master 2018-04-04 17:08:22 +00:00
TreeHugger Robot
e2ec732a44 Merge "Making task list carousel accessibility-scrollable" into ub-launcher3-master 2018-04-03 21:48:25 +00:00
Vadim Tryshev
e6bbefb768 Making task list carousel accessibility-scrollable
No pane titles yet, as they are not yet reasonably supported by
Talkback.

Bug: 72409756
Test: Manual
Change-Id: I3d2317b9180ac6b02977a4ee8212ae30f0533b2f
2018-04-03 14:38:44 -07:00
TreeHugger Robot
6097be232f Merge "Ensuring that previous animation is completed before starting a new state animation" into ub-launcher3-master 2018-04-03 20:53:26 +00:00
TreeHugger Robot
20bd0b3fcb Merge "Adding WEB_APP item type for logging." into ub-launcher3-master 2018-04-03 19:35:45 +00:00
Mario Bertschler
d2e3c5de56 Adding WEB_APP item type for logging.
Set in LoggerUtils.newItemTarget if instant app

Bug:67049361
Change-Id: I8e99e5c60bf1a2083f898e8978d403138f803276
2018-04-03 21:18:38 +02: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
Sunny Goyal
1c6d566870 Ensuring that previous animation is completed before starting a new state animation
Bug: 76231621
Bug: 77150113
Change-Id: I086e8063b08d2ba69ead1bd0ee1772d65fb6075c
2018-04-02 15:29:47 -07:00
Sunny Goyal
ba406e2a44 Adding support for highlighting preference in sub-screens
Change-Id: I1d5c0a7457a31755951b2f6be70a61a2d84463cf
2018-04-02 12:50:06 -07: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
TreeHugger Robot
3a3878979c Merge "Updating fallback activity" into ub-launcher3-master 2018-03-30 23:53:22 +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
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
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