Commit Graph

13735 Commits

Author SHA1 Message Date
TreeHugger Robot 64a826fa16 Merge "Do not reload launcher when changing active display" into sc-v2-dev 2021-08-27 15:50:56 +00:00
Jerry Chang 09b40241fc Always refresh device profile when multi window mode changed
Launcher monitors multi-window mode changed and updates device profile
through configuration chagned callback. It's possible that a new
configuration contains multi-window mode changed but without screen
size size change that across screen layout qualifier. Client apps might
not even receive onConfingurationChagned.

Updates Launcher to monitor multi-window mode changed through
onMultiWindowModeChanged to make sure it always refreshes device profile
that matches with the latest mulati-window mode.

Fix: 197835119
Test: manual check the repo steps.
Change-Id: Ie99045a1fc8493ff37645b95e7ccd9d15478d862
2021-08-27 14:56:24 +08:00
Andy Wickham fe6fabaefe Enables Taskbar Edu by default.
Bug: 180605356
Test: Manual
Change-Id: I42fbdabf1e78e92e46a0d8e60a24dd94f499abbe
2021-08-26 14:55:04 -10:00
Hyunyoung Song c8e52e1039 All apps memory leak fix / unregister data observer am: 6e72c8bbba am: ee23f60dcc am: 22585be55f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15687067

Change-Id: If8704813ecebff06656f86c6b586d954087cb507
2021-08-27 00:51:18 +00:00
Hyunyoung Song 22585be55f All apps memory leak fix / unregister data observer am: 6e72c8bbba am: ee23f60dcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15687067

Change-Id: Ia2114092a86ed7cdbaab6d4a1d6b830329794158
2021-08-27 00:39:57 +00:00
Hyunyoung Song eaa208bb11 All apps memory leak fix / unregister data observer am: 6e72c8bbba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15687067

Change-Id: I16c9cfc4aec2fa36e1fe465e0093eba1b7b475bf
2021-08-27 00:27:28 +00:00
Sunny Goyal 6e6f79933e Do not reload launcher when changing active display
> Updating IDP to use fixed bitmap sizes, so that the cache
  stays valid
> Caching last known windowMetrices for non-active displays and
  using estimation only when the cache is not available
> Only reloading model if IDP change could have affected the model
> Remove unnecessary listeners from IDP which are already controlled by
  model lifecycle

Bug: 191657065
Test: Manual
Change-Id: Ia8e6dfafd0977e62aa3fcf367ad79f7a49b2df51
2021-08-26 15:55:21 -07:00
Hyunyoung Song 6e72c8bbba All apps memory leak fix / unregister data observer
Bug: 197702957

Test: adb shell dumpsys meminfo com.google.android.apps.nexuslauncher, ahat

Change-Id: Ia5732cced959e4a199d9c2b59f1f3941a2e23552
2021-08-26 15:18:47 -07:00
Android Build Prod User 1021d42bb9 Merge changes Ib2bc8419,Ia41cb0e3,I43bfbc41 into sc-v2-dev am: 2d5a8dc847 am: f08ff393fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15677716

Change-Id: I98a6730fb4c327fbaf244a2e0713c65a9c1cd6cc
2021-08-26 22:14:50 +00:00
Android Build Prod User 2d5a8dc847 Merge changes Ib2bc8419,Ia41cb0e3,I43bfbc41 into sc-v2-dev
* changes:
  Animate PredictedAppIcon when its icon changes
  Add "wave" animation when entering taskbar edu
  Add slot machine animation for PredictedAppIcon
2021-08-26 21:48:07 +00:00
Android Build Prod User f445d05052 Merge "Add Split button in OverviewActions" into sc-v2-dev am: b862d2c30f am: 1f41b44e14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587782

Change-Id: I8c902ee15eef2361b4e1b122edb6b74e53b2938d
2021-08-26 20:34:06 +00:00
Tony Wickham 175d152f76 Animate PredictedAppIcon when its icon changes
Reuses the slot machine animation to slide in the new icon. Additionally, staggers based on other icons changing before it.

Test: open apps, watch predictions change
Bug: 197780290
Change-Id: Ib2bc84193a9e350c915dd3486b6c98c6c88d3f83
2021-08-26 13:00:51 -07:00
Vinit Nayak 6174106f68 Add Split button in OverviewActions
Shows up only for large screen devices, not phones.
Tested for NexusLauncher, general 3P launcher support
needed for staged split (TODO b/195607777)

