Commit Graph

7502 Commits

Author SHA1 Message Date
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 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
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
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
Jonathan Miranda 3c24060b62 Merge "Refactor LauncherAppTransitionManager & polish for new app transitions." into ub-launcher3-master 2018-01-26 00:49:04 +00:00
TreeHugger Robot 2269258438 Merge "Temporary accesibility fix for opening all apps." into ub-launcher3-master 2018-01-25 23:38:11 +00:00
Mario Bertschler f34cadea3b Temporary accesibility fix for opening all apps.
Bug: 72500733
Change-Id: I68b5391810a223aaddc87295ab4647124bfa7874
2018-01-25 15:25:58 -08:00
Sunny Goyal 426345bfc4 Adding AppsStore for handling various app updates
Change-Id: Ia2242ce583576ace0924ef7142793ba37f4adcb9
2018-01-25 15:19:29 -08:00
Jon Miranda 54441f5df9 Refactor LauncherAppTransitionManager & polish for new app transitions.
* Add start delay when launcher resumes from all apps or landscape.
* Track the last app transition animator and cancel it before beginning a new one,
  otherwise the animators can conflict with each other.
  ie. Opening an app from all apps and then immediately pressing back to return to
      all apps.
* Use class overrride instead of UiFactory.

Bug: 70220260
Change-Id: I4755d45d820f9d551e443d6c4a148e8789c5bc57
2018-01-25 14:32:47 -08:00
Sunny Goyal ae2129e6ba Encoding the locale list in systemState so that icons and labels are updated properly
Bug: 70948387
Change-Id: Ia6348ff8c3e035b9d91bb14fb98c751f3f29ab89
2018-01-24 10:27:16 -08:00
Sunny Goyal cfb630f8de Using a single launcher layout for all configurations
Bug: 71709920
Change-Id: Ib23112bc1636007cb41e1919a855bbf5298884b6
2018-01-23 14:31:26 -08:00
TreeHugger Robot 285c190ba7 Merge "Removing unused app discovery support" into ub-launcher3-master 2018-01-23 22:26:52 +00:00
Jon Miranda 701b0f528e Use AllAppsTransitionController to animate the hotseat & scrim.
Bug: 70220260
Change-Id: I69bff4234c2fd0c76cb43cdd89342dcc04f2db40
2018-01-23 14:05:13 -08:00
Sunny Goyal 01ce755753 Removing unused app discovery support
Change-Id: I670be29851b232caa5c05624ae37ae5e92a8b65f
2018-01-23 13:53:03 -08:00
Jonathan Miranda b57721182c Merge "Launcher app close transition." into ub-launcher3-master 2018-01-23 17:39:28 +00:00
Jon Miranda 7853bdb8b5 Launcher app close transition.
Bug: 70220260

Change-Id: I0a3a6153dc1cba53546f792bf3ec037b1a5f6d90
2018-01-22 17:43:04 -08:00
Sunny Goyal 56ff06a8e8 Merge "Adding referrer information when launching market intent" into ub-launcher3-master 2018-01-23 00:29:29 +00:00
Sunny Goyal 67e75e20cc Adding referrer information when launching market intent
Bug: 72331091
Change-Id: I75ed764fd9964b58de97c287b8a26d24a0caa3fc
2018-01-22 15:14:23 -08:00
Jon Miranda 6586b54ded Fix crash for apps launched through non-BubbleTextView views.
* Same transition/animation, except we don't create a visual copy of the View.

Bug: 72314029
Bug: 70220260
Change-Id: I79898be1cae7160b5dc35cc1ea8ba3dc5b2db05c
2018-01-22 13:55:58 -08:00
Sunny Goyal 08af6b7984 Using state controller for moving the hotseat.
Using state controller ensures that when the state changes the UI is
properly updated based on the state properties.
This would prevent user getting stuck in an inconsistent UI

Bug: 72173796
Change-Id: I7690a94eed7c8a620479e4247d2b681a7374ce45
2018-01-22 10:13:41 -08:00
Sunny Goyal 41b36e0f22 Merge "Removing multi-state apha control for hotseat" into ub-launcher3-master 2018-01-19 23:25:42 +00:00
Sunny Goyal cd77ba0cdd Merge "Adding a horizontal popup when when workspace is longPressed" into ub-launcher3-master 2018-01-19 23:22:21 +00:00
Sunny Goyal 02424b20f3 Adding a horizontal popup when when workspace is longPressed
Change-Id: I5b3c48262c246bfe53e0010ca89c820f42503eef
2018-01-19 15:11:10 -08:00
Sunny Goyal 19d32b76dd Removing multi-state apha control for hotseat
Change-Id: I68ccbe96caa70921aefd18fc8ec9ad0638c3fab1
2018-01-19 14:26:44 -08:00
Sunny Goyal d8a3f3c251 Merge "Using same layout for drop-target bar in landscape and portrait" into ub-launcher3-master 2018-01-19 20:39:46 +00:00
Sunny Goyal d1b3f5cb38 Using same layout for drop-target bar in landscape and portrait
> Adding a tooltip on drag over when the text is not visible

Bug: 71709920
Change-Id: I1897a8dacd191fb1aeaec37f5d5c73c49517192a
2018-01-19 12:16:54 -08:00
Sunny Goyal 3b48472621 Fixing crash in TraceHelper when dragging same message across multiple threads
Change-Id: I976a8ae5ac1786d3984b1ff069a8a0c348f48e1c
2018-01-19 09:39:57 -08:00
TreeHugger Robot 6682318dc7 Merge "Don't show the discovery bounce when running test harness" into ub-launcher3-master 2018-01-19 00:31:17 +00:00
Adam Cohen 2e95ce8b8c Don't show the discovery bounce when running test harness
Change-Id: I03d31e5b8eaf5b61920c63fd455dab4b817a2466
2018-01-18 16:13:03 -08:00
TreeHugger Robot 04ff8b1ca6 Merge "Fix work tab is gone when leaving search mode" into ub-launcher3-master 2018-01-18 23:31:55 +00:00
Jonathan Miranda 288647874b Merge "Fallback to old implementation for opening apps in MW mode." into ub-launcher3-master 2018-01-18 23:30:26 +00:00
Jon Miranda 17940f053d Fallback to old implementation for opening apps in MW mode.
Bug: 70220260
Change-Id: I20aa61357c67e11806823cdfcfbdb76ef773554b
2018-01-18 15:13:37 -08:00
Sunny Goyal 234b92d4ec Merge "Reapplying state UI when the insets change" into ub-launcher3-master 2018-01-18 23:05:51 +00:00
Jon Miranda de43a71b06 Move scrim from DragLayer to LauncherRootView.
This change will make opening/closing animations a lot cleaner.

Change-Id: I7f8ae301a9a126023833e282d6654bebd09bb306
2018-01-18 14:15:45 -08:00
Sunny Goyal ce8809a588 Reapplying state UI when the insets change
Change-Id: Ief9588400f332b2c5b084a8a11c3102b2c20c4ea
2018-01-18 14:03:19 -08:00