summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/taskbar/TaskbarStateHandler.java
AgeCommit message (Collapse)Author
2021-10-26Delete TaskbarStateHanderTracy Zhou
Bug: 204220602 Test: N/A Change-Id: I6c26b4d3b8acb35750be56986555350e84f31ecb
2021-06-16Updating taskbar icon alignment stateSunny Goyal
Icon alignment is only tied to Launcher paused/resumed state Creating two separate states for this: 1) Launcher paused/resumed 2) Active gesture interaction (live-titles can affect paused state) Removing state handler dependency on taskbar visibility Bug: 190170303 Bug: 187353581 Bug: 187919439 Test: Manual Change-Id: Ia97cdf43cec1d9213f5dc2af8d66258b34c57514
2021-06-07Fix regression where nav bar shows when taskbar is showingTony Wickham
- Add mNavBarButtonAlpha to TaskbarStateHandler, and set it to the inverse of the taskbar alpha. - Add mPendingSetNavButtonAlpha for when setNavBarButtonAlpha() is called before mSystemUiProxy is initialized. Test: Go between various launcher states and ensure nav bar only shows up when taskbar hides. Bug: 187353581 Change-Id: I4b79280d686c787e9128e753070ec591d1ab2e4d
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-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-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
2021-04-13Move taskbar to be closer to QSBTony Wickham
- Offset taskbar to be halfway between QSB and bottom of the screen. - Add taskbar translationY state property to animate when going between launcher and an app. - Draw the taskbar background in TaskbarContainerView instead of TaskbarView so it stays pinned to the bottom as TaskbarView translates up. If we want to have a background behind the taskbar on home, this should move back to TaskbarView so that the drawing can be shared by mTaskbarViewOnHome. Test: visually on home screen, translates when entering and exiting an app Bug: 182981881 Bug: 171917176 Change-Id: I44f8b2c770074f7f015dcccbc2befd3453811193
2021-03-24Slightly improve Taskbar animations to launcherTony Wickham
- Move Taskbar scale to LauncherState - Rename TaskbarVisibilityController to TaskbarAnimationController and add mTaskbarScaleForLauncherState to TaskbarAnimationController - Set OverviewState#getTaskbarScale() = 1f so Taskbar doesn't scale up when going from an app to Overview - Increase home animation duration so Taskbar animation aligns better Test: Taskbar scales up when going home, doesn't scale up when going to overview Bug: 182512211 Change-Id: I6f448e76de98d7ff337ae93234d4bb7ce6254d50
2021-03-23Remove dead taskbar codeTony Wickham
Test: Works as before Bug: 182512211 Change-Id: Id4c979f2924f9ae6881a9bed18bcc52fbd80c05b
2021-01-29Animate taskbar background alpha and visibility alphaTony Wickham
Setup codepath to animate the Taskbar when going to and from Launcher, primarily by listening for pause/resume signals but also hints from gesture nav and AppToOverviewAnimationProvider. Additionally, add TaskbarStateHandler to listen for Launcher state changes if Taskbar is enabled. Combined, the end behavior is: - Background alpha is 0 when Launcher is resumed, and 1 when Launcher is paused (we can make this animation more interesting later). - Taskbar is always visible when Launcher is paused, otherwise its visibility is determined by multiple factors: LauncherState and whether the IME is showing. Bug: 171917176 Change-Id: I7856fc979931c9d12d714dee11d179fd1b5a6968