Commit Graph

6372 Commits

Author SHA1 Message Date
Vadim Caen
a5306eadf9 Merge "Disable splash screen for launches from widget." into sc-dev am: 97aaa6e5ae am: 2d08ce736b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15685202

Change-Id: I38e187f55f2b093fbf90897716ebdfdb397fcf1d
2021-08-30 16:47:40 +00:00
Vadim Caen
2d08ce736b Merge "Disable splash screen for launches from widget." into sc-dev am: 97aaa6e5ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15685202

Change-Id: I820df5660b67e541def5449b99047e8a7f6be077
2021-08-30 16:35:59 +00:00
Vadim Caen
97aaa6e5ae Merge "Disable splash screen for launches from widget." into sc-dev 2021-08-30 15:56:26 +00:00
Vadim Caen
ee44c4dc1e Disable splash screen for launches from widget.
The transition from a widget to the splash screen icon feels
odd because of the difference in shapes. Disable for S and rework that
in T.

Test: Manually tested with clock and Calendar
Bug: 197504657
Change-Id: Ia375885af967d6ad282dcc7325ad905731c8734d
2021-08-27 19:17:03 +02:00
Bill Yi
155a13de9f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib8df9d449d6109c352a2e537cd425c716e2f017c
2021-08-27 05:37:03 +00:00
Lucas Dupin
3be13be63b Constrain scroll amount am: 6d7a006302
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15675922

Change-Id: I451a7ae7625aba4775ccae1a08abb26812d9344a
2021-08-25 18:24:48 +00:00
Lucas Dupin
6d7a006302 Constrain scroll amount
Test: scroll vertically and horizontally
Fixes: 196309367
Change-Id: Ibf16fb72cf95e29ed820d5f511e764a388c93bb0
Merged-In: Ibf16fb72cf95e29ed820d5f511e764a388c93bb0
(cherry picked from commit b259a896f5)
2021-08-25 16:45:20 +00:00
Alex Chau
495721aa68 Merge "Fix animation problem when swipeing up app to screen edge and release" into sc-qpr1-dev am: d688120ee1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15640810

Change-Id: I23f896fbfb500fa0e0518edee718dc7ab4f8c54b
2021-08-25 09:21:09 +00:00
Alex Chau
d688120ee1 Merge "Fix animation problem when swipeing up app to screen edge and release" into sc-qpr1-dev 2021-08-25 09:08:03 +00:00
Lucas Dupin
4b2878f3a8 Synchronize surface transaction am: 0a2076e8d3 am: def763740a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15669618

Change-Id: Ida296e0e004769f4837393f6722683b07c7804b3
2021-08-25 03:47:16 +00:00
Lucas Dupin
e3cf162169 Synchronize surface transaction am: 0a2076e8d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15669618

Change-Id: I494543d4183689bfcec9ed4e384be4ad3e660707
2021-08-25 03:35:43 +00:00
Lucas Dupin
def763740a Synchronize surface transaction am: 0a2076e8d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15669618

Change-Id: Ia8b9b012f5372cae3953e18c50c6dca031e3b848
2021-08-25 03:34:53 +00:00
Lucas Dupin
0a2076e8d3 Synchronize surface transaction
Until now the SurfaceControl transaction was being applied
asynchronously, which could lead to it being executed out of sync with
launcher drawing.
This became an issue at higher refresh rates, where frames are produced
at a much faster pace.

In order to fix this issue, we can use BLAST transactions, which are
annotated with a frame number.

Test: record video, go through it manually
Fixes: 194320152
Change-Id: I1636a1ded4f9dd84c54ba12239e3549b92ed7567
Merged-In: I1636a1ded4f9dd84c54ba12239e3549b92ed7567
2021-08-24 21:28:50 +00:00
Alex Chau
df2b9e14d6 Fix animation problem when swipeing up app to screen edge and release
- Consider scroll diff between currentPage and primary scroll when calculating adjacent page offset
- Removed setEnableFreeScroll call in onPrepareGestureAnimation that calls setCurrentPage and causes jumping

Fixes: 197012570
Fixes: 195740577
Test: Swipe up from app to end of screen, adjacent task should come from screen edge, and app should snap smoothly to position
Test: Swipe up from app, scroll immediately, free scroll should be enabled
Test: Swipe up immediately after quick switch, task thumbnails are loaded
Change-Id: Id88266634183dfcb18d5ba8a803883b7d6f50ab4
Merged-In: I1964b8c3bd82b22396340d2352833b2aee73a6fc
(cherry picked from commit 8ebd11af14)
2021-08-24 10:11:41 +00:00
Lucas Dupin
7025d20437 Act on scrim visibility am: a8382dc052 am: 5e670d29b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15655786

