Commit Graph

24458 Commits

Author SHA1 Message Date
Tony Wickham 01e4070836 Standardize quickstep velocities
- Compute velocities as px/ms from VelocityTracker, instead of
  computing px/s and dividing by 1000 in various places
- Use quickstep_fling_threshold_speed in TriggerSwipeUpTouchTracker
  instead of ViewConfiguration#getScaledMinimumFlingVelocity
- Check MotionPauseDetector to determine whether a fling is
  sufficient to escape after pause, in additon to above threshold

Bug: 159089437
Change-Id: Ib0fae7804e1f008f3b6ab37d6c463352c224b0e4
2020-09-03 10:52:34 -07:00
Pinyao Ting 61e8ae1d9d Refrain from overwriting shortcut icon with default icon
Invert the condition check in IconCache so that, if a shortcut is
already using a non-default icon, do not replace it with default icon
again.

Bug: 162783875
Test: add weather shortcut, backup, restore, verify its icon is not
replaced by default droid icon

Change-Id: Idaf4ce4afa84d21f7192a2f4ce41a6f8daa8d3f2
2020-09-02 17:52:37 -07:00
Tony Wickham 3a89e42237 Don't detach recents from app window after motion pause
- Update MotionPauseListener to have 2 methods: the existing
  onMotionPauseChanged(isPaused) and onMotionPauseDetected()
  - onMotionPauseDetected is the default as most listeners only
    care about the first detected pause
  - AbsSwipeUpHandler still listens to pause changes, to help
    determine the end target at the end of the gesture

Bug: 159089437
Change-Id: I6d14f106cdcbe4e07d8dddba1cee909a963615b1
2020-09-02 17:28:49 -07:00
TreeHugger Robot 1aee9da5b8 Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-master 2020-09-02 22:12:34 +00:00
Sreyas ed5e43bd25 Make modal based UI changes in TaskView only if modalness changes.
Fixes issue with jittery displaying of suggestion chip, when entering overview.
Merging into master manually as automerger failed.
Tested:Manual

Change-Id: I8228c51b22d550cb8f0aa559f997060b571763f1
2020-09-02 11:18:01 -07:00
Sreyas 639505c23b Scale down chip proportional to TaskView becoming fullscreen.
Merging into ub-launcher3-master manually as automerger failed.

Tested: Manual
Change-Id: Ic8e6dd6ba83206d67ee27d4af9d56639e9e43ff9
2020-09-02 11:17:19 -07:00
TreeHugger Robot 017c93488c Merge "Intercept touch events from anywhere while all apps is closing" into ub-launcher3-master 2020-08-31 18:59:32 +00:00
TreeHugger Robot a10f459281 Merge "Migrate trace proto from nano to lite" into ub-launcher3-master 2020-08-31 18:34:54 +00:00
Winson Chung 486fad2c44 Migrate trace proto from nano to lite
Bug: 166630570

Change-Id: I0567d0f71dd78e5dab87bb5878417c99c9bbe306
2020-08-31 17:55:51 +00:00
Hyunyoung Song 5191fe9ba0 SearchTarget/SearchTargetEvent API
Bug: 165869384
Bug: 161599758

TL;DR;;
Also introduce some additional methods for
- all apps start and stop
- metrics logging

Change-Id: I666ff5a27a5f8befdb0db483ebb07344a90e96bc
2020-08-28 23:58:23 -07:00
TreeHugger Robot 767470e756 [automerger skipped] Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-rvc-qpr-dev am: 39c79929d1 -s ours
am skip reason: skipped by user sreyasr

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12481857

Change-Id: I444a3c0adbca1f176b42ce6bb8101cec1a7fa499
2020-08-28 23:57:01 +00:00
TreeHugger Robot 87d7908858 [automerger skipped] Merge "Scale down chip proportional to TaskView becoming fullscreen." into ub-launcher3-rvc-qpr-dev am: 7c39afeccc -s ours
am skip reason: skipped by user sreyasr

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12482122

Change-Id: Ie69cef4348a127e1968151f582ab9c538b829eab
2020-08-28 23:48:29 +00:00
Andy Wickham 1ca1d6343f Merge "Delays removal of extra screen when dropping an app." into ub-launcher3-master 2020-08-28 23:24:24 +00:00
TreeHugger Robot 39c79929d1 Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-rvc-qpr-dev 2020-08-28 23:08:11 +00:00
Sreyas 3aca92104f Make modal based UI changes in TaskView only if modalness changes.
Fixes issue with jittery displaying of suggestion chip, when entering overview.
Tested:Manual

Change-Id: Id37fcc67840402f1f66d7646cd562c282a19e312
2020-08-28 15:13:25 -07:00
TreeHugger Robot 7c39afeccc Merge "Scale down chip proportional to TaskView becoming fullscreen." into ub-launcher3-rvc-qpr-dev 2020-08-28 22:10:57 +00:00
TreeHugger Robot 9d7859eaf8 Merge "Implementing TouchDelegate to make full chip clickable." into ub-launcher3-master 2020-08-28 22:09:49 +00:00
Tony Wickham 734be27f9b Intercept touch events from anywhere while all apps is closing
Previously we did this only from a settled state, but now we also
do it during the transition to NORMAL.

