Commit Graph

300 Commits

Author SHA1 Message Date
Tony Wickham
dcdeffdfd5 Merge "Code cleanup: remove some unnecessary methods/variables" into ub-launcher3-master 2018-03-12 18:08:11 +00:00
TreeHugger Robot
4c8fbb9c95 Merge "Adding implementation of InstantAppResolver for quickstep" into ub-launcher3-master 2018-03-12 18:06:56 +00:00
TreeHugger Robot
f386e49c2d Merge "Initial changes for handling overview button in Launcher" into ub-launcher3-master 2018-03-12 17:57:47 +00:00
Sunny Goyal
773bf8fbd0 Initial changes for handling overview button in Launcher
Adding a debug flag to show the overview button and placeholder methods
for handling the callbacks

Change-Id: I35055e768d96b43b835bac2eb146e47850a7f4b1
2018-03-12 10:48:51 -07:00
Tony
8ee1fe5041 Code cleanup: remove some unnecessary methods/variables
Change-Id: I21672b517b9050f82dba6d85ce4e371ebdfc9b50
2018-03-12 17:47:31 +00:00
Tony Wickham
38f4ab1749 Merge changes from topic "remove-ws-card" into ub-launcher3-master
* changes:
  Remove workspace card
  Cleanup code relating to recents carousel
  Flatten recents (remove curve effect)
2018-03-12 17:27:56 +00:00
Tony
404e625516 Remove workspace card
Swiping up for recents scales down workspace and hides it, similar to the transition
to all apps. Simultaneously, recents slides in from the side.

Also removed the setting for swiping to the first task, as it is required now.

Change-Id: Id0845db6650a37917a4faa9c8a434a2270913904
2018-03-12 14:05:18 +00:00
TreeHugger Robot
446aa8c122 Merge "Remove the jaggies." into ub-launcher3-master 2018-03-10 02:16:07 +00:00
Winson Chung
c815353743 Remove the jaggies.
Bug: 74393813
Test: Swipe up, observe no jaggies
Change-Id: Ia620f01bf3078d544068df07faa5a7b81f621ed9
Signed-off-by: Winson Chung <winsonc@google.com>
2018-03-09 18:03:13 -08:00
Tony
5cd8ab938c Cleanup code relating to recents carousel
We can delete a lot of code now  that recents isn't curved and
workspace doesn't offset.

Bug: 70179222
Change-Id: I01f7e3c313cdc370a8db5251a5d9fb406c1eb76c
2018-03-09 20:58:39 +00:00
Tony Wickham
59a38e6788 Flatten recents (remove curve effect)
- Workspace card scales down to be same width as other cards, which
  leaves a gap at the bottom due to difference in aspect ratio. This
  can be changed in the future, but deferring for now.
- Workspace card no longer offsets when scrolling.
- Cards no longer scale and translate, but still have a bit of dimming
  when on the edges, so the center card has the most focus.

A lot of code can be cleaned up. Added TODO's now, will cleanup in
followup CL

Bug: 70179222
Change-Id: I2332aab10e2549a455f773e053ed8b48677c3110
2018-03-09 20:58:39 +00:00
TreeHugger Robot
5c143255a5 Merge "Fade away half-screen assistant on swipe-to-recents gesture." into ub-launcher3-master 2018-03-09 02:02:35 +00:00
Vadim Tryshev
b09d25b26c Fade away half-screen assistant on swipe-to-recents gesture.
Half-screen assistant is not in task stack, and will be faded away.

Workspace-to-recents case with half-screen assistant needs more work
after we decide whether we should swipe to the workspace preview or to
the first task.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
half-screen assistant on top of it to Recents.

Change-Id: I6e3acc2b94bb3b56d6590a72073d37a1771a1da5
2018-03-08 17:03:25 -08:00
Winson Chung
584f530721 Ensure we register the input consumer on the ui thread.
- We register the input consumer on the interim choreographer thread
  but unregister the input consumer on the UI thread when invalidating
  the previous handler. This may have caused a race condition where
  the disposal of the input consumer overlapped with the registration
  of the new one (they share a key in the input consumer map in the
  system)

Bug: 73505150
Test: Unable to reproduce, this is a hypothetical fix
Change-Id: I20a9a7be967f5072bbf50ce12e5e61cb939e3c75
2018-03-08 13:07:36 -08:00
Mario Bertschler
14a89262f1 Using edge effect to trigger spring animation for all apps.
Bug: 72811152
Bug: 72059944