Change-Id: Ib5714e34e77a58e7733fb8bd32ed2688ad668935
2021-08-23 21:47:32 +00:00
Lucas Dupin
5e670d29b7 Act on scrim visibility am: a8382dc052
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15655786

Change-Id: Ia60393e3464a363b297ad6a3c9a3014247848e3b
2021-08-23 21:37:20 +00:00
Lucas Dupin
f52fb6f632 Act on scrim visibility am: a8382dc052
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15655786

Change-Id: I40626071bdaadd997cc1479118224847b78229d3
2021-08-23 21:34:23 +00:00
Lucas Dupin
a8382dc052 Act on scrim visibility
The scrim visibility drives whether the launcher window is opaque or
not. We should track it and apply the flag instead of trying to catch it
through other Launcher life cycles.

Fixes: 195365607
Bug: 196403152
Test: tap on home button while launching app from overview
Change-Id: I2a00b86b602b5dd12c901433b92adcf0170be15e
(cherry picked from commit e4a9469156)
2021-08-23 19:22:02 +00:00
TreeHugger Robot
7e5f1003bd Merge "New app animation specs." into sc-qpr1-dev am: 686d42a1d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587964

Change-Id: Id4f261c686f2cd9ad8748211bfc2aa1b99a6f210
2021-08-19 00:56:44 +00:00
TreeHugger Robot
686d42a1d4 Merge "New app animation specs." into sc-qpr1-dev 2021-08-19 00:45:05 +00:00
Lucas Dupin
608aa61a28 Add depth to -1 screen am: 482f983a7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15612785

Change-Id: I9ad3667fe8b7f82c464c890a574e64545d708afb
2021-08-18 21:40:29 +00:00
Jon Miranda
bda98de9f8 New app animation specs.
- New values and interpolators.

Bug: 173107751
Test: open apps from different parts of the home screen
Change-Id: I81bec0221aec9c04dac0bb3e926c879999699e57
2021-08-18 18:26:46 +00:00
Lucas Dupin
482f983a7b Add depth to -1 screen
Wallpaper will zoom out as you drag the overlay

Test: manually pull overlay
Fixes: 192502999
Change-Id: I9067b70d10497d4e16a5ef601161fbedfa9307e1
Merged-In: I9067b70d10497d4e16a5ef601161fbedfa9307e1
(cherry picked from commit 87d752062e)
2021-08-18 15:34:45 +00:00
Bill Yi
af65b6d3d2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I945a5fbf0a31fe983fe20c6f173d80e6d9423e26
2021-08-17 02:11:45 -07:00
Bill Yi
cea66b3a81 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1827e8d2469c9c7993b5b15ea5a964e1fa562dbb
2021-08-17 02:11:04 -07:00
TreeHugger Robot
b99fd2e490 Merge "Adjust all apps zoom level" into sc-dev am: 6b10f4649c am: 4b3c24d0d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15530106

Change-Id: Ie5210a9f9fdf4ccf30e3dd01d5d07549d9880508
2021-08-12 00:45:22 +00:00
TreeHugger Robot
3be0173b14 Merge "Adjust all apps zoom level" into sc-dev am: 6b10f4649c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15530106

Change-Id: Id2a24af3aed6fa4819a2fc46c8a305b06ff31d84
2021-08-12 00:31:19 +00:00
TreeHugger Robot
4b3c24d0d3 Merge "Adjust all apps zoom level" into sc-dev am: 6b10f4649c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15530106

Change-Id: Ic51ea9d199e6a072168365aeb7553203cd2c43c6
2021-08-12 00:29:10 +00:00
Thales Lima
b2206f3c71 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I4db182fc09187b88644c0b144048e35413d0335f
2021-08-11 18:29:21 +00:00
Lucas Dupin
3f6a4e6bf5 Adjust all apps zoom level
The All Apps scrim fades in early, covering part of the zoom animation.
We need to adjust the max zoom in order to make All Apps consistent with
Overview, -1, and Shade.

Test: pull up the all apps drawer
Fixes: 195992422
Change-Id: Ia7bbe17fe7f227dd0a16ba7d21b402cff57176f0
(cherry picked from commit f168bb7aaf)
2021-08-11 15:55:04 +00:00
Thales Lima
931bc2a38e navigation: don't run gesture animation if gestures are not enabled
Makes the animation when using 3 button navigation be closer to what we
have in non fallback mode, also fixing the problem when fallback recents
just started and don't have any views.

Fix 194487871
Test: manual with gestures, 2 button and 3 button nav