Bug: 195423591
Change-Id: I4d455769b17637174b590c640516b9fbb6352c3d
2021-08-26 11:49:38 -07:00
András Klöczl bc1c1ef47d Merge "Two panel home empty page removing logic change" into sc-v2-dev am: 701c76013c am: d26ecd63e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15601176

Change-Id: I78e8e9ca5580273f645ea5c8aa096a308b1cb610
2021-08-26 11:24:17 +00:00
András Klöczl 701c76013c Merge "Two panel home empty page removing logic change" into sc-v2-dev 2021-08-26 11:09:05 +00:00
Andras Kloczl 8c574de97f Two panel home empty page removing logic change
- Don't remove a single page if it's empty, only if both pages are empty.
- Add back empty pages after they were removed while the phone
  was on single panel home.
- On two panel home don't add new workspace items onto the second screen

Test: manual
Bug: 196376162
Change-Id: I4c54ffa3b359a236deb3ab67adb54111e77ec896
2021-08-26 12:06:50 +01:00
Vinit Nayak ced9b107f4 Merge "Fix public variables to not have 'm' prefix" into sc-v2-dev am: f1aa726e9f am: 6c3530c6d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15675535

Change-Id: If0b071648cc0748d1c119400469e8017fb7e9f8b
2021-08-26 00:35:28 +00:00
Vinit Nayak f1aa726e9f Merge "Fix public variables to not have 'm' prefix" into sc-v2-dev 2021-08-26 00:07:45 +00:00
Android Build Prod User 736c15be51 Merge changes I54e39cc5,Iec62abae into sc-v2-dev am: 14a7d63c23 am: dec80427e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15671418

Change-Id: Ie1370d87b4a2d7d3e4286a3c15133038e49caad7
2021-08-25 21:01:02 +00:00
Android Build Prod User 478ba7e93c Merge "Add feature flag to control two panel home in portrait" into sc-v2-dev am: 543bf45c9b am: 574f72607e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15659589

Change-Id: I0aaae6bc060cf2070304893f9be03c063e6448e8
2021-08-25 20:34:57 +00:00
Android Build Prod User 14a7d63c23 Merge changes I54e39cc5,Iec62abae into sc-v2-dev
* changes:
  Set thumbnails for GroupedTaskView based on split layout bounds
  Implement swipe gesture for staged split in landscape
2021-08-25 20:30:43 +00:00
Android Build Prod User 543bf45c9b Merge "Add feature flag to control two panel home in portrait" into sc-v2-dev 2021-08-25 20:04:40 +00:00
Vinit Nayak aa11976cc5 Fix public variables to not have 'm' prefix
Bug: 181704764
Change-Id: I89e43ce6cc74119514c8124e7cc61b11dc475f58
2021-08-25 11:59:43 -07:00
Vinit Nayak c35507dc29 Set thumbnails for GroupedTaskView based on split layout bounds
Bug: 181704764
Test: Go to stage split in landscape w/
home rotation on/off, swipe up.
Thumbnails aren't perfectly overlaid, polish needed

Change-Id: I54e39cc5a18f527e80a664d60aca72dfd706ebdc
2021-08-25 11:59:00 -07:00
Thales Lima efd15ca87b Merge "workspace: get the correct page when setting paddings" into sc-v2-dev am: 653ae0a524 am: 46eaebba86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15640815

Change-Id: I652ac2aa0b8484e129e186d3576dfb30eb5d2eba
2021-08-25 12:33:00 +00:00
Alex Chau 4935404399 Return mSynchronouslyBoundPages as getPagesToBindSynchronously between onInitialBindCompleteand finishBindingItems
- Otherwise it'll return wrong currentPage value, as currentPage aren't updated until finishBindingItems
- There is still problem that wallpaper jumps to page 0 and then to the desired page: https://drive.google.com/file/d/132Sq5oRZKRclhdh1Ls1RaHNEVXJQcrxC/view?usp=sharing&resourcekey=0-l2N9NWtZ8FqfaVT0bVGVqw

Bug: 191657065
Test: manual
Change-Id: I7ec167b617a8f59865e959d9dd677256b1ab4ef9
2021-08-25 13:21:58 +01:00
Thales Lima 653ae0a524 Merge "workspace: get the correct page when setting paddings" into sc-v2-dev 2021-08-25 11:54:13 +00:00
Alex Chau b1c36ce938 Add feature flag to control two panel home in portrait
Bug: 197723099
Test: manual
Change-Id: I20d7751e09053dc90c495f398334431f390f64bf
2021-08-25 11:54:08 +01:00
Thales Lima 41f33c3cfd workspace: get the correct page when setting paddings
When adding a new page to the workspace, mWorkspaceScreens doesn't
necessarily keeps the order. We should use the mScreenOrder field to get
 the correct index of pages.

