Commit Graph

33301 Commits

Author SHA1 Message Date
Vadim Tryshev 2875b81664 Merge "Enabling continuous testing of all 3 modes of navigation" into ub-launcher3-qt-dev
am: ba0ff3665c

Change-Id: I582b798684e524c74f82c33fd175b6c8aca8b404
2019-04-18 12:47:56 -07:00
Vadim Tryshev ba0ff3665c Merge "Enabling continuous testing of all 3 modes of navigation" into ub-launcher3-qt-dev 2019-04-18 19:36:26 +00:00
vadimt dd0b3624a5 Enabling continuous testing of all 3 modes of navigation
This is likely going to result in flaky tests, but we'll benefit more
from having these tests than not.

We'll track all flakes that are going to pop up as bugs.

Change-Id: I73902a1bce8181d522376ff912e238ec84ef1eed
2019-04-18 12:16:01 -07:00
Vadim Tryshev 0859e561a8 Merge "Improving TAPL diags" into ub-launcher3-qt-dev
am: 8d513677ea

Change-Id: I3184b068dc147139a8d578f76807d26b8ea8c64d
2019-04-18 12:09:46 -07:00
Jon Miranda 876e1c60a8 Merge "Use ActivityOptions.makeBasic for App Info animation." into ub-launcher3-qt-dev
am: 6492eacaa9

Change-Id: Ic6c060e2b6c67c2633e176ee681f8cb129a8b46f
2019-04-18 12:01:46 -07:00
Vadim Tryshev 8d513677ea Merge "Improving TAPL diags" into ub-launcher3-qt-dev 2019-04-18 19:00:08 +00:00
vadimt 5243d0fff8 Improving TAPL diags
Change-Id: Ic84a65e26c4d05776d7e2acd592bcc227dc86a42
2019-04-18 11:45:20 -07:00
TreeHugger Robot 6492eacaa9 Merge "Use ActivityOptions.makeBasic for App Info animation." into ub-launcher3-qt-dev 2019-04-18 18:41:33 +00:00
Hyunyoung Song aa24159319 Merge "Add overlayable.xml to res" into ub-launcher3-qt-dev
am: 607969bb06

Change-Id: I96f6c474fb50051a4ab672d0dc19f48ac298a0b5
2019-04-18 10:43:28 -07:00
Jon Miranda cd17e6db95 Use ActivityOptions.makeBasic for App Info animation.
Bug: 130442915
Change-Id: I4ca416d7aa27fc8c52fe5fe36384fe5839e83e06
2019-04-18 10:40:31 -07:00
TreeHugger Robot 607969bb06 Merge "Add overlayable.xml to res" into ub-launcher3-qt-dev 2019-04-18 17:34:27 +00:00
Vadim Tryshev 07413dea24 Merge "Patching null dereference in AbstractFloatingView.getOpenView()" into ub-launcher3-qt-dev
am: 44a063a16f

Change-Id: Ic6c2e8c7ab79724e1c08ac6f75aef6c0092de2cf
2019-04-18 08:32:06 -07:00
Vadim Tryshev 44a063a16f Merge "Patching null dereference in AbstractFloatingView.getOpenView()" into ub-launcher3-qt-dev 2019-04-18 15:20:11 +00:00
vadimt 5a22ef7e61 Patching null dereference in AbstractFloatingView.getOpenView()
If there is a better solution, bug assignee, please proceed with it.

I'll land this immediately, as a lot of tests are broken.

Bug: 130739123
Change-Id: Iacdb9adbbf41f1f9de1390c3e7525ee0bd7beda6
2019-04-18 08:18:33 -07:00
Hyunyoung Song 520d9133a3 Add overlayable.xml to res
Bug: 128649657

Add list of drawable/ic_* that can be replaced using RRO via themepicker

Change-Id: I4d4c653b68e6cfa8d6e7449bd040e770cc77f93d
2019-04-18 13:53:06 +00:00
Govinda Wasserman 5ca34bacc8 Makes Launcher hide the all apps content and scrim on assistant visible. am: 917af755e4
am: 5f4e88a2b1

Change-Id: Ief718dd512b3f44e4d974333c75beb047638cba4
2019-04-18 06:12:45 -07:00
Govinda Wasserman 5f4e88a2b1 Makes Launcher hide the all apps content and scrim on assistant visible.
am: 917af755e4

Change-Id: Ie6e3bb024ddb37f63536644db563ab81d2fdb536
2019-04-18 06:08:40 -07:00
Jon Miranda d724acc25f Restore line to make original view invisible when hideOriginal is true.
am: 2d08ca47f6

Change-Id: I5d07b3f08a859eb0840a4deeb5b7293bdbd958e3
2019-04-17 23:03:51 -07:00
TreeHugger Robot 4973ee62c6 Merge "Fix NPE and make getTask return Optional" into ub-launcher3-master 2019-04-18 04:09:23 +00:00
Jon Miranda 2d08ca47f6 Restore line to make original view invisible when hideOriginal is true.
Accidentally removed the entire if statement in
Id4312d692b2a337aefe082e40faec344e76ecabb.

