Adam Cohen
f4fce2943e
Don't reload the Recents model if it's already loaded
...
-> This was causing a race condition which would lead to many black
thumbnails when invoking overview from home
Change-Id: I24221fd42a18a339c1b8bbdc63e63513561be9b9
2018-01-12 13:02:58 -08:00
Tony
6d6fe041c7
Implement quick scrub and quick switch callbacks
...
Bug: 70180755
Change-Id: I011dd5b0435cea7ba493e83b973ce5be7d18c1f0
2018-01-11 17:20:35 -08:00
Sunny Goyal
1a52ef57c7
Removing some dependency on Launcher UI
...
Change-Id: Ic1c84880cfe4daa9398b8eb27c3afc0837c5a8ca
2018-01-11 15:33:23 -08:00
Sunny Goyal
49bcf34e81
Adding a back stack to go to overview from all-apps
...
Change-Id: I94e7c27aa505123ddbe40ffa29b1bbc9b2748293
2018-01-11 14:45:11 -08:00
Sunny Goyal
9bb0d72640
Adding feature to support two different swipe targets from all-apps and overview
...
Change-Id: I7e7b4abbcebcbd6de43805c57ee40b0edd5ba5aa
2018-01-11 14:13:44 -08:00
TreeHugger Robot
b5d047ca14
Merge "Removing layout handling in DeviceProfile and moving it to individual views" into ub-launcher3-master
2018-01-10 23:25:26 +00:00
Sunny Goyal
07b6929cd9
Removing layout handling in DeviceProfile and moving it to
...
individual views
Bug: 71709920
Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
2018-01-10 15:13:25 -08:00
Tony Wickham
5cf0fbcfc5
Merge "Add onWidgetsBound() callback to TaskMenuView" into ub-launcher3-master
2018-01-09 02:07:33 +00:00
Sunny Goyal
228153d92a
Updating landscape layout for launcher/quickstep
...
> Hotseat is tied to navbar (on left in seascape)
> Search box shows up in Overview (clicking it would crash for now)
> All-apps is no longer fullscreen in landscape
> Recents cards are appropriately scaled down
> Hotseat is visible in Overview
Bug: 70179916
Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
2018-01-08 13:53:44 -08:00
Tony Wickham
07b1d670f2
Animate to the workspace card when transitioning from overview to home
...
Change-Id: Ib2c2288fd935f678a5c7a354be09c6d852d86b41
2018-01-05 14:15:10 -08:00
TreeHugger Robot
a92638ab7d
Merge "Two state swipe interaction fixes" into ub-launcher3-master
2018-01-03 23:20:28 +00:00
Sunny Goyal
2a0659b223
Two state swipe interaction fixes
...
> Loading the recents plan before showing recents and always starting with page 0
> Fixing thumbnail not getting drawn when layout happens after task plan is loaded
> Disabling two state swipe when touch service is not connected
> When using swite gesture, once user triggers the overview mode, he cannot land
in NORMAL state in that gesture
Change-Id: I7a2e83318af6e98dcc64849690fcba6dc8f71f77
2018-01-03 15:11:27 -08:00
Tony Wickham
0c52b56db9
Add onWidgetsBound() callback to TaskMenuView
...
This lets us handle the edge cases where widgets are added or
removed after popuplating the menu, and updating it accordingly.
Change-Id: I5d8fff8714caa718f87aeac3b15a346b80aed7a8
2018-01-02 16:56:49 -08:00
Tony Wickham
2fae2a0e9c
Add system shortcuts when long pressing recent icon
...
We add a floating view for the menu that aligns with the task icon.
If available, the following shortcuts are present:
- Widgets
- App info
- Install (for instant apps)
It is designed to be straightforward to add to this list.
Bug: 70294936
Change-Id: I56c1098353d09fc564e0e92e59e4fcf692e486ba
2018-01-02 15:44:34 -08:00
Sunny Goyal
9328a51271
Adding translationX to workspace card to that it is slightly visible
...
behind the first card
Change-Id: Idc0c169fb92510e74b983160778bd9dbacf29943
2017-12-22 11:21:18 -08:00
Sunny Goyal
e15e2a8267
Adding an empty page in Recents view corresponding to workspace
...
The page is aligned to the workspace card and shows a widgets button
in the empty region
Change-Id: I479c47a2fbac4b3ef1aaf833d9fe82b5d7e10ddc
2017-12-19 10:06:15 -08:00
Winson Chung
50f85e04f0
Temporarily disable HW bitmaps
...
- Causes crash due to sampling bitmap for badge color.
Change-Id: I5c9186fb22769c5b7dcf88d9820aabae5ce486f5
2017-12-15 11:43:29 -08:00
TreeHugger Robot
e7794795a0
Merge "First pass at using hardware bitmaps" into ub-launcher3-master
2017-12-14 00:46:25 +00:00
Tony Wickham
5f7335741d
Merge "Swipe from nav bar to enter overview in landscape" into ub-launcher3-master
2017-12-13 21:46:19 +00:00
Sunny Goyal
9d32323cac
First pass at using hardware bitmaps
...
Bug: 35428783
Change-Id: Ife67b85f6e7e268826597ed9bccd9659841f67de
2017-12-13 13:36:36 -08:00
Tony Wickham
30d276cb92
Merge "Animate recent app icon in after activity transition" into ub-launcher3-master
2017-12-13 17:45:16 +00:00
Tony Wickham
b744a67785
Swipe from nav bar to enter overview in landscape
...
Previously there was hard coded logic for portrait mode, such as
always assuming Y velocity and the upward swipe direction.
Bug: 70179916
Change-Id: Id08ae849632d766b01d67da1c6c67d4e24c697d7
2017-12-13 09:40:36 -08:00
Tony Wickham
0349b6c01c
Animate recent app icon in after activity transition
...
This prevents the icon from being eclipsed by the drag view
as it scales down.
Change-Id: I6d06414bf58ddbc95e51827358e8845897ee554d
2017-12-12 17:23:26 -08:00
TreeHugger Robot
3526729354
Merge "Restricting the overview state trigger logic to a limited swipe range" into ub-launcher3-master
2017-12-13 00:15:00 +00:00
TreeHugger Robot
4aa4c5a911
Merge "Hide hotseat in landscape overview" into ub-launcher3-master
2017-12-12 23:10:56 +00:00
Tony Wickham
a447bd884b
Hide hotseat in landscape overview
...
Bug: 70179916
Change-Id: Ib277a054cf16233ab9156a4448c41952e3295fae
2017-12-12 14:58:50 -08:00
Sunny Goyal
0c723353a6
Enabling swipe up from overview to all-apps
...
> Fixing wrong alpha interpolator when swiping down from all-apps
Change-Id: I7d4200c89797e5609fd7c4aa8681dea2ffd00bf7
2017-12-12 12:20:23 -08:00
Sunny Goyal
f5f6fc3898
Restricting the overview state trigger logic to a limited swipe range
...
Change-Id: I68714b064dcc62e1837005e0d25b48ac48aa62ca
2017-12-12 10:25:11 -08:00
Sunny Goyal
de5535a1ec
Initial interaction for two state swipe to overview
...
> Currently swipe only works from NORMAL and ALL_APPS state
> All interpolation is spread linearly
On pausing the drag for some time, the workspace moves to overview state,
and all other transitions interpolate linearly from there over the
remaining swipe range
Change-Id: Ic79f9d0f446c9bfff11e4af4d31ddc1c86c45ab2
2017-12-11 09:56:17 -08:00
Tony Wickham
fcb1dd183c
Merge "Implement swipe to dismiss recent tasks" into ub-launcher3-master
2017-12-08 19:12:42 +00:00
Sunny Goyal
a3e0350329
Creating a copy of vertical swipe detector for quickstep
...
Change-Id: Ie38e0c11e8ea9aa476e450f074295358623c6942
2017-12-07 16:28:21 -08:00
Tony Wickham
8643cd4ef4
Implement swipe to dismiss recent tasks
...
Bug: 69166452
Change-Id: I6ccb77dbc6e55c5076ecb9808ee8283e0c72eea7
2017-12-07 15:36:56 -08:00
Sunny Goyal
3c585ddbf7
Removing view layer support during state animation.
...
View layer was only being used when fading in/out hotseat in overview.
From API 21+, android automatically create layers when animating alpha
The current support for view layers does not work properly when cancelling
animations and controlling partial animations
Change-Id: I2d5785471af9819575beefe65f1f2bdd28c76bd5
2017-12-07 14:18:16 -08:00
Sunny Goyal
e3c6d58b71
Adding support for tagging animations per controller, so that they can be controlled independently
...
Change-Id: I6f360362aa16f7e02fe5fe84976b23663f228030
2017-12-07 12:46:26 -08:00
Sunny Goyal
bc683e9d06
Separating various UI properties into state variables
...
> Using workspace scale and translation for all-apps
> Without quickstep, workspace has the parallex effect as before
> With quickstep, workspace scales down to match the recents card width
> Using a single animator for recents views in case of state transtion and
controlled transition to prevent going into inconsistant state.
Change-Id: I1864de6892052ca771f4d0062e3d60c28840a72d
2017-12-06 14:29:33 -08:00
Tony Wickham
53370678ce
Allow hotseat items to be clicked in overview
...
Bug: 70179573
Change-Id: Ib2cbd7b12e5e1287d652d703e95c15ca6ea12a4e
2017-12-05 11:40:21 -08:00
Sunny Goyal
e6af6318cf
Merge "Forwarding touch events from TouchInteractionService to Launcher when launcher window is visible" into ub-launcher3-master
2017-12-04 19:23:09 +00:00
Tony Wickham
7df64b3dbf
Dim non-forefront recent pages
...
Also move updateCurveProperties to computeScroll instead of scrollTo.
Change-Id: Ibb380f0122185b7fe93541daf58d5bda916c89c0
2017-12-01 16:00:59 -08:00
TreeHugger Robot
413e7d44fd
Merge "Subtracting the touchSlop when dragging the window, to prevent initial jump" into ub-launcher3-master
2017-11-30 07:55:56 +00:00
TreeHugger Robot
0c2d9b0f3e
Merge "Fix bug where long press menu text is white on gray for dark backgrounds." into ub-launcher3-master
2017-11-27 22:45:21 +00:00
Jon Miranda
b1b2b45a69
Fix bug where long press menu text is white on gray for dark backgrounds.
...
Bug: 69723025
Change-Id: Iba9704b3f07b2156d449734b8fd750f4238da8e7
2017-11-27 14:23:32 -08:00
Sunny Goyal
0607cf03ea
Forwarding touch events from TouchInteractionService to Launcher
...
when launcher window is visible
Change-Id: I418994c2e2a5559c28c36875ac7aff589a15fac5
2017-11-20 18:03:57 -08:00
Tony Wickham
635329a5ab
Merge "Add carousel curve effect to RecentsView." into ub-launcher3-master
2017-11-17 18:43:12 +00:00
Tony Wickham
1c9bf6a19c
Add carousel curve effect to RecentsView.
...
Pages scale down and tuck underneath the centermost page.
Change-Id: I12686cd72634f758ef71828033eb4e22339ef185
2017-11-17 10:25:27 -08:00
Sunny Goyal
27887b2c64
Adding some tracing for touch interaction
...
Change-Id: Ibbd54b5a0d397312e8f83bdcc2b7d93f309f8f7a
2017-11-16 17:02:40 -08:00
Sunny Goyal
1c22aa1370
Subtracting the touchSlop when dragging the window, to prevent initial jump
...
Change-Id: I26a79076312d4641693a9610c17cf925d5d104ea
2017-11-16 16:11:18 -08:00
Sunny Goyal
1dc8a1f3ca
Batching MotionEvents and processing them on the UI thread
...
Change-Id: I2dc972af8360e719db743740074893bac0213ded
2017-11-16 15:12:42 -08:00
Winson Chung
047dea9e66
Merge changes Iaeeca788,I305b659d into ub-launcher3-master
...
* changes:
Fetching graphic buffer instead of bitmap for current screenshot.
Add option to not preload titles.
2017-11-16 20:41:17 +00:00
TreeHugger Robot
af3a327779
Merge "Temorarily changing the long press action on the homescreen to show a popup menu" into ub-launcher3-master
2017-11-16 18:26:20 +00:00
Winson Chung
0485e357db
Fetching graphic buffer instead of bitmap for current screenshot.
...
Bug: 69166452
Change-Id: Iaeeca788c9afadb1ce6f7ee3056dddf9b2e339b2
2017-11-16 09:46:16 -08:00