Commit Graph

700 Commits

Author SHA1 Message Date
Fengjiang Li 2f2306c14b Turn off ENABLE_ALL_APPS_RV_PREINFLATION and ALL_APPS_GONE_VISIBILITY
Test: Tested in ag/24107285
Bug: 264341825
Change-Id: Iafdad8f2aabe4296befc00800dc9a1fdfd58dc6f
2023-08-04 10:29:03 -07:00
Fengjiang Li 98c91a65cf Revert "Revert "Make AllAppsRecyclerViewContainer GONE when hidden""
This reverts commit a163646c7a.

Reason for revert: Re-submit with ENABLE_ALL_APPS_RV_PREINFLATION and ALL_APPS_GONE_VISIBILITY turned off in child CL (submit together)

Test: Tested in ag/24107285
Change-Id: Ia85c1e8447c45ff44814ad4bfe0f178a72d0e7d3
2023-08-04 10:28:36 -07:00
Inseob Kim 40a44e08b9 Merge "Revert "Make AllAppsRecyclerViewContainer GONE when hidden"" into udc-qpr-dev 2023-08-04 04:13:28 +00:00
Inseob Kim a163646c7a Revert "Make AllAppsRecyclerViewContainer GONE when hidden"
This reverts commit df59c2e535.

Reason for revert: b/293944420

Change-Id: I0ae830e1a5ba8affb6815c9e96ffee1b20c6e8d0
2023-08-04 02:18:44 +00:00
Fengjiang Li 068df4c1ca Merge "Make AllAppsRecyclerViewContainer GONE when hidden" into udc-qpr-dev 2023-07-31 20:27:21 +00:00
Luca Zuccarini 36e7df0d47 Merge "Update default value for container launch animations to TEAMFOOD." into udc-qpr-dev 2023-07-31 19:21:03 +00:00
Fengjiang Li df59c2e535 Make AllAppsRecyclerViewContainer GONE when hidden
Test: N/A
Flags: ALL_APPS_GONE_VISIBILITY
Bug: 264341825
Change-Id: I28933c08e80b95bcd5031da9869b37f34f6408b2
2023-07-31 10:41:58 -07:00
Brandon Dayauon d6c00c7114 Merge "enable flags: ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH" into udc-qpr-dev 2023-07-26 22:51:55 +00:00
Brandon Dayauon 19a380095e enable flags: ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH
PM said we can enable ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH flags.

bug:287307252
Flag: turning to true
test: presubmit (updated tests in previous CL ag/23835677)

Change-Id: I89ede9807205a72108f25ca3b962f8d67384f7ae
2023-07-24 07:38:38 -07:00
Luca Zuccarini 86e18b59a9 Update default value for container launch animations to TEAMFOOD.
Also move flag checking outside ItemInfo.

Bug: 262778448
Flag: ENABLE_SEARCH_RESULT_BACKGROUND_DRAWABLES
Flag: ENABLE_SEARCH_RESULT_LAUNCH_TRANSITION
Test: manual
Change-Id: I49de8a93539829e41c1de1fb23630c1b2ca8b646
2023-07-21 13:14:24 +00:00
Vinit Nayak d49239be89 Enable ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE for TEAMFOOD
Bug: 276361926
Flag: ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE
Change-Id: I55c8e8293eeadeca623ae879ca62d8d7c405f486
2023-07-20 16:32:51 -07:00
Vinit Nayak 1db3292029 Clean up SplitData refactor flag
Bug: 279494325
Test: Invoking split works from home, overview.
Opening split to fullscreen also works

Change-Id: Ie1f26f833d5c10bb114b9e8eb1bd9f3b6b913b3d
2023-07-14 10:54:59 -07:00
Vinit Nayak f909a72f3f Merge "Cleanup ENABLE_SPLIT_FROM_WORKSPACE flag" into udc-qpr-dev 2023-07-12 20:57:22 +00:00
Vinit Nayak 46b2beea26 Cleanup ENABLE_SPLIT_FROM_WORKSPACE flag
Fixes: 270393906
Flag: none
Test: Compiles
Change-Id: I1431f544b26cef5cd417c9a5a97f183b49fe7adc
2023-07-11 17:05:17 -07:00
Sebastian Franco 7ba948967c Adding flag for use of ParametrizeReorderAlgorithm
Also, some cleaning of the comments.