Fixes: 197198491
Test: drag an app from first page and paddings should be correct
Change-Id: I4f79c164391348b53b71a87d5d49cfc4d3d35e5a
2021-08-25 11:16:13 +01:00
Vinit Nayak 8b78c138d4 Implement swipe gesture for staged split in landscape
* Maintain task split percentages when swiping up.
* Split percentages not maintained in GroupedTaskView, however.
That is a TODO.

Bug: 181704764, 181705607
Test: Swiped up in landscape with home rotation on/off.
Portrait still works.

Change-Id: Iec62abae34f6ccadf98e2afdc9409cf3160f8223
2021-08-24 17:32:47 -07:00
Alex Chau fb77ba6167 Merge "Revert "Migrating all model tests to Instrumentation tests"" into sc-v2-dev am: 204e749f06 am: 4ad2d769d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15667342

Change-Id: I9d9a9f2669fbe945df4800812f75f025e9c7626d
2021-08-24 17:55:22 +00:00
Alex Chau 204e749f06 Merge "Revert "Migrating all model tests to Instrumentation tests"" into sc-v2-dev 2021-08-24 17:29:06 +00:00
Alex Chau 7a4a30d86d Revert "Migrating all model tests to Instrumentation tests"
This reverts commit 455ba62b5d.

Reason for revert: Breaks tests on all targets

Bug: 196825541
Bug: 197570389
Change-Id: Ida6792a09c54dee46105b6b914a0dd1545bdf48d
2021-08-24 17:27:52 +00:00
TreeHugger Robot 428a0df67d Merge "Migrating all model tests to Instrumentation tests" into sc-v2-dev am: c817d2a633 am: 886adad609
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15619053

Change-Id: I4ad6305f34b17675f14c89fba4a2394be3f5f737
2021-08-23 21:47:06 +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
TreeHugger Robot c817d2a633 Merge "Migrating all model tests to Instrumentation tests" into sc-v2-dev 2021-08-23 21:08:51 +00:00
Sunny Goyal 455ba62b5d Migrating all model tests to Instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: Iebd46eb41eb46c187d569197f4b97b4fddc0f6f7
2021-08-23 12:34:44 -07: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 7472298151 Merge "Fixing crash when the adapter is no longer available" into sc-v2-dev am: a71426811e am: acf5d25977
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15625882

Change-Id: I395880f9e51ab71f14b9de6ef2529d6620fae2d0
2021-08-19 19:39:41 +00:00
TreeHugger Robot a71426811e Merge "Fixing crash when the adapter is no longer available" into sc-v2-dev 2021-08-19 19:00:39 +00:00
Sunny Goyal 8e3a60648a Fixing crash when the adapter is no longer available
Bug: 197176748
Test: trivial change
Change-Id: Ie55a248c1998168c45bfa346186d61d7456ff7fb
2021-08-19 10:26:35 -07:00
TreeHugger Robot 9c43f97783 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85 am: 5980159f00 am: d6578da299
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: Ieb58469aea095eb4fa154297a91be4a081c24165
2021-08-19 16:00:49 +00:00
TreeHugger Robot d6578da299 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85 am: 5980159f00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: If0b63751d63e33b402152c6953bb4125f0c62597
2021-08-19 15:51:12 +00:00
TreeHugger Robot 46db057249 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: Ie6d11b74141ff777b10f05919b9a61f7af809900
2021-08-19 15:43:06 +00:00
TreeHugger Robot 70dd01be85 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev 2021-08-19 15:30:20 +00:00
Sunny Goyal 9ac600b14d Merge "Moving all widget picker tests to instrumentation tests" into sc-v2-dev am: 494bbb0b6c am: 3f869092d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15616025

Change-Id: Idc0143a73210071aac2208d12d41c79d5246204e
2021-08-19 02:12:54 +00:00
Sunny Goyal 177785eccf Moving all widget picker tests to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: I946f29baedb2e6b29044f8df1bc73b74e9999efe
2021-08-18 15:06:53 -07:00
Sunny Goyal 6c6d6d18f1 Merge "Removing widget preview caching" into sc-v2-dev am: 7dcf197821 am: 35dd7566b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15568034

Change-Id: I0e83784e0bb5bc8afdac9d395547e4cd1fa16f4a
2021-08-18 16:46:00 +00:00
Sunny Goyal 7dcf197821 Merge "Removing widget preview caching" into sc-v2-dev 2021-08-18 16:13:22 +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