Commit Graph

26556 Commits

Author SHA1 Message Date
android-build-team Robot 1a9ccfdc8e Snap for 6474498 from e404de9187 to mainline-release
Change-Id: I27c62f8817b76c09cff6fabee12936a1fb17c693
2020-05-08 07:08:59 +00:00
Samuel Fufa e404de9187 Decouple feature flag and predictions am: 685e29b236
Change-Id: Idfdd4682719ad0cded1e9c5eb792b4d69e42a923
2020-05-07 18:32:36 +00:00
Samuel Fufa 685e29b236 Decouple feature flag and predictions
- Always default to true for ENABLE_HYBRID_HOTSEAT
- Allow launcher to show predictions anytime regardless of notification and on-boarding.
- Remove past beta specific plans
- Migrate if first screen can accommodate hotseat items otherwise show tip

Bug: 142753423
Test: Manual
Change-Id: I142cd95d779964822da07a96e5884a0c82813742
(cherry picked from commit 49d0f64a9d)
2020-05-06 22:42:00 +00:00
android-build-team Robot fb44746b48 Snap for 6465939 from aa2af22da8 to mainline-release
Change-Id: I58d562200c2178e0284c97ec45a3e2d72c2a1e43
2020-05-06 07:17:32 +00:00
Tony Wickham aa2af22da8 Fix continueComputingRecentsScrollIfNecessary() running infinitely
When continuing a gesture during quick switch, we cancel the
previous animation but don't invalidate it (since the gesture
isn't fully finished), and the new gesture handler calls
mRecentsView.setOnPageTransitionEndCallback(), so the previous
handler will never get STATE_RECENTS_SCROLLING_FINISHED. Thus,
continueComputingRecentsScrollIfNecessary() will never end.

To fix this, also check !mCanceled, since that is set when
continuing the gesture. Also use postOnAnimation() instead of
post() since that has better guarantees that the next
computation will wait for the next animation frame, rather
than whenever the message queue is available, which might
happen too frequently.

Test: quick switch from A to B and back to A before settling
on B, ensure we stop calling computeScroll().

Bug: 153589287
Change-Id: I6b4389ef2cf5a818438c7ae36d8807b3e41c8501
(cherry picked from commit 49b57e955c)
2020-05-05 17:14:20 +00:00
android-build-team Robot e797fc462c Snap for 6450912 from c8cb76afd0 to mainline-release
Change-Id: Ia72b44384f3678d8fdb4c4d9f8c1656c7ec28d76
2020-05-01 07:06:44 +00:00
Vinit Nayak c8cb76afd0 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: c0456bc0e2
Change-Id: I105d50619314ddf86ac5c504bcde131e659fd039
2020-04-30 05:04:21 +00:00
Vinit Nayak c0456bc0e2 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82
Change-Id: I7fa6b9aadfb4e5cbc437fbd429daabfac7d3b3ba
2020-04-30 04:52:44 +00:00
Vinit Nayak 8116388e82 Enable edge back gesture on app launch am: 709a52074d
Change-Id: I7e6d17d5b662d399f90356383c10994dc0863c7f
2020-04-30 04:40:50 +00:00
Vinit Nayak 709a52074d Enable edge back gesture on app launch
We don't clear state on EdgeBackGestureHandler
when we go to Recents or Home.
A more robust solution is in the works with
WM team and will probably be built on top of this.
Needs ag/11273364 to work.

Bug: 154580671
Test: Launch app directly in landscape,
should be able to swipe home on first try.

Change-Id: Ia4c685e16645d0237f278a611f6c61f252f3b79c
(cherry picked from commit 3f3cc3e96e)
2020-04-29 23:34:57 +00:00
Santiago Etchebehere 38276df530 Merging from ub-launcher3-rvc-dev @ build 6436292 am: 82902c0da6 am: afdae84544 am: 130cd74716
Change-Id: I52dc7811165818212edc0688e0e273b1069d9624
2020-04-29 06:40:39 +00:00
Santiago Etchebehere 130cd74716 Merging from ub-launcher3-rvc-dev @ build 6436292 am: 82902c0da6 am: afdae84544
Change-Id: Ibf6c66017f81d423907ed3312f62f82c898aefaa
2020-04-29 06:27:22 +00:00
Santiago Etchebehere afdae84544 Merging from ub-launcher3-rvc-dev @ build 6436292 am: 82902c0da6
Change-Id: I355c3c3f087518ea108533a91de5b15622f28bf0
2020-04-29 06:11:40 +00:00
android-build-team Robot a1eac1e9af Snap for 6437181 from 68fcf6fcf5 to mainline-release
Change-Id: I0adc63fe9849a2c41d1f40398a29460d85fab00e
2020-04-28 07:09:21 +00:00
Santiago Etchebehere 82902c0da6 Merging from ub-launcher3-rvc-dev @ build 6436292
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6436292.html