Test: open all apps. Then, swipe down to home and back up to all
apps (from above the top of all apps).

Fixes: 159856104
Change-Id: Ib78c6a41d5fa17dd26a7df4e9069e0ada1f46dd0
2020-08-28 13:23:10 -07:00
Sreyas 90faa282f1 Implementing TouchDelegate to make full chip clickable.
Merging to ub-launcher3-master manually as automerger failed.
Tested: Manual

Change-Id: I1b8b43de7f04e1e13cb283c88f95a7c6fea84ea6
2020-08-28 12:10:55 -07:00
TreeHugger Robot c4f119fa85 [automerger skipped] Merge "Implementing TouchDelegate to make full chip clickable." into ub-launcher3-rvc-qpr-dev am: 7d7b471a6c -s ours
am skip reason: skipped by user sreyasr

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12470966

Change-Id: I66a7309b71ff5b193505652b759f9c0d7f2377d4
2020-08-28 19:03:41 +00:00
TreeHugger Robot 7d7b471a6c Merge "Implementing TouchDelegate to make full chip clickable." into ub-launcher3-rvc-qpr-dev 2020-08-28 17:53:54 +00:00
Sreyas 8a622edb78 Scale down chip proportional to TaskView becoming fullscreen.
Tested: Manual
Change-Id: I09c80b28cb01fb4873efffa8d4856b63af32493f
2020-08-28 10:20:05 -07:00
Sreyas fee2b25b9c Implementing TouchDelegate to make full chip clickable.
Bug: 166376182
Tested: Manual
Change-Id: I36b2559908fbf7ab6a863fb6e550a88b5374aefa
2020-08-28 10:10:30 -07:00
Andy Wickham 0f12b6013d Delays removal of extra screen when dropping an app.
This prevents a conflict between the scroll animation
and layout transition caused by removing the screen.
Since the extra screen is at the end of the workspace,
this most commonly (only?) causes issues in RTL, as
everything shifts to the left to fill the void of the
empty screen. See bug for example video of the issue.

With this change, the removal of the empty screen
happens after Launcher finishes transitioning back
to NORMAL state after dropping an icon/widget,
rather than in onDragEnd.

Note: There is a similar issue when placing a widget
in RTL (even if not switching screens), but it's not
made worse by this CL. Filed b/166531479.

Demo:
https://drive.google.com/file/d/1JTP81syjoBFe3_N2SOZHP5r5_RoCUWan/view?usp=sharing

Fixes: 163382092
Change-Id: I55ed5af8e1d80dcc0d1b6502c3c5b068dc6f8722
2020-08-27 17:26:02 -07:00
Sunny Goyal d4d2a73b67 Removing MultiHashMap and using java-streams instead
This makes it easier to choose different collection
implementations

Change-Id: Ic44e128b7478fcbbb1b546027685e058945af3f9
2020-08-27 15:26:18 -07:00
TreeHugger Robot 8e1b32d8e6 [automerger skipped] Merge "Fix a couple issues with overview to home transition" into ub-launcher3-rvc-qpr-dev am: 01a5b52b42 -s ours
am skip reason: Change-Id I437f0d18cad4c94feea25954aed3390acedcaed5 with SHA-1 b5493b90bc is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12437841

Change-Id: I3abb481f7651673da0c8d7d981ef46d48dc5ddeb
2020-08-26 22:08:04 +00:00
TreeHugger Robot 01a5b52b42 Merge "Fix a couple issues with overview to home transition" into ub-launcher3-rvc-qpr-dev 2020-08-26 21:54:08 +00:00
Samuel Fufa 200ee0a3be Merge "Handle AppSearch in plugin" into ub-launcher3-master 2020-08-26 20:32:13 +00:00
Samuel Fufa d6bacdcaf0 Handle AppSearch in plugin
+ Use AppSearchPipeline as a fallback if plugin times out

Bug: 166058597
Test: Manual
Change-Id: I96a38e412fd08f47475d2bc37bff34b86538ea12
2020-08-26 11:37:10 -07:00
TreeHugger Robot 4b84442178 Merge "Fix a couple issues with overview to home transition" into ub-launcher3-master 2020-08-26 18:27:20 +00:00
Vinit Nayak 8acdb23e64 Init rotationTouchHelper before NavModeChange listener
NavModeChange listener relies on rotationTouchHelper
to be non-null, but we instantiate rotationTouchHelper
after nav mode changes are fired off.

Fixes: 166303464
Change-Id: Iab92d0fe0ee842d907d7226dfd9ca599e7729675
2020-08-25 18:26:29 -07:00
Samuel Fufa a2d6a91be9 Support settings search in AllApps
[preview attached to  BR]