Change-Id: I14f87bc516a85986bbbd305f78e7b60f03a021ba
2019-04-17 18:27:35 -07:00
Jon Miranda c88047b50e Merge "Do not draw anying in FloatingIconView if we are not hiding the original icon" into ub-launcher3-qt-dev
am: 8f9830ec05

Change-Id: Id2591053a2af61670a4c994bd4915c14b0db16fd
2019-04-17 18:08:06 -07:00
TreeHugger Robot 8f9830ec05 Merge "Do not draw anying in FloatingIconView if we are not hiding the original icon" into ub-launcher3-qt-dev 2019-04-18 00:56:11 +00:00
Kevin 77f01524bd Fix NPE and make getTask return Optional
Fix an NPE when attempting to update the thumbnail in IconRecentsView.
If the task item is binding the loading UI, it has no task so the app
will crash, so we just need to ensure the task is actually present
first.

While we're here, also change the API to return an Optional<Task> and
make a tighter contract, making it harder to make this mistake in the
future.

Bug: 130746661
Fix: 130746661
Test: Go from app => overview on recents Go
Change-Id: I1402fcd2e58bdeb703c7dcc1b9dcf0d258808b3d
2019-04-17 14:48:21 -07:00
vadimt 6ca4b41b01 Merge "Fix a bug in bitwise logic" into ub-launcher3-qt-dev
am: 58ba7c10ec

Change-Id: Ia58fdb4c867ded99705b0466c7283ad6b778ea02
2019-04-17 14:03:39 -07:00
Jon Miranda 799c54a89a Do not draw anying in FloatingIconView if we are not hiding the original icon
Bug: 129328259
Change-Id: Id4312d692b2a337aefe082e40faec344e76ecabb
2019-04-17 13:52:08 -07:00
TreeHugger Robot 58ba7c10ec Merge "Fix a bug in bitwise logic" into ub-launcher3-qt-dev 2019-04-17 20:31:21 +00:00
vadimt f4d0139a43 Fix a bug in bitwise logic
For an example of the effect, see the bug.

Bug: 130415177
Change-Id: I59ed0c0c1a486653b3df0c601dd9af2a07e719f3
2019-04-17 13:12:04 -07:00
Govinda Wasserman 917af755e4 Makes Launcher hide the all apps content and scrim on assistant visible.
This hides the quick search bar and the suggested apps. Visibility is
unchanged when the all apps view is fully expanded.

Test: Tested locally
Change-Id: I6bc453b5ad89ca3d1280957e595bf2a3f074a72d
BUG:129755311
FIX:129755311
2019-04-17 14:28:15 -04:00
Kevin 60f21a8d3a Fix ViewTreeObserver crash on Recents Go
The view tree we originally attach the onGlobalLayout listener to may no
longer be alive when we get the callback as the view tree observer
merges when the view attaches to a view hierarchy, giving us an
exception. Instead, we should request the view tree observer again and
remove it from there.

Bug: 130740246
Fix: 130740246
Test: Manual test, no longer crashes
Change-Id: Idb982022e72db75b8e20fd5bea00655212dc0258
2019-04-17 11:16:22 -07:00
TreeHugger Robot 194c12aec7 Merge "Fix snapshots not updating on app => overview." into ub-launcher3-master 2019-04-17 00:49:53 +00:00
TreeHugger Robot b06a2a6ccc Merge "Fix views not being visible on Recents Go." into ub-launcher3-master 2019-04-17 00:44:44 +00:00
TreeHugger Robot eeb8cdd87a Merge "Smarter task laying out based off onMeasure" into ub-launcher3-master 2019-04-17 00:24:36 +00:00
Kevin c98f116b77 Smarter task laying out based off onMeasure
Previously laid out via calls to layoutParams. This isn't as optimized
as being baked into the measure + layout system and has the issue of
being less flexible. For example, if the device profile changes (e.g.
orientation change), we'd have to apply new layout params for all the
views. With this CL, we would only need to do this for top-level views
and the children will resolve themselves.

Bug: 114136250
Test: Check layout on marlin + walleye
Change-Id: Iddd503a8844bdde7724d3f804660da61719d5c90
2019-04-16 17:12:46 -07:00
Tony Wickham d8256e54e0 Merge "Don't special case swipe up animation if launcher was visible" into ub-launcher3-qt-dev
am: 3deb42f281

Change-Id: I9605fba44772a690c7ceae88962e227f9795081a
2019-04-16 14:50:24 -07:00
Tony Wickham 3deb42f281 Merge "Don't special case swipe up animation if launcher was visible" into ub-launcher3-qt-dev 2019-04-16 21:19:17 +00:00
Sunny Goyal 47dd148ffe Merge "ShortcutInfo renamed to WorkspaceItemInfo" into ub-launcher3-qt-dev
am: 762d1fc64f