Bug: 289420844
Test: compiling
Change-Id: I5dfb4b252755550059c3ee050bc491f5449bec97
2023-07-10 20:32:18 +00:00
Fengjiang Li 1e3d799fe3 Merge changes from topic "preinflate-allapps-rv" into udc-qpr-dev
* changes:
  Pre-inflate BubbleTextViews into Launcher/TaskBar All Apps RV
  Fix calculation of all apps recyclerview pool size of app icons
2023-07-05 22:44:55 +00:00
Fengjiang Li 1519c168da Pre-inflate BubbleTextViews into Launcher/TaskBar All Apps RV
This CL ensures no inflation of BubbleTextView happens while binding applications, and reduces jank on slow device.

1. Let active/inactive all apps RVs share the same AllAppsRecyclerViewPool
2. Use worker thread to pre-inflate BubbleTextViews and add them to shared view pool on main thread

Bug: 287523421
Test: See before/after screenshot/video/trace attached in bug
Change-Id: I00213407be2c7c2d329997552785d0aa56c4d057
2023-07-05 13:07:26 -07:00
Jeremy Sim d2255f2b79 Remove flag ENABLE_LAUNCH_FROM_STAGED_APP
This patch makes it so that the "launch from staged app" feature, which has been enabled since TQPR3, has its flag removed.

Fixes: 270395567
Test: None
Change-Id: I46878475c0dac5a3d64938ec9dfa5ca4123c7bb4
2023-06-28 22:45:32 +00:00
Holly Jiuyu Sun d9e0a2836a Merge "[Play] Enable play flag by default on client side for udc-d1-dev." into udc-d1-dev am: a78a22e0c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23680192

Change-Id: Ic5d58714e15ba6926c1c07b25f98c7812fa2c02a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-17 06:05:31 +00:00
Sebastián Franco 29a13676f4 Merge "Remove flags ENABLE_TWO_PANEL_HOME FOLDABLE_WORKSPACE_REORDE and FOLDABLE_SINGLE_PAGE" into udc-qpr-dev 2023-06-13 23:08:40 +00:00
Holly Sun cd5d9a70b2 [Play] Enable play flag by default on client side for udc-d1-dev.
Bug: 275082654
Test: N/A
Flag: ENABLE_SEARCH_UNINSTALLED_APPS
Change-Id: I22032f99dd0f3b84e34eb3ee5394901d10a4f9f4
2023-06-13 22:55:48 +00:00
Sebastian Franco 76a1ceb5f2 Remove flags ENABLE_TWO_PANEL_HOME FOLDABLE_WORKSPACE_REORDE and FOLDABLE_SINGLE_PAGE
Fix: 270392643
Fix: 270395070
Fix: 270395274
Test: atest FoldableItemsIntegrity
Change-Id: I2d7af312da8aeb070588ca94a2a256d2def65eeb
2023-06-12 18:05:22 -07:00
Andy Wickham 64896f3098 Put the "floating" in ENABLE_FLOATING_SEARCH_BAR.
This means adding the search view to the drag layer, so it can
persist and animate across Launcher states (i.e. Home, All Apps,
Overview, Overview from App).

Some high level things:
 - LauncherState now has a flag indicating if the floating
   search bar should be visible, as well as a method indicating
   how high it should rest when the keyboard is not showing. By
   default the height is set negative if the flag is not present,
   so the search bar will rest off screen in that state.
 - LauncherState also has a new method indicating if the search
   bar should show as a pill when not focused. Currently this is
   done in phone portrait mode in all apps and overview.
 - SearchUiManager now has a method for gestures to hint that
   the search bar will be focused or unfocused soon, e.g. for
   the app -> overview case, we hint that it will be focused
   when crossing the threshold, and unfocused if retracting.
   This allows the search bar to animate during the gesture
   and take or release focus after the state change completes.
 - AllAppsTransitionController lets the apps panel translate in
   from the bottom of the screen, for example when coming from
   an app and we don't want to pop it in halfway up the screen.
   Instead it can slide in gracefully from behind the keyboard
   and floating search bar.
 - KeyboardInsetAnimationCallback can now notify listeners of
   keyboard alpha changes during controlled animations. And
   StateAnimationConfig has a new animation type to control
   the keyboard alpha during the all apps transition.
 - This new ANIM_ALL_APPS_KEYBOARD_FADE is used to pop the
   keyboard in at the threshold for going from an app to all apps.
   Note that its position moves linearly before this, so the
   search bar starts moving up accordingly before the keyboard
   alpha is non-0.

