Commit Graph

6391 Commits

Author SHA1 Message Date
Bob Badour
596ebbc9fb Fix licenses and license texts.
Entire project is 1p.

Bug: 210912771

Test: m nothing

Change-Id: I1d76cab983a7d1f9078c0e2f1252f5409692f300
Merged-in: Id941d93786882aca78f214ac692433a353b84ed3
Merged-in: I1d76cab983a7d1f9078c0e2f1252f5409692f300
2022-02-02 03:02:50 +00:00
Bill Yi
bb956f5d16 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I43930759be42abba1707fde580baf01938955099
2022-01-10 14:48:40 +00:00
Vadim Tryshev
9a6a47e351 Revert "Temporarily disable Launcher3 tests affected by fling changes"
This reverts commit bc4dc49c6c.

Reason for revert: RecyclerView bug is fixed

Change-Id: Ia2a677f3a3987751349bad951ff136b2d55f439f
Merged-In: Ia2a677f3a3987751349bad951ff136b2d55f439f
Test: presubmit
Bug: 197802324
(cherry picked from commit 8b4a6ee65b)
2021-12-15 14:38:04 -08:00
Vinit Nayak
ddd5a6ec3c Show all TaskViews when doing seamless overview rotation am: 6434f8eae5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15838849

Change-Id: Ia3c470af6bcd42d20e692589ddd9b52c54d18199
2021-09-15 23:39:20 +00:00
Vinit Nayak
6434f8eae5 Show all TaskViews when doing seamless overview rotation
* If user is scrolling and rotates overview in fake
landscape, we wouldn't change the alpha to show if it
was hidden previously.
Now we only skip changing the alpha if it's already visible.

Bug: 194715506
Test: Scroll overview in fake landscape and rotate.
No more invisible task.

Change-Id: Idb519125fbb5ec7be33e0d7b6dd313fb4df684db
2021-09-15 19:17:54 +00:00
Colin Cross
9b17656ba1 Merge changes from topic "androidx_drop-sc-dev-plus-aosp" into sc-dev-plus-aosp am: af52aea9a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15689632

Change-Id: Ibeb279183863d166ba52922437e0a7b73d5bb124
2021-09-09 21:57:04 +00:00
Colin Cross
af52aea9a3 Merge changes from topic "androidx_drop-sc-dev-plus-aosp" into sc-dev-plus-aosp
* changes:
  Temporarily disable Launcher3 tests affected by fling changes
  Disable eager initialization of Jetpack libraries
2021-09-09 21:22:24 +00:00
Samuel Fufa
a19a807888 Merge "Remove HotseatEduActivity from AOSP" into sc-qpr1-dev am: b5a33b2d34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15748897

Change-Id: Ib6fe3e66017c71f02487b08d6e49153a968e657d
2021-09-07 22:11:44 +00:00
Samuel Fufa
b5a33b2d34 Merge "Remove HotseatEduActivity from AOSP" into sc-qpr1-dev 2021-09-07 21:55:23 +00:00
Alex Chau
24a0615192 Merge "Only call setCurrentPage in applyLoadPlan if mCurrentPage is outdated" into sc-dev am: 464fc41df7 am: 676892da5a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15742147

Change-Id: Ie6638945a9d1ffc37b59ae6ec695a748065aff72
2021-09-07 17:58:40 +00:00
Alex Chau
32d872b840 Merge "Only call setCurrentPage in applyLoadPlan if mCurrentPage is outdated" into sc-dev am: 464fc41df7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15742147

Change-Id: I13e5176c8f53e176d8e94f418828452019deb8ff
2021-09-07 17:44:44 +00:00
Alex Chau
676892da5a Merge "Only call setCurrentPage in applyLoadPlan if mCurrentPage is outdated" into sc-dev am: 464fc41df7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15742147

Change-Id: I8cdd82482645c0d0f7c710e5a519a4e5a8f25492
2021-09-07 17:43:46 +00:00
Tony Wickham
eaca6fd847 Call onUserUnlocked() before adding callbacks am: 5a36b919b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15756866

Change-Id: I6877f73522a00f377f4fd8a724423021b969b0cb
2021-09-04 03:13:40 +00:00
Tony Wickham
5a36b919b5 Call onUserUnlocked() before adding callbacks
This gives us a chance to initialize things in onUserUnlocked() if we're already unlocked, before doing any other logic that might use those variables.

Test: None (unable to reproduce)
Fixes: 184773649
Change-Id: I72ed91ae6202ec816f9bdceb4d9fd03b9a002816
2021-09-03 22:07:18 +00:00
y
ac68842059 Remove HotseatEduActivity from AOSP
Bug: 191882450
Test: manual
Change-Id: Ic60ef6fec6c3d8162cb3d11b0ed3c9f89f6b5704
2021-09-02 18:18:59 +00:00
Alex Chau
dacb37c143 Only call setCurrentPage in applyLoadPlan if mCurrentPage is outdated
- Apply the same for all 3 setCurrentPage cases as they can all causes page jumping

Bug: 197493120
Test: manual
Change-Id: I5f7013ce3ce4d6fe84c67123618c3bebeeffc43a
Merged-In: I5f7013ce3ce4d6fe84c67123618c3bebeeffc43a
2021-09-02 16:06:44 +00:00
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
84ec20af98 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: Ie2fcf73aaa402706eb369f41c0326c3d641974d5
2021-08-30 16:37:31 +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
268fed7bcc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I432b16f415344cedf760195ccdc303909c67724b
2021-08-27 05:37:36 +00: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
Alan Viverette
ca34b4d571 Temporarily disable Launcher3 tests affected by fling changes
Bug: 197802324
Test: TaplTestsLauncher3
Change-Id: I3958bd9fb5521d09fa7cae642128b9f5e11b8e2e
Merged-In: I3958bd9fb5521d09fa7cae642128b9f5e11b8e2e
(cherry picked from commit bc4dc49c6c)
2021-08-26 12:38:10 -07: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