Commit Graph

6741 Commits

Author SHA1 Message Date
Jon Miranda f6225830d5 Fix floating icon view positioning when in multiwindow mode.
The rect we passed in was in screen space to match the window, but needs to be
be local to launcher.

Also updated code/comments to make it more readable.

Note that the bounds of the targets being off is a separate issue b/153581126

Bug: 135195169
Change-Id: I4a8c0aa2f504bdf69342a927725cd440fb324a36
2020-04-28 21:29:51 -07:00
Vinit Nayak 54c9bc2e89 Merge "Enable edge back gesture on app launch" into ub-launcher3-rvc-dev am: e8269b3944
Change-Id: I677120f8ec5a9b23edc864d05417af982fe4abde
2020-04-29 00:30:32 +00:00
Becky Qiu 1f31915b5b [Overview Actions] Fix the animation duration issue.
Test: local
Bug: 155205932

Change-Id: Ic64762b0c7647a5c38d182c24a8cba4a354a9a83
2020-04-28 17:24:48 -07:00
Vinit Nayak e8269b3944 Merge "Enable edge back gesture on app launch" into ub-launcher3-rvc-dev 2020-04-29 00:18:22 +00:00
Sreyas 43cf2f7925 Sets icon invisible when alpha 0 (Cannot be tapped while TaskView modal)
Bug: 155177299
Change-Id: Ibedbc271837441915580577986c10fa3f0de0ae6
2020-04-28 17:05:16 -07:00
Vinit Nayak 3f3cc3e96e 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
2020-04-28 13:51:43 -07:00
Vinit Nayak 72c9da7647 Bias rotation to remain in existing rotation
Change-Id: I3457dc7946838eb7e0e68a879091941ce4674a7a
2020-04-28 12:53:07 -07:00
Vinit Nayak 48ea9e9502 Use appropriate start padding for clear all button
This still shows up a bit strange with
notched phones because we are using
RecentsView padding to give ClearAll the
right amount of spacing. However, we're only
adding padding to the left and right and not
the top/bottom.
That's captured here: b/154436527

Fixes: 150389833
Test: Tested landscape/portrait/seascape
launcher, w/ RTL as well

Change-Id: I49defd58048e609a1f7a821abb97374bcbb94b9f
2020-04-27 22:44:05 -07: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
Zak Cohen f1a51856c9 OverviewActions - Use launcher state to track modal state. am: a39544d562
Change-Id: Ib9e5358abd1d41e19f6186b84827729b2f345ccc
2020-04-28 00:58:26 +00:00
Zak Cohen a39544d562 OverviewActions - Use launcher state to track modal state.
Test:local

Change-Id: I44e25b95095b9a7aac4b4172c9c91fbfbf4d9ec7
2020-04-27 16:29:44 -07:00
Sreyas Rangaraju 0f12ee1138 Merge "Assistive chip: Adding background scrim for chip." into ub-launcher3-rvc-dev am: 2f04a9d271
Change-Id: I9c640522e057c4b24e4494356000a1d53105402e
2020-04-27 21:47:41 +00: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 5664beb222 Merge "Revert "Hide shelf in 2-Button Landscape"" into ub-launcher3-rvc-dev am: b219eeab48
Change-Id: I09da22dac83efec88ef6f3a1b3e2211f85c94dc8
2020-04-27 21:40:59 +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 fef1e5320b Merge "Fixing stagger animation not getting initialized properly" into ub-launcher3-rvc-dev am: 2ca219889b
Change-Id: I0fd5e16699f2bc4eddbb26df46ba0c2308648924
2020-04-27 20:37:30 +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 9e7bf5e50c Fixing corner radius not properly scaled in TaskViewSimulator am: fd0f8b0d1a
Change-Id: I9fa130d1878f1623be7f3a86a3412be84ce30ed7
2020-04-27 19:29:09 +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
Sunny Goyal fd0f8b0d1a Fixing corner radius not properly scaled in TaskViewSimulator
Bug: 155016285
Change-Id: Ib49e79cb30fbd448f86806a98557ec27718e3499
2020-04-27 18:03:09 +00:00
TreeHugger Robot fbb6d6a73a Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-25 21:03:52 +00: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 e9f31eadad Merge "Don't scale workspace when going to all apps if ENABLE_OVERVIEW_ACTIONS" into ub-launcher3-rvc-dev am: 1016bf410d
Change-Id: I952644e103cbaa75f67a7c4ae56e69fb1adc8ce0
2020-04-25 06:26:13 +00: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 83f83303e7 Merge "Use OverviewWithoutFocusInputConsumer for sharesheets over home" into ub-launcher3-rvc-dev am: 00dc219309
Change-Id: I6be06414144a55d66e73637af08b22d38d734f86
2020-04-25 06:15:40 +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 d00d5e182a Merge "Use DeviceProfile to check multiWindowMode" into ub-launcher3-rvc-dev am: 482435c01b
Change-Id: I877e06a3c2a22741ff1892bb5ed347c266de15c2
2020-04-25 02:23:42 +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 6da915902c Merge "Hide shelf in 2-Button Landscape" into ub-launcher3-rvc-dev am: ea0c4f57be
Change-Id: Ia6a4f5b007700d3e87487dffb4b8decda3480319
2020-04-25 01:32:01 +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 fd9155eb42 Merge "Creating default implementation for state lisnter method" into ub-launcher3-rvc-dev am: c6800e40e2
Change-Id: I1343f1730188e38fa39bb925080a045ee365f24f
2020-04-24 23:49:57 +00: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
TreeHugger Robot aa607f8414 Merge "Clear swipe region cache on nav mode switch" into ub-launcher3-rvc-dev am: 2450f524c6
Change-Id: Ifd365e63136d23552c069441719362603f7a7f7d
2020-04-24 23:48:44 +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
TreeHugger Robot 3176077614 Merge changes I38874b8b,I627ed7c6 into ub-launcher3-rvc-dev am: a29a69943a
Change-Id: I324727deb4c83401e9c1ed13d2c8b0add146ac7e
2020-04-24 20:15:50 +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
TreeHugger Robot b1b9f73f49 Merge "Detects nav bar gestures to progress through Home tutorial." into ub-launcher3-rvc-dev am: acafb3a287
Change-Id: Ifa261e649504c28b8b206b5b2cf7ab7b446bdb95
2020-04-24 19:11:18 +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 00e9da0a48 Merge "Rotate Overview Task Action Menu" into ub-launcher3-rvc-dev am: 49d3fe598c
Change-Id: I9ead961382546616e3d1907ce587022884447c35
2020-04-24 17:58:27 +00:00