Fix: 266761289
Fix: 268845147
Fix: 267683921
Fix: 265849321
Fix: 266446733
Fix: 269301440
Bug: 275635606
Bug: 259619990
Bug: 261866704
Test: Manual with all the state transitions on phone and tablet
(also folding/unfolding foldable).
Flag: ENABLE_FLOATING_SEARCH_BAR, ENABLE_ALL_APPS_FROM_OVERVIEW
(latter just for the background app interpolator changes).

Change-Id: I6f06552e95747348a62260279626cf407bf145b0
2023-06-12 21:55:24 +00:00
TreeHugger Robot ddfb4a982e Merge "Enabled NOTIFY_CRASHES for teamfood" into udc-dev am: ed4695e37e am: 344146970d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23570671

Change-Id: Iaf053f020e0e7ee1dbeece136f80ff2395f0f38f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-06 18:02:08 +00:00
TreeHugger Robot ed4695e37e Merge "Enabled NOTIFY_CRASHES for teamfood" into udc-dev 2023-06-06 16:29:12 +00:00
Tony Wickham 670f17f560 Enabled NOTIFY_CRASHES for teamfood
Flag: NOTIFY_CRASHES
Test: none
Fixes: 285951384
Change-Id: I1f4905e0b797f4d0d7356cad0be4d98bfa09a3b7
2023-06-05 22:15:18 +00:00
Alex Chau 1a5ca93835 ENABLE_CURSOR_HOVER_STATES should be TEAMFOOD only
- Not all features are landed yet

Bug: 243191650
Test: manual
Change-Id: I7f70898fb16435134bfb58982b754a57c6f5c29f
2023-06-02 10:05:47 +00:00
Alex Chau 3e68f68528 Enable Grid only overview in teamfood
Bug: 270397206
Test: manual
Change-Id: I5f1fed8f04f63cb53af66a94ad415d3d6814245d
2023-06-01 14:29:55 +00:00
Nick Chameyev 6d756970e7 [Unfold animation] Do not preemptively start the animation if it has run already
Currently if we open an app, unfold the device and then go to home
screen we will start the unfold animation preemptively in Launcher
because Launcher activity will receive updated configuration change
(where isTablet = true) only after going back to home screen, not
when unfolding the device.

This causes a problem because SystemUI won't send the unfold animation
events after going back home as the animation has already run, so we
end up with wrongly started animation in Launcher.

This CL fixes the issues by checking if SystemUI has finished the
animation (or if it is currently running) to avoid preemptive animation
start in this case. This is done by subscribing to the original
unfold transition progress provider which emits progress events
sent through IPC from SystemUI.

Bug: 285150685
Test: open an app on folded screen, unfold, go to home screen =>
  check that icons are not squished
Test: fold/unfold when launcher is open
Change-Id: Ic437ff4d19cbd5764635f3007d99880622150f5b
2023-05-31 17:12:08 +00:00
Nick Chameyev 28caa7586c Merge "[Unfold animation] Disable preemptive launcher animation" into udc-dev am: 0bb67d4c2c am: ff417fc486
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23476096

Change-Id: I7d26cd3c3972ce690157aec072b3251c2f02bd7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-31 11:59:13 +00:00
Nick Chameyev 0873afd7fa [Unfold animation] Disable preemptive launcher animation
Disables preemptive unfold animation by default.

Bug: 281821523
Test: unfold on launcher
Change-Id: I767f25cf0414a91c82a33cf86ca16db2e4dcfa22
2023-05-30 18:10:08 +01:00
Luca Zuccarini c46825cfa6 Merge "Clean up the ENABLE_ONE_SEARCH_MOTION feature flag." into udc-qpr-dev 2023-05-25 15:43:47 +00:00
Luca Zuccarini 419554c657 Clean up the ENABLE_ONE_SEARCH_MOTION feature flag.
Bug: 270394223
Test: manual
Flag: N/A
Change-Id: I5767cb555ab4314789e8238c59a43400b46e9b0a
2023-05-24 16:38:19 +00:00
Andreas Agvard eea784aea8 Adds an flag guarded extension point for long press nav handle behavior
Bug: 282993230
Flag: ENABLE_LONG_PRESS_NAV_HANDLE disabled
Test: Manual