Change-Id: I28d6ec42b7a6a8e779abb306cc29c9801910206f
2020-04-27 22:40:31 -07:00
Sreyas Rangaraju 2f04a9d271 Merge "Assistive chip: Adding background scrim for chip." into ub-launcher3-rvc-dev 2020-04-27 21:43:49 +00:00
Vinit Nayak b219eeab48 Merge "Revert "Hide shelf in 2-Button Landscape"" into ub-launcher3-rvc-dev 2020-04-27 21:24:53 +00:00
Vinit Nayak 48b28027c0 Revert "Hide shelf in 2-Button Landscape"
This reverts commit 9b5795a579.

Reason for revert: b/155090034

Change-Id: If7decd54965a680d50e4474fb279ebe0002441bb
2020-04-27 20:48:49 +00:00
TreeHugger Robot 2ca219889b Merge "Fixing stagger animation not getting initialized properly" into ub-launcher3-rvc-dev 2020-04-27 20:17:16 +00:00
Sunny Goyal 017a8681c7 Fixing stagger animation not getting initialized properly
Bug: 155092237
Change-Id: I65ee6bddc0bf3bda24820d4680d71bab112b670c
2020-04-27 11:11:54 -07:00
Tony Wickham 68fcf6fcf5 Stop computing scroll if handler is invalidated am: 3d05148750 am: 97653b65c4 am: 6d4b92fd52
Change-Id: I6e06be97bb5f673d17874f95b0ba2b3cb20c5021
2020-04-27 18:07:49 +00:00
Sunny Goyal fd0f8b0d1a Fixing corner radius not properly scaled in TaskViewSimulator
Bug: 155016285
Change-Id: Ib49e79cb30fbd448f86806a98557ec27718e3499
2020-04-27 18:03:09 +00:00
Tony Wickham 6d4b92fd52 Stop computing scroll if handler is invalidated am: 3d05148750 am: 97653b65c4
Change-Id: Id4eecc6375827ce4725ff2ae705ea7908a15d867
2020-04-27 17:50:26 +00:00
Tony Wickham 97653b65c4 Stop computing scroll if handler is invalidated am: 3d05148750
Change-Id: Ib89b7f6f1468faa5d880146f0d1ed98b0f859785
2020-04-27 17:33:45 +00:00
TreeHugger Robot fbb6d6a73a Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-25 21:03:52 +00:00
TreeHugger Robot 436a45689c Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-25 15:01:07 +00:00
Bill Yi a74b8bc165 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I111f6bb5b9a330d175c4fe8c314cb7d8527c91de
2020-04-25 03:09:35 -07:00
Bill Yi 0d3d73a402 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9fc4e7de6693ab7fee98740c1c09e92dfbd82eda
2020-04-25 03:09:04 -07:00
TreeHugger Robot 1016bf410d Merge "Don't scale workspace when going to all apps if ENABLE_OVERVIEW_ACTIONS" into ub-launcher3-rvc-dev 2020-04-25 06:21:30 +00:00
Tony Wickham 00dc219309 Merge "Use OverviewWithoutFocusInputConsumer for sharesheets over home" into ub-launcher3-rvc-dev 2020-04-25 06:00:01 +00:00
Vinit Nayak 482435c01b Merge "Use DeviceProfile to check multiWindowMode" into ub-launcher3-rvc-dev 2020-04-25 02:11:50 +00:00
TreeHugger Robot ea0c4f57be Merge "Hide shelf in 2-Button Landscape" into ub-launcher3-rvc-dev 2020-04-25 01:14:10 +00:00
Vinit Nayak 11c6671d27 Use DeviceProfile to check multiWindowMode
Prevent extra IPC calls when checking for
multiWindowMode by using existing DeviceProfile.
This might be made irrelevant by b/142282126

Fixes: 149571513
Change-Id: Ia41cbfd56c67dd78f4d9c10bf1469d0d2a9e581d
2020-04-24 17:22:30 -07:00
TreeHugger Robot c6800e40e2 Merge "Creating default implementation for state lisnter method" into ub-launcher3-rvc-dev 2020-04-24 23:49:33 +00:00
Vinit Nayak 9b5795a579 Hide shelf in 2-Button Landscape
Disable overview rotation in 2-Button
until we can figure out the correct
transition/animation.
TODO: b/154665738

Fixes: 154181816
Test: Tested no button and 2 button,
overview actions worked as before.

