Commit Graph

10334 Commits

Author SHA1 Message Date
Mario Bertschler 8d01cb422d Setting package to null on launching shortcut if it contains
statusflag to support webui.

Bug: 66009310
Change-Id: I37bf15c3779c88489a16f63ed772d460a0bd531c
2018-02-13 14:47:02 -08:00
TreeHugger Robot ba7d129aac Merge "Using paged view for all-apps tabs" into ub-launcher3-master 2018-02-13 18:06:24 +00:00
Sunny Goyal 0bd7f4f2dc Using paged view for all-apps tabs
Bug: 72811152
Change-Id: I0cca426d935f079c923b93fe3d4399f87778fe95
2018-02-13 09:55:29 -08:00
Tony Wickham 618a5044cf Allow quick scrub/switch from minus one
Launcher's window doesn't have focus when on minus one. In this case, we
tell the minus one overlay to hide and add a window focused callback to
start quick scrub/switch after launcher regains focus. Since the
transition from minus one takes longer than for launcher to get window
focus, we also defer until the overlay is completely hidden before
starting the quick scrub transition.

Bug: 70180755
Change-Id: Ifcf85aaf1942b51394e68e209b89807fa4007afe
2018-02-13 08:18:57 -08:00
Tony Wickham a066e4434b Re-enable quick scrub/switch from launcher
When we get the onQuickScrubStart() or onQuickSwitch() callbacks, we go
to the overview state with a quicker duration (the same used from apps).
Then we follow the same logic as starting quick scrub/switch from apps
except that we allow you to scrub back to the workspace card.

Bug: 70180755
Change-Id: Iebcdcc4c4ad1e1210e2d1c11e5007c27d3c1eef3
2018-02-12 11:46:40 -08:00
TreeHugger Robot 00092efbdf Merge "Fix bug where two items could occupy same grid cell in hotseat." into ub-launcher3-master 2018-02-09 23:54:40 +00:00
Jon Miranda 23585182cd Fix bug where two items could occupy same grid cell in hotseat.
When long pressing on an app to start, a drag would start on the
Workspace but mDragInfo would not be cleared since onDropCompleted
is not called in this case.

Solution is to set mDragInfo to null in onDragEnd.

Bug: 72206125
Change-Id: I2b9a1563c80e591d946a44f4e949b71f7b423a00
2018-02-09 15:33:37 -08:00
Winson Chung 05a31ede4f Defer launching the quickscrub task until after the page settles
- Tweak the durations to be less laggy
- Add some state logging

Bug: 67957962
Bug: 70180755
Change-Id: Ia0caa5178b3ed976705eb2d973bc00d8f1b9e3ca
2018-02-09 12:43:36 -08:00
Winson Chung 3e803c7a4b Animate the visible task view if launching an app that resolves to the task
Test: Manual, launch app for associated visible task
Change-Id: I7a56553197ad23e1269eb50523eca0ea88898f47
2018-02-09 12:40:10 -08:00
TreeHugger Robot 7780fa7bc7 Merge "Prevent blinking when user presses home." into ub-launcher3-master 2018-02-08 03:48:56 +00:00
Jon Miranda 0d5daafd2f Prevent blinking when user presses home.
Intead of finishing the entire animation (launcher animation and
window animation), we finish just the launcher animation.

Bug: 73071035
Change-Id: Ied84cb641f3cedc367433ad99d21ab1b258ae7f8
2018-02-07 17:41:22 -08:00
Sunny Goyal 60180b049e Deferring all app updates until the pending executor is complete.
We were only deferring full apps binds and not partial updates which could cause
the model to go out of sync with Launcher.

Bug: 72051234
Change-Id: I20db0e86aadd1e6a518237026f6dfb03e469eb87
2018-02-07 15:55:58 -08:00
Sunny Goyal 168ca694f9 Merge "Adding callback to notify LauncherCallbacks when quickstep starts" into ub-launcher3-master 2018-02-07 23:14:58 +00:00
TreeHugger Robot 8dd1ebdb96 Merge "Handle transition from multi-window" into ub-launcher3-master 2018-02-07 23:05:09 +00:00
Winson Chung 2fda6ced2a Handle transition from multi-window
- Make use of app/home insets and minimized home size to calculate the
  proper clipping and target bounds for the task view in home.

Test: Swipe up when in multiwindow

