Commit Graph

34630 Commits

Author SHA1 Message Date
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
Jon Miranda a439792978 Merge "Fix bug where BubbleTextView text fades in after long press." into ub-launcher3-qt-dev
am: 0edbac1132

Change-Id: Id9cf4ccc5ebc2f852cd494d2c1dbe5dd11827f93
2019-04-15 13:57:57 -07:00
TreeHugger Robot 0edbac1132 Merge "Fix bug where BubbleTextView text fades in after long press." into ub-launcher3-qt-dev 2019-04-15 20:39:59 +00:00
Jon Miranda 83cdca67ba Fix bug where BubbleTextView text fades in after long press.
Introduced by Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93.

Change-Id: I45e180dda09f03297530e5b5575b71f60c03fb5f
2019-04-15 13:28:26 -07:00
Vadim Tryshev 10fed33306 Merge "More diagnostics for dragging failures in the lab, now for OOP tests" into ub-launcher3-qt-dev
am: 5235a8867b

Change-Id: If6621708174461f8146bf55a409aba59007e9194
2019-04-15 12:37:17 -07:00
Vadim Tryshev 5235a8867b Merge "More diagnostics for dragging failures in the lab, now for OOP tests" into ub-launcher3-qt-dev 2019-04-15 19:29:41 +00:00
vadimt 7d90c653d6 More diagnostics for dragging failures in the lab, now for OOP tests
Bug: 129434166
Change-Id: I38b62ef74c0307f12ee85bbc05940400e9ba2302
2019-04-15 12:10:50 -07:00
Vadim Tryshev 275aa73e40 Merge "Better diags in ensureWorkspaceIsScrollable" into ub-launcher3-qt-dev
am: d4eed0b191

Change-Id: I7f4f8f07ae556820575a2451d4b038cefad4ae15
2019-04-15 12:02:46 -07:00
Tony Wickham 609c144d1c Merge "Don't scale/translate hotseat icons if they are visible in overview" into ub-launcher3-qt-dev
am: 799f5cfe53

Change-Id: I82fae4da8af984d78db7afdfe06f9826ba28ced1
2019-04-15 12:02:10 -07:00
Vadim Tryshev d4eed0b191 Merge "Better diags in ensureWorkspaceIsScrollable" into ub-launcher3-qt-dev 2019-04-15 18:56:01 +00:00
Tony Wickham 799f5cfe53 Merge "Don't scale/translate hotseat icons if they are visible in overview" into ub-launcher3-qt-dev 2019-04-15 18:37:29 +00:00
vadimt 79fa370389 Better diags in ensureWorkspaceIsScrollable
Bug: 128531133
Change-Id: Ie396e985ddcbe1bf131ed1ccd38431a555fb2014
2019-04-15 11:36:49 -07:00
Hyunyoung Song fbd77f6881 Fix all apps tab font.
Bug: 128857973

Change-Id: Ib3121194e591282cf9b8b96e6eb953da996d99cd
2019-04-15 18:11:34 +00:00
android-build-team Robot c8ecf73670 Snap for 5470312 from f0625fd93a to qt-release
Change-Id: Icc1ebb61c61977f31f363c07abc3fbf4a0398c56
2019-04-15 16:50:02 +00:00
android-build-team Robot 6b641785bf Snap for 5467653 from 6dfe2e2d15 to rvc-release
Change-Id: I6a9dc84416b4fc4978dd3e09538f027e0536d335
2019-04-13 23:09:12 +00:00
Hyunyoung Song 8b81068155 Merge "Change default icons for launcher [3/3]" into ub-launcher3-qt-dev
am: 60e3499bd4

Change-Id: I326488aed1267323d7c23e006c35b173db319571
2019-04-13 12:47:30 -07:00
TreeHugger Robot 60e3499bd4 Merge "Change default icons for launcher [3/3]" into ub-launcher3-qt-dev 2019-04-13 19:38:44 +00:00
Hyunyoung Song a19584d820 Change default icons for launcher [3/3]
Bug: 126738409
Bug: 129955150
Change-Id: I9daf5bd253dc72c99ab3a466766a4d30a95d0952
2019-04-13 00:51:33 -07:00
Vadim Tryshev e2483f6aae Merge "Gestures for zero-button mode" into ub-launcher3-qt-dev
am: b1303d57f7

Change-Id: I73383e917abd6477d8fb9a5c73aa964ef67e0791
2019-04-12 19:56:59 -07:00
Vadim Tryshev b1303d57f7 Merge "Gestures for zero-button mode" into ub-launcher3-qt-dev 2019-04-13 01:50:16 +00:00
vadimt 679b09d6bd Gestures for zero-button mode
Change-Id: If17ba764ede132694ccf0c56269df1a4117ec0f6
2019-04-12 18:19:38 -07:00
TreeHugger Robot 233342cc5f Merge "Update Go recents visibility based off adapter" into ub-launcher3-master 2019-04-13 00:21:36 +00:00