Change-Id: Ib67906b11e24def870a39f57b5156e29db258fd7
2020-04-24 16:43:37 -07:00
TreeHugger Robot 2450f524c6 Merge "Clear swipe region cache on nav mode switch" into ub-launcher3-rvc-dev 2020-04-24 23:31:04 +00:00
Sreyas 6bb2be1526 Assistive chip: Adding background scrim for chip.
Change-Id: Ic6d0f0e0809c0c4acad4bb31c0e005d653cd0ae3
Bug: 153372670
2020-04-24 23:12:31 +00:00
Sunny Goyal aeec80ddbb Creating default implementation for state lisnter method
> The transition start is used rarely

Change-Id: I0d33f0f6372eb4ef89bfbb66968612693b7c6033
2020-04-24 15:41:29 -07:00
Vinit Nayak dcec265f0d Clear swipe region cache on nav mode switch
Fixes: 154955192, 150958400
Test: Switched from gesture nav to 3 button,
was no longer able to swipe up

Change-Id: Icc7b27eb7bd1eb5ddf25d7e7c3464a77a3a88f24
2020-04-24 15:05:17 -07:00
Tony Wickham 3d05148750 Stop computing scroll if handler is invalidated
Bug: 153589287
Change-Id: I0282ec82fe4ae1f74a0f4342471ffd53f43095d7
(cherry picked from commit 9df3f0cebf)
2020-04-24 21:42:22 +00:00
Tony Wickham bf2f066fff Use OverviewWithoutFocusInputConsumer for sharesheets over home
Test:
- start sharesheet from overview action, swipe up
- start sharesheet after taking screenshot on home, swipe up
- start sharesheet from an app, e.g. Chrome
The first two use OWFIC, last one uses OtherActivityInputConsumer
as normal.

Bug: 153673244
Change-Id: I7d7887e1f6818346ada75776ec63b43aaf3708f1
2020-04-24 15:01:32 -05:00
TreeHugger Robot a29a69943a Merge changes I38874b8b,I627ed7c6 into ub-launcher3-rvc-dev
* changes:
  Adds ripple effect for successful Back gestures in tutorial.
  Adds feedback to Home and Back tutorials.
2020-04-24 19:58:48 +00:00
Tracy Zhou 879d3ade68 Merge changes from topic "grid-size-migration" into ub-launcher3-rvc-dev
* changes:
  fix GridBackupTableTest in comply with grid size migration
  Turn on V2 migration algorithm feature flag
2020-04-24 19:26:44 +00:00
TreeHugger Robot acafb3a287 Merge "Detects nav bar gestures to progress through Home tutorial." into ub-launcher3-rvc-dev 2020-04-24 18:58:30 +00:00
Andy Wickham e992fab187 Adds ripple effect for successful Back gestures in tutorial.
Emanates from where the gesture was started.

Demo: https://drive.google.com/open?id=1oaXOSUiZP6Hi7J6W4H2NIFVVu0tQfKWm
Bug: 148542211
Change-Id: I38874b8b731864cbfdf963a5e44a59c8c3d30c51
2020-04-24 18:16:43 +00:00
Andy Wickham 64a91132c5 Adds feedback to Home and Back tutorials.
Back feedback:
 - Too far from edge of screen
 - Cancelled (reversed gesture, swiped upwards, etc.)
 - Inside nav bar region
 - Demo: https://drive.google.com/open?id=1pc_hr7i-iZmgF37CN8oijPjhOvvsJoEG

Home feedback:
 - Too far from edge of screen
 - Paused too long (Overview detected)
 - Swiped sideways instead of up
 - Demo: https://drive.google.com/open?id=1NGYAlqV2wJtM2DOJ1pZM-r8N1SYVtMos

Bug: 148542211
Test: Manual
Change-Id: I627ed7c6e9b005d35794e4ae568529b5613cbf70
2020-04-24 18:15:23 +00:00
Andy Wickham 6b6287f414 Detects nav bar gestures to progress through Home tutorial.
Home gesture also exits Back and Home tutorials on the
completion screens (as does back gesture).

Test: Manually verified Back and Home tutorial flows.
Bug: 148542211
Change-Id: I8026745e875e9ccb8cfd60bc438213b2d896254d
2020-04-24 18:13:05 +00:00
Vinit Nayak 49d3fe598c Merge "Rotate Overview Task Action Menu" into ub-launcher3-rvc-dev 2020-04-24 17:48:01 +00:00
TreeHugger Robot 7e0a1ac606 Merge "Fix AlwaysOnTop stack may covered by RemoteAnimation" into ub-launcher3-rvc-dev 2020-04-24 15:06:28 +00:00
android-build-team Robot e085ff1853 Snap for 6425864 from 953ebebdb3 to mainline-release
Change-Id: I8a7c9edfb955bbfe6173a0c4738ba06a4e4aec4d
2020-04-24 07:10:07 +00:00