Change-Id: I541886cc13af1db46bc38d4e18556be99bef7713
2023-05-24 16:24:42 +02:00
Himanshu Gupta cd35486198 Merge "Revert "Do not display clone apps in launcher work tab."" into udc-dev am: ee311b3e9c am: cddca58573
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23264596

Change-Id: I731dba4ec7f1ad490e0b556853f64fe865cac1b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-17 13:32:08 +00:00
Himanshu Gupta 8ef1845c3d Revert "Do not display clone apps in launcher work tab."
This reverts commit 45ef9b6c01.

Reason for revert: As promised, sysUi changes introduced in Launcher for AppCloning are being reverted. (This is the only CL that was merged)

Change-Id: I9fc72c333d48ca51558578d0d79038b49b3ebb5b
Test: Manual by building sysUi
2023-05-16 23:43:22 +01:00
Hyunyoung Song ff760834df Merge "Revert "[Toast] Enable background drawables by default in Teamfood."" into udc-dev am: deec0f628b am: 3c7798cb93
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23113219

Change-Id: I9f1da94151935ebd3c2fbb3f3ab7660e5168bd55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-16 07:50:45 +00:00
Hyunyoung Song deec0f628b Merge "Revert "[Toast] Enable background drawables by default in Teamfood."" into udc-dev 2023-05-16 06:41:20 +00:00
Treehugger Robot 0a14007530 Merge "Add flag for enabling widget transition animation" into udc-dev am: bbb54462a8 am: af85e7dcc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23247754

Change-Id: Iaacfcd2d8c1c2ce4f59fae8ed0c6986c67a6b1c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-16 02:06:15 +00:00
Treehugger Robot bbb54462a8 Merge "Add flag for enabling widget transition animation" into udc-dev 2023-05-16 00:50:32 +00:00
TreeHugger Robot ce7ecd8aa3 Merge "Add handling for toggling keyboard stashing from the keyboard" into udc-dev am: f0c96721ba am: 0333de8878
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22999970

Change-Id: Id04287f7ff48917fccdfd91372726a12c3999a3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-16 00:20:45 +00:00
Treehugger Robot 02777887e7 Merge "Turn on ENABLE_TRACKPAD_GESTURE in udc-qpr-dev" into udc-qpr-dev 2023-05-15 23:56:32 +00:00
Treehugger Robot 72ba26bcf9 Merge "Cleanup WIDGETS_IN_LAUNCHER_PREVIEW." into udc-dev am: f8b4a4cc08 am: 10ac903861
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23245066

Change-Id: Ib8952a875979216169c219842023f8b5d8e3e152
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-15 23:16:08 +00:00
Tony Wickham 9ad0ea5e68 Merge "Remove unused/obsolete feature flags" into udc-dev am: 4f69ca52ef am: b4802d7837
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23219342

Change-Id: I62c140775adcb7a2e82c6114e5b5103d00f579ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-15 23:15:53 +00:00
TreeHugger Robot f0c96721ba Merge "Add handling for toggling keyboard stashing from the keyboard" into udc-dev 2023-05-15 22:57:14 +00:00
Treehugger Robot f8b4a4cc08 Merge "Cleanup WIDGETS_IN_LAUNCHER_PREVIEW." into udc-dev 2023-05-15 21:52:35 +00:00
Tony Wickham 4f69ca52ef Merge "Remove unused/obsolete feature flags" into udc-dev 2023-05-15 21:46:15 +00:00
Sihua Ma a5ccdbb048 Add flag for enabling widget transition animation
Test: N/A
Flag: ENABLE_WIDGET_TRANSITION_FOR_RESIZING
Bug: 268553314
Change-Id: I84793249af94076b675a69696ea2a3e34816f704
2023-05-15 14:20:28 -07:00
Tracy Zhou e715071855 Turn on ENABLE_TRACKPAD_GESTURE in udc-qpr-dev
Bug: 271010401
Change-Id: Iac8bf88038ccf4640ca30e9e21c5af86cc72a06d
Test: N/A
2023-05-15 18:43:49 +00:00
Schneider Victor-tulias eb8dce01ce Add handling for toggling keyboard stashing from the keyboard
Flag: ENABLE_KEYBOARD_TASKBAR_TOGGLE
Bug: 281726846
Fixes: 246660615
Test: toggled the transient taskbar with the meta+t input
Change-Id: I315f83850b11d24d8b55061d7111300effb43936
2023-05-15 18:41:25 +00:00