Change-Id: I3e6333f7df25f9244a03dc011ea205e393f7c92b
2019-04-16 13:07:19 -07:00
vadimt 31747c8c1f Fixing icon dragging
am: b3e2cd3d88

Change-Id: I979006064939699e82bf3b4bdcd34b2073124497
2019-04-16 13:06:42 -07:00
TreeHugger Robot 762d1fc64f Merge "ShortcutInfo renamed to WorkspaceItemInfo" into ub-launcher3-qt-dev 2019-04-16 19:47:30 +00:00
vadimt b3e2cd3d88 Fixing icon dragging
Bug: 129434166
Change-Id: Id2e5509dbfbdb76ec868ca6117c2a0c0d5233404
2019-04-16 11:25:22 -07:00
Tony Wickham 1e24b6d7d5 Don't special case swipe up animation if launcher was visible
This case originally existed to handle transparent activities, but in
reality it was hit most often when swiping up during transitions, i.e.
before launcher was stopped. So now we do the same thing regardless of
whether launcher was "visible" at the start of the animation: go to the
background state immediately and create our transition from there. This
looks a little strange if the activity truly is transparent, because you
can see launcher jump to the background state, but ultimately leads to a
more consistent experience (and the state animation we used before
looked super weird anyway).

Test:
- Open Calculator from the home screen and immediately swipe up from nav
  bar (before animation finishes)
- Open Calculator from overview and immediately swipe up from nav bar
- Open Caluclator from all apps and immediately swipe up from nav bar
- Open Cortana (which has a translucent activity) from home screen,
  then swipe up.
- Open Cortana and quick switch from it
- Open Rube screenshot (dialog activity) from home screen and swipe up
- Open Rube screenshot from all apps and swipe up
- Open Rube screenshot from all apps and swipe up and back down (ensure
  launcher returns to all apps state)

Change-Id: I87bdbc6ddf41971fd327c807269c0bd94c97c95c
2019-04-16 10:56:59 -07:00
Kevin cce954f334 Fix views not being visible on Recents Go.
If we bind the loading task views but then on the tasks being loaded
realize there are no items, it's possible to animate from the empty
content view to the regular content view and then back. Currently, this
leads to updateContentView not being called properly the second time
since both views are still visible during the animation, so this CL
fixes that and cancels any on-going crossfade animations.

Bug: 114136250
Fixes: 130580680
Test: Remove last item from recents, go to recents again, empty view
shown
Change-Id: If1a4caab15f9b6d7ccd3abbc06f5866e06650db8
2019-04-16 10:29:54 -07:00
Kevin 025799ba9c Fix snapshots not updating on app => overview.
Previously we were only updating the model on snapshot update and not
the view itself, so the view would have an outdated snapshot if it
loaded everything before the data updated itself.

Bug: 114136250
Fixes: 130635650
Test: Go from app to overview, transitions properly with new snapshot
Change-Id: Ife9cae7a700a855788b5d25b05d78e562e1b27f0
2019-04-16 08:57:46 -07:00
TreeHugger Robot c4c800ff64 Merge "Change layout size to be dependent on device size" into ub-launcher3-master 2019-04-16 15:43:23 +00:00
Sunny Goyal 9589916418 ShortcutInfo renamed to WorkspaceItemInfo
Will get rid of ShortcutInfoCompat in a follow up cl

Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
2019-04-16 00:08:24 -07:00
Kevin c06522c826 Change layout size to be dependent on device size
This CL changes the layout sizes to be dependent on device height as
opposed to static values so that it works on different decides out of
the box.

Bug: 114136250
Test: Tested how layout looks on marlin_svelte and walleye
Change-Id: Ie000bc797d7dd2e38cd705d54f3e09c79e1a2176
2019-04-15 18:13:29 -07:00
Vadim Tryshev 260eaa05eb Merge "More improvements for wellbeing tests" into ub-launcher3-qt-dev
am: 1f457ae87f

Change-Id: I5cbbc96992638e7f56b785719054ed9ef981b1b2
2019-04-15 17:47:38 -07:00
Vadim Tryshev 1f457ae87f Merge "More improvements for wellbeing tests" into ub-launcher3-qt-dev 2019-04-16 00:30:44 +00:00
Hyunyoung Song eb36f1bbc4 Merge "Fix all apps tab font." into ub-launcher3-qt-dev
am: 139cd94820

Change-Id: I5dc414a788e7c945ff6b8270164767971fe9ea5c
2019-04-15 17:06:24 -07:00
TreeHugger Robot 139cd94820 Merge "Fix all apps tab font." into ub-launcher3-qt-dev 2019-04-15 23:57:43 +00:00
vadimt a42dc530ee More improvements for wellbeing tests
Change-Id: I3c5866660bfb96378cdc80c1afc70ec438fc9add
2019-04-15 16:50:12 -07:00