Change-Id: Ibef7a6dc319ded7867ee559dd31c5e87fd76cadb
2018-02-07 14:56:24 -08:00
Sunny Goyal 3bac2c2b91 Adding callback to notify LauncherCallbacks when quickstep starts
Bug: 73081875
Change-Id: Ieccba6ecb16553ed5211f277b49e9f2ed2d7c745
2018-02-07 14:50:08 -08:00
Sunny Goyal fa8a5ac615 Fixing swipe on nav-bar does not work on launcher when in multi-window mode
Change-Id: I0d2a15c14efc48455af1aaf829504fd3bb31c0a5
2018-02-07 13:30:13 -08:00
Sunny Goyal 94404921b3 Merge "Removing unnecessary view inflation" into ub-launcher3-master 2018-02-06 22:52:57 +00:00
Sunny Goyal ef3ae11014 Only initialize the animation control when gesture starts
Change-Id: Ic7fe373b826d3a11348f84671bf7bda618820546
2018-02-06 14:03:49 -08:00
TreeHugger Robot 365d1a4cb4 Merge "Fix bug where Cancel/Remove drop target text was not being updated." into ub-launcher3-master 2018-02-06 19:12:16 +00:00
Sunny Goyal ee047871eb Removing unnecessary view inflation
Using a predefined height for app icons, and for everything else,
inflating it on demand

Change-Id: I7520802f30d2111d63fe336b09f6264201cdea61
2018-02-06 11:00:09 -08:00
Jon Miranda df1ffb950a Fix bug where Cancel/Remove drop target text was not being updated.
Bug: 72644671
Change-Id: I8a042230b1a61b6ccd8a9c53bc09177f065351b0
2018-02-06 10:38:26 -08:00
Sunny Goyal af161fd20c Preserving the last state when going to overview.
> Resetting the state to NORMAL on every onStop so that the user
  never starts on the overview screen

Change-Id: If3c17693b7125a3969809e60891a2ab978fe83bc
2018-02-06 10:06:53 -08:00
Tony Mak a5e7040219 Add a close button at the top right hand corner of the blue card
FIX: 72804302

Change-Id: Iac7c369ead27c211c046f318c3b9588d73a594d4
2018-02-06 17:25:01 +00:00
TreeHugger Robot bd0beb9933 Merge "Cancel launcher app transition when changing states" into ub-launcher3-master 2018-02-06 02:59:03 +00:00
Tony dc76f8e856 Cancel launcher app transition when changing states
The app transition might change an object that the new
state depends on, causing an inconsistent state.

Bug: 72816542
Change-Id: Ia6dd52971b52be5589c88f4f6d93d06146fbadab
2018-02-05 18:48:24 -08:00
Tony Wickham c1103db25b Merge "Add notification count to content description for badged apps" into ub-launcher3-master 2018-02-06 02:38:10 +00:00
Vadim Tryshev 5ddd54169e Merge "Opening options popup on KeyEvent.KEYCODE_MENU." into ub-launcher3-master 2018-02-06 01:57:52 +00:00
Vadim Tryshev 646a0dd39b Opening options popup on KeyEvent.KEYCODE_MENU.
This fixes test LauncherJankTests#testWidgetsContainerFling which sends
this keycode as a part of opening a widget container.

Bug: 72967764
Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests:android.platform.systemui.tests.jank.LauncherJankTests#testWidgetsContainerFling
Change-Id: Ia10f0306712187a526a3e9041ec67af2e3cbef77
2018-02-05 17:44:55 -08:00
TreeHugger Robot 0ad5131d77 Merge "Removing support for app prediction from Launcher3" into ub-launcher3-master 2018-02-06 00:55:56 +00:00
Sunny Goyal 8b264568a1 Waiting for a small timeout for launcher draw, before performing the swipe gesture.
This allow for a better synchronized motion, in case launcher draw was fast enough

Change-Id: Ie59aa1e8a2ffa94f3640b4ea08a0c23eeabafb54
2018-02-05 10:39:29 -08:00
Tony Wickham 305e920048 Add notification count to content description for badged apps
Bug: 70389249
Change-Id: If7f43941d501ba807adbb33d489da3944c012e94
2018-02-05 10:08:52 -06:00
Sunny Goyal 85a7fe086b Some fixes for quickstep when configuration changes
> Creating the launcher animation after first draw, so that the UI is in correct state
> Using correct workspace size, when layout is not valid
> Snapping pagedView to correct page when page size changes
> Resoting to correct workspace page on rebind

