Commit Graph

6342 Commits

Author SHA1 Message Date
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
Winson Chung 117386c9b7 Add option to not preload titles.
Bug: 3236757

Change-Id: I305b659d8ce35ee9c269b25b88558fd29de79ba0
2017-11-15 18:14:42 -08:00
Sunny Goyal a5ace71d91 Temorarily changing the long press action on the homescreen to show a popup menu
Change-Id: If160a2e4d0f73e2e1ecb424a0625d642b8775ada
2017-11-15 17:13:14 -08:00
Sunny Goyal 0874079c0e Various swipe up animation optimizations
> Tracking the touch from the start of the interaction, instead of when launcher is visible
> Animating the snapshot to the final posion after first draw
> Scheduling frame only when there are pending touch events
> Starting launcher before loading recents

Change-Id: Id9c3642ea235a1d35d31dbf28024c99dd4f47daa
2017-11-15 16:39:17 -08:00
TreeHugger Robot 3e4d95d33d Merge "Fixing wrong velocity being used for fling" into ub-launcher3-master 2017-11-15 18:41:37 +00:00
Sunny Goyal d3864fa630 Fixing double state changes when using an InternalStateHandler
> Removing duplicate state handling on onCreate and onNewInetnt when InternalStateHandler is active
> Changing PinItemDragListener to use IntenalStateHandler

Change-Id: I42dcf82d1180c49430c6cf0b85d47072c4498ecc
2017-11-15 10:24:10 -08:00
Sunny Goyal 6fc380def6 Fixing wrong velocity being used for fling
Change-Id: I0e8a9563d4148ed9f6035a441ab045c7f4f8a736
2017-11-15 10:02:16 -08:00
TreeHugger Robot 77f7b66822 Merge "Simplifying workspace layout" into ub-launcher3-master 2017-11-15 01:12:30 +00:00
Winson Chung ee849a5199 Minor optimization when starting quickstep.
Change-Id: I339c414d500a14407041189828838f35d2e63cf4
2017-11-14 14:33:34 -08:00
TreeHugger Robot f405f507b7 Merge "Load some recent tasks" into ub-launcher3-master 2017-11-14 18:13:08 +00:00
Winson Chung b63b44c3d5 Load some recent tasks
Bug: 69166452
Test: Build quickstep
Change-Id: Id4b0172256d6920616a6b9529d61abd1fe0c1a36
2017-11-13 18:02:44 -08:00
Sunny Goyal ac00cba35c Simplifying workspace layout
Instead of creating workspace view larger than the screen size (so that it can be
zoomed out), restricting the size to the parent size and bypassing the drag events
directly to Workspace (since the workspace is smaller when zoomed out, it might not
qualify for all events otherwise).

Change-Id: I45e213dd6d16bec5feb6e7cf90bc6f7de4c6d305
2017-11-13 16:00:06 -08:00
Sunny Goyal 6c2b3ef0f3 Adding volatile to various variables used on multple threads.
Change-Id: I143de4981461e6f07688a7ffda906fabbcc97948
2017-11-13 09:56:31 -08:00
Sunny Goyal f8088eecf1 Initial changes for handling touch events.
When the touch passes a threashold, we take a snapshot and start the launcher
activity. The launcher displays the snapshot on top of its UI.
As we get further touch events, we move this snapshot and the hotseat in reponse.

Change-Id: I4623676227000afd52805a414a4de499081feced
2017-11-10 18:06:33 -08:00
Sunny Goyal 3a052d413d Merge "Adding some task views." into ub-launcher3-master 2017-11-10 21:13:14 +00:00
Winson Chung 8ae4198a44 Adding some task views.
Bug: 69166452
Test: Build quickstep
Change-Id: Iee4cb0b9ac32716f588082a197a90ec1b2655047
2017-11-10 12:03:43 -08:00
Sunny Goyal c4fa8c312b Changing the state UI logic for normal build and quickStep build
> Creating ShareHandlers for managing UI
> In normal build, hotseat is hidden in overview, while in QuickStepBuild, it is visible

Change-Id: I5f8d35c75b861d912d93fce186b5dd74106184c3
2017-11-07 12:24:47 -08:00
Sunny Goyal 16764588c9 Separing the overview states for normal and quickstep builds
In QuickStep, adding a placeholder ScrollView and changing the state logic
appropriately to handle that

Change-Id: I10223c0692788d6e5dbf8c408c01cafb4e39bd2c
2017-11-07 09:46:20 -08:00
Sunny Goyal 85525173ce Rearranging the code structure to allow replacing state logic.
Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
2017-11-06 14:57:50 -08:00
Sunny Goyal 416fc0b328 Updating the systemUI lib
Change-Id: Ie945325ea5c436188c79a8f79082d5098357de6d
2017-11-03 14:04:17 -07:00
Sunny Goyal 73133391e5 Adding a placeholder recents activity
Change-Id: Idde86b4008559cde8bcf13fba90a8c72c3f1f591
2017-11-02 11:23:31 -07:00
Sunny Goyal 9d341964a0 Setting up build rules and placeholder code for QuickStep
Change-Id: Ib4ad5c6082b293fc9f9455d70e2b21462b4ab76d
2017-10-30 10:04:24 -07:00