Change-Id: If3925d6bef1d14f51b86169d06607786972f5f1f
(cherry picked from commit 8d49c4bb29)
2021-08-11 10:26:22 +00:00
Tony Wickham
26abd0f7a9 Don't recreate touch controllers when ending gesture am: 0b3b2921c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: I889ef533eebca7eb091661df526cc604ccba206b
2021-08-11 04:54:54 +00:00
Tony Wickham
0b3b2921c3 Don't recreate touch controllers when ending gesture
Test: swipe up to overview from an app and swipe up to dismiss it during the transition
Bug: 189700453
Change-Id: I303696f90dbb236ea93e06d94a3c92d783850fa4
(cherry picked from commit 0e9ecaeea8)
2021-08-10 23:26:33 +00:00
Bill Yi
ff049aae0f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8da912b3e7ec23e63a5c1436773cd86b8cb8dffc
2021-08-04 22:14:26 +00:00
Tracy Zhou
6c262c5f94 [DO NOT MERGE] Disable live tile in split mode for S am: 145bd74749
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15331686

Change-Id: I65674551091fde62193325a3f5676c5becde7334
2021-08-03 22:02:31 +00:00
Tracy Zhou
145bd74749 [DO NOT MERGE] Disable live tile in split mode for S
Recall link: https://recall.googleplex.com/projects/debb8388-5e38-42c5-99ab-20bdfb92d25e/sessions/655af962-b4bd-4dc4-93aa-178852c0d701

Bug: 193991436
Test: enter split screen and swipe up
Change-Id: I7adffcdefb12d225db207542716a436f29df0377
2021-08-03 20:50:27 +00:00
Alex Chau
49f3a41c78 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-dev am: e20208e9d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15429930

Change-Id: I63897bebddbc836c4265bff67c2248c9d132fbe0
2021-07-30 18:01:28 +00:00
Alex Chau
fb5ae9060d Always treat FallbackRecentsView as visible if isInLiveTileMode is true
- activity.hasBeenResumed is no longer an accurate indicator after live tile has been introduced, indeed it's always false
- Return recentsView regardless if there is a runningTask as well

Bug: 194286330
Test: In fallback Recents with 3 button, tap overview button from home screen, then tap overview button again. Try combination with back and home button
Change-Id: Ib2775a11f5466abc433763f24192e7bfdcf191a2
(cherry picked from commit 455718e842)
2021-07-30 08:22:03 +00:00
Tracy Zhou
d95465cc59 Merge "Clear command queue of OverviewCommandHelper on home tap" into sc-dev am: dec3330a83
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15416225

Change-Id: I605ffc7cd56f9407ed4aeff55a50db8021f69612
2021-07-29 21:48:37 +00:00
Tracy Zhou
6842315605 Clear command queue of OverviewCommandHelper on home tap
Fixes: 194934483
Test: manual
Change-Id: Id83b341245793c38c305e6ada5581ac4e49527a7
Merged-In: Id83b341245793c38c305e6ada5581ac4e49527a7
2021-07-29 19:09:53 +00:00
Tracy Zhou
c94002600a Merge "Reset current task and dequeue overview commands when recents animation is cancelled" into sc-dev am: 024749a1e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15365516

Change-Id: I881b9d322e67699ecea9414b3db2f72d05e80c3b
2021-07-26 21:35:42 +00:00
Tracy Zhou
024749a1e0 Merge "Reset current task and dequeue overview commands when recents animation is cancelled" into sc-dev 2021-07-26 21:17:38 +00:00
Tracy Zhou
94e798bac1 Reset current task and dequeue overview commands when recents animation is cancelled
Fixes: 193925362
Test: manual
Change-Id: I792be003e5aabf34324075829d5381cba591892b
2021-07-26 12:17:01 -07:00
TreeHugger Robot
aa4c71efa0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-24 05:42:14 +00:00
Bill Yi
818238558a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I47acd077e560f94d070da5dd2c9b66ac07950e49
2021-07-24 03:05:08 +00:00
Sunny Goyal
cc0f183bb3 Merge "Fixing touch events ignored in some cases" into sc-dev am: e0e64b4851
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15362818

Change-Id: I2a01ed8b901306937bd3ccea185fddb3d45c43e2
2021-07-23 22:46:28 +00:00
Sunny Goyal
58e81e5da1 Fixing touch events ignored in some cases
Bug: 160218103
Test: Manual
Change-Id: Ifa71e742451acecd8979a6833a202c6189b4df52
2021-07-22 15:27:43 -07:00
Jason Chang
668fd1db2f Merge "Fix unable to swipe up to exit one-handed mode under 2 button navigation" into sc-dev am: 1b3f5d3883
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15311532

Change-Id: I45544393dec62e60baebdda57602f931e0919b3a
2021-07-22 10:01:58 +00:00
Jason Chang
1b3f5d3883 Merge "Fix unable to swipe up to exit one-handed mode under 2 button navigation" into sc-dev 2021-07-22 09:43:13 +00:00
Brian Isganitis
647f62657c Support overriding All Apps EDU animation on drag am: ec4a56a311
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15349065

Change-Id: Ibda4551f7ea83db1868458693190ef467a9ee683
2021-07-21 20:14:40 +00:00