Change-Id: I74e61a05aae3a3c4912d4c5c8eb4d5d036d9005a
2018-02-02 11:02:51 -08:00
Sunny Goyal fde5505d02 Handling configuration changes
> Adding a listener for device profile changes
> Updating various controllers instead of recreating them
> Clearing all-apps icon

Bug: 71709920
Change-Id: Ief7db199eb7494ebd8fb433198f333cd2e8e661d
2018-02-01 14:47:08 -08:00
Sunny Goyal c94cfc052c Merge "Initial changes for handling configuration changes dynamically" into ub-launcher3-master 2018-02-01 21:35:10 +00:00
TreeHugger Robot d0f20abec4 Merge "Fix a couple of issues with app close" into ub-launcher3-master 2018-02-01 18:18:53 +00:00
Jorim Jaggi fc0f6a5c5a Fix a couple of issues with app close
- Make sure to use center pivot point
- Use correct curve for alpha
- No need for the layer hack anymore because framework issue
was fixed.
- End X should be 480dp for a 411dp device, so we need to scale
it with 1.16

Test: Close app
Change-Id: Ib4587e324aeeb11921de87da7c389b2e148dc913
Fixes: 72691044
2018-02-01 19:07:33 +01:00
TreeHugger Robot ac0a506072 Merge "Ditch work profile orange and use the accent color instead" into ub-launcher3-master 2018-02-01 17:38:21 +00:00
TreeHugger Robot 6a22996244 Merge "Highlight the tab for the first time" into ub-launcher3-master 2018-02-01 17:28:56 +00:00
Tony Mak d6947d2729 Ditch work profile orange and use the accent color instead
FIXES: 72804074

Change-Id: If9dfd6eceb6b3d3365c32859d5cc13d6d49be1a0
2018-02-01 17:16:58 +00:00
Sunny Goyal f8d56fc8a1 Initial changes for handling configuration changes dynamically
Bug: 71709920
Change-Id: I88cf2229dea28d01c13a5a76d2290e91b07d095e
2018-01-31 15:20:30 -08:00
Sunny Goyal e75d9f1ec3 Preloading the LauncherModel in case launcher dies
Change-Id: Ibe529f31e96c645d45d51b9f3bf6c21b76b41254
2018-01-31 12:01:59 -08:00
TreeHugger Robot 1470e6bb33 Merge "Fix app closing transition in multi-window" into ub-launcher3-master 2018-01-31 17:19:15 +00:00
Jorim Jaggi 6674249107 Fix app closing transition in multi-window
Previously we attempted to disable the app closing transition
in multi-window. However, that didn't work because the registered
remote animation was still registered on the ActivityRecord, even
if the activity was restarted, leading to passing a null handler
into post, and then the animation never started.

Enable it in multi-window and also fix the transition.

Test: Enter multi-window, go home
Change-Id: I4d5d46688310b61365ba954fb41811efa29e41a5
Fixes: 72525431
2018-01-31 17:51:17 +01:00
Tony Wickham d5e5109e6f Merge "Fix some visual bugs" into ub-launcher3-master 2018-01-31 16:36:15 +00:00
Sunny Goyal b1d222e9a7 Removing support for app prediction from Launcher3
Derivative projects can extend the FloatingHeader to add support
to custom content in all-apps screen.

Change-Id: I4e29221a72e5a077a756713a6774cda7ecde8f1b
2018-01-30 20:53:11 -08:00
Winson Chung 1a341002fc Add code path for the recents animation using window transitions.
Test: Enable in settings, swipe up

Change-Id: I1053f9e519c2f612bd3db0b66cd16ad9a30bfeb4
2018-01-29 14:14:07 -08:00
Tony 12e9f34bd5 Fix some visual bugs
- Workspace was translating while swiping from overview to all apps
- VerticalSwipeController progress jumped a bit backwards when
  flinging because sign wasn't taken into account for velocity

Change-Id: Ife5e9d87ca9f0b3429dd9045c6569868a65eb0af
2018-01-26 20:59:16 -08:00
Sunny Goyal 7e2e67fd47 Adding isSeascape method to have a common place to orientation check
Change-Id: Ia61792b29ab0d1d74f76a8dfa53bbf968874dfaa
2018-01-26 13:47:32 -08:00
Mario Bertschler 2420a4e937 GradientView starting with 0 alpha of the gradient layer.
> We do not need hotseat protection of the gradient layer now that we
  are using the card UI for all apps. The gradient layer in collapsed
  state caused artifacts.

Bug: 67109038
Change-Id: Ia2b7da9d86729c211e49e2b87d28106077482566
2018-01-26 11:16:49 -08:00