Bug: 166044087
Test: Manual
Change-Id: I997fc1c7e2e2c500f64858df9ccea4911e05d649
2020-08-25 21:40:38 +00:00
Hyunyoung Song f5911b9ba0 Fix Robolectric test breakage am: 77e29775a9 am: c6890f8869
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12442805

Change-Id: Id9fcbd568a485eae82af0429d574fa3ca080805d
2020-08-25 18:59:08 +00:00
Hyunyoung Song c6890f8869 Fix Robolectric test breakage am: 77e29775a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12442805

Change-Id: Ib8711dce31cc2bbb54776939a402440521b09c5f
2020-08-25 18:19:20 +00:00
Hyunyoung Song 516da83f62 Merge "Good riddance UserEventDispatcher [1/n]" into ub-launcher3-master 2020-08-25 09:25:55 +00:00
Hyunyoung Song 77e29775a9 Fix Robolectric test breakage
Bug: 166204002

Change-Id: I9c54c6230756dbb5fe8bdcb37ba51165d20bb815
2020-08-25 00:53:48 -07:00
Hyunyoung Song bb4e425616 Merge "Introduce transparency in all apps for OnDeviceSearch Bug: 165999272" into ub-launcher3-master 2020-08-25 07:35:54 +00:00
Hyunyoung Song 6b670d62df Good riddance UserEventDispatcher [1/n]
Bug: 165675920
Change-Id: I237ed4243e1724b3c370c5660673bb3966bf4811
2020-08-24 21:19:09 -07:00
Hyunyoung Song d9d340c879 Introduce transparency in all apps for OnDeviceSearch
Bug: 165999272

Change-Id: Ic4adf11d030328db47a5b0d1cd915b40902c12de
2020-08-24 20:32:02 -07:00
Tony Wickham 5c460a4663 Fix a couple issues with overview to home transition
- In fake portrait, fade out instead of translating offscreen, as
  the orientation doesn't map to where RecentsView actually lives
- From OverviewModalTaskState, start from > 1 scale, and use
  OverviewToHomeAnim (to ensure RecentsView doesn't fade out etc)
  - To keep parameter list sane, added RecentsParams to
    AnimatorControllerWithResistance which has the new startScale
    (set to current scale for modal state) and renames the old
    RecentsParams to RecentsResistanceParams. Sorry if that's
    confusing.

Bug: 144170434
Change-Id: Id36ebde440b398159cef50d95822627fca761527
Merged-In: I437f0d18cad4c94feea25954aed3390acedcaed5
2020-08-24 23:29:14 +00:00
Tony Wickham b5493b90bc Fix a couple issues with overview to home transition
- In fake portrait, fade out instead of translating offscreen, as
  the orientation doesn't map to where RecentsView actually lives
- From OverviewModalTaskState, start from > 1 scale, and use
  OverviewToHomeAnim (to ensure RecentsView doesn't fade out etc)
  - To keep parameter list sane, added RecentsParams to
    AnimatorControllerWithResistance which has the new startScale
    (set to current scale for modal state) and renames the old
    RecentsParams to RecentsResistanceParams. Sorry if that's
    confusing.

Bug: 144170434
Change-Id: I437f0d18cad4c94feea25954aed3390acedcaed5
2020-08-24 16:27:00 -07:00
TreeHugger Robot 3cc22175e9 Merge "Moving hotseat predictions to ModelDelegate" into ub-launcher3-master 2020-08-24 18:42:01 +00:00
Tracy Zhou 0734a3625d Merge "Get rid of grid options pref" into ub-launcher3-master 2020-08-24 17:40:01 +00:00
Tracy Zhou af8516254e Get rid of grid options pref
Missed this one last time

Test: N/A
Change-Id: I7ecfa72f2f358342ea9f8296cdc5d0187498426b
2020-08-21 23:44:20 -07:00
TreeHugger Robot ec50c06c99 Merge "Remove USER_EVENT_DISPATCHER feature flag Bug: 165675920" into ub-launcher3-master 2020-08-20 22:17:16 +00:00
TreeHugger Robot 3a624f8127 Merge "Prevent crash when display is already removed by the time we get displayAdded" into ub-launcher3-master 2020-08-20 17:12:05 +00:00
Sunny Goyal 43ad0c2e0b Prevent crash when display is already removed by the time we get displayAdded
Bug: 165165662
Change-Id: I5486b17a0a7235c922c4b5ebfa2cdc39303a8243
2020-08-20 09:33:28 -07:00
Sunny Goyal fb720b6fc6 Merge "Disabling notification dots for Launcher3Go" into ub-launcher3-master 2020-08-20 07:52:25 +00:00
TreeHugger Robot 8d65ab8c81 Merge "Hide IME when scrolling happens on all apps screen/scroller" into ub-launcher3-master 2020-08-20 05:36:37 +00:00
Hyunyoung Song f269542929 Remove USER_EVENT_DISPATCHER feature flag
Bug: 165675920

Change-Id: I56fc4833f7e83dc2babffdb1f7c17c7ba39558a8
2020-08-19 21:24:07 -07:00