Change-Id: Ied7b51caa2fb48a2fda126d59e4eaf6a35edded3
2018-03-08 11:16:53 -08:00
Sunny Goyal
61e084601e Adding implementation of InstantAppResolver for quickstep
> Badging instant apps properly in recents
> Routing drawable creation using Drawable factory

Bug: 31282621
Change-Id: Ice1cdd3e9b821bebdebebbdc5cba4a907ffc21f8
2018-03-07 15:36:10 -08:00
Tony
865ee02d20 Show back button when a floating view is visible
Bug: 74184060
Bug: 74243869
Change-Id: I3b1806e10d3f910ce3a8a980c2b1e0609e01582b
2018-03-07 12:21:10 +00:00
Sunny Goyal
f3efc25862 Using public APIs for hardware bitmaps
Bug: 35428783
Change-Id: I4e7eeaa94e0cdfb1c76dce507a6f855e4eebbd6c
2018-03-06 15:16:21 -08:00
Sunny Goyal
46d259d9fb Updating launch transition for transparent activities
When a transparent activity is started from recents, animate the launcher
NORMAL state instead of animating the launcher UI separately

Change-Id: Ibfc9f7096f668e0129042b8a69ed5130029df797
2018-03-06 09:51:03 -08:00
TreeHugger Robot
d90d04b1ec Merge "Updating Launcher rotation logic" into ub-launcher3-master 2018-03-05 23:44:54 +00:00
Tony Wickham
38e7d5226c Merge "Don't scroll to home card if overview isn't visible" into ub-launcher3-master 2018-03-05 23:43:52 +00:00
Sunny Goyal
705566df72 Merge "Removing click-feedback shadow generation logic in BubbleTextView" into ub-launcher3-master 2018-03-05 23:26:28 +00:00
Sunny Goyal
726bee7d5d Removing click-feedback shadow generation logic in BubbleTextView
Instead of animating the shadow, animating the icon scale. This avoids
unnecessary bitmap creating at app-launch and also plays nice with the
app-launch transition

Change-Id: I1d3d24bc7212a6d659855ff1002a45388e269e52
2018-03-05 14:56:38 -08:00
Winson Chung
3e002f8275 Merge "Revert "Revert "Adding a separate state for QuickScrub""" into ub-launcher3-master 2018-03-05 20:11:18 +00:00
Winson Chung
ca84552505 Revert "Revert "Adding a separate state for QuickScrub""
This reverts commit 2687257c98.

Reason for revert: Reverting post-build

Change-Id: Ic3a1e8ed84a227b42bc35b91d4f0eed60bb2e29c
2018-03-05 19:39:25 +00:00
TreeHugger Robot
1e813b6781 Merge "Prevent adding tasks to the visible task list." into ub-launcher3-master 2018-03-05 19:08:34 +00:00
Winson Chung
b134331e3e Prevent adding tasks to the visible task list.
Bug: 74116831
Change-Id: Idc3a9d44350ad3b8aa274264473411782ba3a6e4
2018-03-05 10:59:04 -08:00
Winson Chung
7015eff870 Merge "Temporarily disable highres thumbnail loader." into ub-launcher3-master 2018-03-05 18:22:55 +00:00
Winson Chung
2687257c98 Revert "Adding a separate state for QuickScrub"
This reverts commit 6c6c2f45f7.

Reason for revert: Temporary revert for build.

Change-Id: I3947e9b2d4e5788f9d2a0c4e2e8b7d425d5bc775
2018-03-05 18:06:48 +00:00
Winson Chung
1ab7e377e6 Temporarily disable highres thumbnail loader.
Bug: 74116831
Change-Id: I812a1c774f1d0e5ce8299e1731d15a1b9c058e29
2018-03-05 09:58:44 -08:00
Tony
88d70f2abc Don't scroll to home card if overview isn't visible
Consider these steps:
- Swipe up for recents
- Scroll over several cards
- Swipe up for all apps
- Press home

Before this change, there was a delay as recents scrolled back to
the workspace card before going home, even though it wasn't visible.

Change-Id: I1c0edc8e02d1d1d236f47882695903e33e6b09ae
2018-03-03 05:36:23 -08:00
Sunny Goyal
623eddd7e8 Updating Launcher rotation logic
When auto-rotate is on, launcher allways allows rotation. This allows uses to use
locked rotation feature is available on the device
When auto-rotate is off, workspace does not allow rotation, but overview in quickstep
will allow rotation

