summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java
AgeCommit message (Collapse)Author
2021-11-30Add task unpinning support for 3 button taskbarVinit Nayak
Bug: 199544447 Test: Tested on small and large screen Change-Id: Ib7785992ef11825cd07a929e2cb623d02ef246f1
2021-11-29Merge "Handle configuration changes in floating rotation button" into sc-v2-devTreeHugger Robot
2021-11-26Handle configuration changes in floating rotation buttonNick Chameyev
Update resources in floating rotation button when configurations such as screen density, screen size, current locale have changed. Bug: 200103245 Test: change display size, locale, fold/unfold -> check that floating rotation button resources are updated Change-Id: Ia69f4f8b393a686012e286a1e39822650c562d52
2021-11-23Merge "Removing logs" into sc-v2-devWinson Chung
2021-11-17Add support for dark tint on taskbar nav buttonsTony Wickham
Tint the buttons when taskbar isn't drawing a background (either due to alpha or offset). Test: Dark icons on a light wallpaper on home screen, dark icons when light IME is showing Bug: 204256643 Change-Id: Iae634a1b604f50edc102905abd0d812a43c5346e
2021-11-12Removing logsWinson Chung
Bug: 201305599 Test: Builds Change-Id: Ic480136ee6b158dc614d43beaed1dfce91b9ca8a
2021-11-05Remove debug tracing checks to get logs beteween testsWinson Chung
Bug: 201305599 Test: Presubmit Change-Id: Iab4430f88a2cac97a056486edd97895bc30a03b1
2021-11-03Add some logging for taskbar recreationWinson Chung
Bug: 201305599 Test: Manual Change-Id: I437fe3226657ebe7b5507146fbe5e7f32e2e2fce
2021-11-01Move floating rotation button handling to LauncherNick Chameyev
Moves handling of floating rotation button when navigation bar is not created to the launcher. This button was not showing when taskbar is visible as it was initialized in navigation bar (which is not created for large screens). Bug: 200103245 Test: rotate phone when autorotate disabled on inner screen Test: showing rotate suggestion when gesture nav enabled/disabled Change-Id: I13dd555bcd811f1524be7ab9ad51b2b012b3b749
2021-10-28Recreate taskbar when dark mode changesTony Wickham
Also dispatch sysui flags to all controllers upon recreate, not just NavbarButtonsViewController. Additionally, tell the controllers to skip the animation due to the flag changes if it's fromInit. Test: Enable themed icons, switch dark theme in quick settings, ensure taskbar updates Fixes: 204403933 Change-Id: Ic43a50cf0456175f9beba5c29360440f051cbd2d
2021-10-21Add FallbackTaskbarUIControllerTony Wickham
- Refactor TaskbarManager to accept StatefulActivity instead of BaseQuickstepLauncher - Update the new StatefulActivity in onOverviewTargetChange() - Cleanup LauncherTaskbarUIController a bit to avoid initializing TaskbarActivityContext, TaskbarDragLayer, and TaskbarViewController in the constructor, and instead get these from mControllers after init() Test: No change in behavior Bug: 188790554 Change-Id: Ic4d69d73deb6dada416876eb265db57803c3adfd
2021-10-21Merge "Do not animate statusbar unfold when in portrait orientation" into ↵Nick Chameyev
sc-v2-dev
2021-10-19Delaying taskbar loading until user setup completedSunny Goyal
> Also keeping it stashed while all-set activity is visible > Creating a shared state (simiar to saved instance state) for taskbar > Keeping taskbar stashed while all-set activity is visible Bug: 194786060 Bug: 201782272 Test: Manual Change-Id: Iab5e082243a206772266aece62d3028f5acb6400
2021-10-15Do not animate statusbar unfold when in portrait orientationNick Chameyev
Disables unfold animation for statusbar when it is perpendicular to the screen fold. Moves ScopedUnfoldTransitionProgressProvider from launcher to shared SysUI/Launcher code Bug: 201518277 Test: manual Test: atest com.android.systemui.unfold.util.NaturalRotationUnfoldProgressProviderTest Change-Id: I1417ee89b132b541d5a3ed0e5ddcbc56d827da96
2021-10-06Move back to end of screen on keyguardVinit Nayak
* Animate it back into position after user unlocks * Re-create taskbar on layout direction change so PropertyHolders are recreated to take into account new values Fixes: 199852418 Test: Tested w/ password + pin for gesture + 3 button Change-Id: Ie7f16f737a8fc12328c05d7628d0e3ae09fc08ca
2021-09-10Destroy taskbar when device is shutting downTony Wickham
Test: Shutdown/restart device, ensure taskbar isn't showing Fixes: 194633599 Change-Id: I8061e515e122c446438975b98527aeda6c59996a
2021-09-07Update taskbar color in onConfigurationChanged()Tony Wickham
Test: Change wallpaper, ensure taskbar updates to match Fixes: 199045474 Change-Id: I7ec8bbec8e31d2d03c09bf487ab55c86b95917e7
2021-09-03Add taskbar icons unfold animationNick Chameyev
Adds 'move from center' animation for taskbar icons when unfolding foldable devices. Moves unfold transition progress provider from quickstep launcher activity to TouchInteractionService to widen the scope when this provider is available to cover both launcher activity and taskbar. Launcher activity and taskbar get their own instances of unfold transition progress provider using ScopedUnfoldTransitionProgressProvider wrapper. This wrapper allows to get transition progress provider that emits events only when clients are ready to handle them. Bug: 193794563 Test: manual Change-Id: I27581bd4e145a74f526bf60f2a545e56ded322f9
2021-08-26Show back button in SUWTony Wickham
- Listen for USER_SETUP_COMPLETE - Recreate taskbar, forcing nav buttons to be visible Test: Run setup wizard and ensure back button is present, then is replaced with taskbar when setup is complete adb shell am start -a android.intent.action.MAIN -n com.google.android.setupwizard/.SetupWizardTestActivity Fixes: 191846922 Change-Id: I789186dcc23a2db7cc4637b1cb0486f0d2add784
2021-07-19Add taskbar stashing feedforward, i.e. hint at upcoming stash/unstashTony Wickham
Also fix unstashing not working in 3P launchers by moving the unstash call from LauncherTaskbarUIController to TaskbarActivityContext Test: long press taskbar background and stashed handle, watch it hint towards the new stashed/unstashed state respectively and then complete the animation when the long press is triggered Fixes: 193926311 Fixes: 192926350 Change-Id: I0e538be9129bf5c600d07f360b8106d7077862ad
2021-07-02Notify System UI about taskbar stateAlex Chau
We want to move the rotation suggestion button to the middle of the taskbar when it is visible and not stashed. To do this we need to update System UI about the current state of the taskbar. Test: manual Fixes: 187410455 Change-Id: Id918e10a44631362f7c3a8a8bb624ee80bdd3c8b
2021-06-18Fixing out of order taskbar callbacksSunny Goyal
OnCreate can come before onDestroy for a previous activity which can cause the callbacks for taskbar to get cleared Bug: 190170303 Test: Presubmit Change-Id: I48334605384d4604043a50ffc3d137f84575148a
2021-06-15Initial commit of TaskBar on keyguardVinit Nayak
Bug: 180046394 Test: Tested with pin + keyboard + pattern Change-Id: I951d9508b1325c157a9c0d92fa8e77fe8df9c460
2021-06-08Support A11y contextual buttonVinit Nayak
Also migrate to only using sysui state flags for ime/switcher visibility instead of 2 separate methods. Bug: 180046394 Test: Tested w/ 1 a11y service, then 2 services for long click. Tested with IME switcher enabled and then also suggested rotation button. A11y takes precedence over IME switcher, but rotation button takes precedence over a11y as is in phone mode today. Change-Id: I9289165c8ca98d7ee432bd7145122d6a519600f6
2021-06-03Taskbar layout updateSunny Goyal
> Calculating the hotseat padding statically > Animating taskbar views individually when animating to home instead of a layout animation > Moving all navbar buttons to a separate layout/controller and independent of Launcher > Fixing RTL layout for taskbar and nav bar Bug: 187353581 Test: Manual Change-Id: If21696f38beee328f553e467394776a8e8ed4c3e
2021-06-01Initial commit of rotation contextual button.Vinit Nayak
UI fixing todo: b/187754252 Bug: 180046394 Test: Works in basic cases with on home and in app taskbar. Change-Id: I69985b57e38a9fdb7935fcafb097b1e6da73a6b9
2021-05-21Renamin TaskbarContainerView to TaskbarDragLayerSunny Goyal
Bug: 187353581 Test: Presubmit Change-Id: I9164a956aaa896111f287ab4e97b091a7d4d30ee
2021-05-21Initiate taskbar only after the user is unlockedSunny Goyal
Bug: 188755902 Test: Presubmit Change-Id: Ida4bc07f45396e82ab404a617aa6833afeea78bc
2021-05-21Revert "Revert "Renaming TaskbarController to LauncherTaskbarUIC..."Sunny Goyal
Revert submission 14664190 Reason for revert: Errorprone fixed in ag/14667108 Reverted Changes: Icd1ddd43e:Revert "Renaming TaskbarController to LauncherTask... I465013697:Revert "Moving taskbar lifecycle to TouchInteracti... Change-Id: I1dcccb43d8206830e2b7c1974e775c94ac8c542f Bug: 187353581
2021-05-21Revert^2 "Moving taskbar lifecycle to TouchInteractionService"Sunny Goyal
430465a3d5ff0dcdd0c2e263d862049d93075a07 Bug: 187353581 Change-Id: I7b2280d16adfafd3e85ffc1d22e32d0c00d12b67
2021-05-20Revert "Moving taskbar lifecycle to TouchInteractionService"Kholoud Mohamed
This reverts commit e215fb730bb3d4a357a2c4bf0c082d3c0ad69495. Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902 Bug: 188755902 Change-Id: I4650136975b60f311499ee6ff5b27ab9a32d23d6
2021-05-20Revert "Renaming TaskbarController to LauncherTaskbarUIController"Kholoud Mohamed
This reverts commit 40a742161938b343589e88e4b7f44b1cd67a69f1. Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902 Bug: 188755902 Change-Id: Icd1ddd43e62d392f6b68b0150a1075f73106391a
2021-05-18Renaming TaskbarController to LauncherTaskbarUIControllerSunny Goyal
Bug: 187353581 Test: N/A Change-Id: I44aac42c4df134fd7e6fc0c3609fdb3007cf52e3
2021-05-17Moving taskbar lifecycle to TouchInteractionServiceSunny Goyal
> Inflating taskbar views with a non-launcher window context > Removing separate taskbar view in Launcher > Handling taskbar icon clicks directly instead of going via launcher > Fixing some relayouts during show/hide animation Bug: 187353581 Test: Manual Change-Id: Ia7d44acbb770bf0345922234b3daa5cc040a5843