Bug: 73872056
Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
2018-03-03 00:41:09 -08:00
Sunny Goyal
6c6c2f45f7 Adding a separate state for QuickScrub
Bug: 74014237
Change-Id: Ie86ac589f0ad0e1470fb6b0b71263ec6593eb1e3
2018-03-02 15:38:21 -08:00
Tony Wickham
dd535466bf Don't show Pin option when an locked to app is active
Also isLockToAppEnabled is renamed to isScreenPinningEnabled

Bug: 72799389
Change-Id: I46d4c57e3719f7401887e79cbb7397e23f162e44
2018-03-01 12:43:17 -08:00
TreeHugger Robot
22ab784dd0 Merge "Updating the scrim and landscpae ui" into ub-launcher3-master 2018-03-01 19:44:59 +00:00
Sunny Goyal
6639a5dfe0 Updating the scrim and landscpae ui
> Instead of views, using a custom class to draw the color scrims
> All-apps has full screen UI
> Quickstep does not have search box in landscape

Bug: 73085356
Change-Id: I360a78a2ade0134daad29fe712796cd39a381fbb
2018-03-01 11:23:46 -08:00
Sunny Goyal
2c3eafcb26 Defining an action for touch service so that the component name does not
need to be hardcoded
Also preventing the service behind system permission

Change-Id: Ibb3f0d8115b2355b2f5b5ee991858f6377037e45
2018-03-01 10:57:54 -08:00
TreeHugger Robot
43936eb05c Merge "Fixing generation of fake app-to-recents events" into ub-launcher3-master 2018-03-01 02:27:25 +00:00
Vadim Tryshev
4c1abea9cd Fixing generation of fake app-to-recents events
Due to some changes, Launcher started to generate these events also upon
pressing Home. Moving the generation to a right place triggered only
upon the app-to-recents transition.

Bug: 72967764
Test: atest google/perf/app-transition/app-transition-to-recents
Change-Id: I48e9450765474ed103e558b60ff5bf2b7d6b497d
2018-02-28 17:56:28 -08:00
TreeHugger Robot
4250557a81 Merge changes Ic23997f1,Id45c5381 into ub-launcher3-master
* changes:
  Enable trim memory callbacks to the loader, background task preloading
  Only load thumbnails for visible tasks.
2018-02-28 21:06:46 +00:00
Winson Chung
62a70be27a Enable trim memory callbacks to the loader, background task preloading
- Also enable the high-res thumbnail loader

Bug: 73651529

Change-Id: Ic23997f10289ea10cb1f41104e07029c9102c
Signed-off-by: Winson Chung <winsonc@google.com>
2018-02-28 12:55:19 -08:00
Winson Chung
cfc519d0a8 Only load thumbnails for visible tasks.
Bug: 73651529
Change-Id: Id45c5381c43b8c26447be5492c51af83cffe32a9
2018-02-28 12:54:00 -08:00
TreeHugger Robot
c06a7e137d Merge "Set disabled state when getting new icon from DrawableFactory." into ub-launcher3-master 2018-02-28 20:10:09 +00:00
Jon Miranda
d6aa658b6f Reduce launcher resume animation start delay from 150 to 100.
Bug: 70220260
Change-Id: I61c76a619841fc91d080b53190fd46aa20667e30
2018-02-28 08:19:30 -08:00
TreeHugger Robot
3e3e87e6aa Merge "Fix app opening transition for deep shortcuts." into ub-launcher3-master 2018-02-28 04:00:50 +00:00
Jon Miranda
93e9dbddc5 Fix app opening transition for deep shortcuts.
With this change, the floating view now starts on top of the
deep shortcut icon; before this change the view stared in the
middle of the text portion of the view.

Bug: 70220260
Change-Id: I7a1ed705f6f8d9d2ff594f52c4cf678aa0575012
2018-02-28 03:51:03 +00:00
Winson Chung
efa671294e Fix some issues with split screen animation
- Notify WM when the next draw after split screen happens
- Close the menu once we invoke split screen

Bug: 73118672
Change-Id: I9a42635f1f5c29e347bdec3034f6aa8be332c8d2
2018-02-27 16:52:32 -08:00
TreeHugger Robot
e01c217b3d Merge "Don't animate the workspace background alpha during recents anim" into ub-launcher3-master 2018-02-27 22:09:42 +00:00
Tony Wickham
270d6567cc Don't animate the workspace background alpha during recents anim
This is somewhat expensive and could cause jank

Change-Id: I75c2e957781c865e8d275ecc083e5edfa31e04d3
2018-02-27 13:55:35 -08:00
Tony Wickham
8168252567 Merge "Default swiping to N-1 task from home to true" into ub-launcher3-master 2018-02-27 19:50:50 +00:00