summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/states/SpringLoadedState.java
AgeCommit message (Collapse)Author
2021-12-06Remove LauncherState.TASKBAR visible elementTony Wickham
It's no longer used, so removing to cleanup code and reduce confusion Test: no functional change Fixes: 209512651 Change-Id: Ibd671bde7190df976b5365331731a55a9abdbb35
2021-09-21Remove nonOverlappingTaskarInsetsTony Wickham
- Override our insets in LauncherRootView to explicitly only care about nav bar size, ignoring any insets due to taskbar. - Previously we used nonOverlappingTaskbarInsets to belatedly subtract from measurements in e.g. DeviceProfile, but now we can revert most of those calculations since we effectively subtract taskbar insets at the root. Test: visual in different orientations and navigation modes, and testPressHomeOnAllAppsContextMenu to ensure REQUEST_WINDOW_INSETS still works for automated tests Fixes: 200607741 Change-Id: I8de5a268c686a1354b4beaa30e101bab6bed5af9
2021-04-27Removing dependency on wallpaper colors and using theme resourcesSunny Goyal
Bug: 184676715 Test: Manual Change-Id: Ie9a9a784c4a8a8cd484bfd8ea463deedcd4deed6
2021-04-06Some cleanup in RecentsViewSunny Goyal
> Merging overview and all-apps scrims into a single View > Decoupling TaskMenuView from taskView Bug: 184676497 Test: Manual Change-Id: I49f7249eaa2a800054385ab8e73a441d6a1b5e16
2021-03-19Fix spring loaded scale when taskbar is presentTony Wickham
Test: scaled workspace doesn't overlap QSB during drag and drop Bug: 171917176 Change-Id: I56c7ee834e2c3ee2c796e88e83f75dbd24d28bd5
2021-03-03Align real hotseat with taskbar hotseat during drag and dropTony Wickham
Remove hotseat space from workspace in DeviceProfile if taskbar is present, and instantly swap between taskbar and hotseat when entering SpringLoadedMode. To allow for an exact handoff, we also scale up the TaskbarView such that its icons match the hotseat icon size when on the home screen. Note that this CL only supports dragging to the taskbar, not out of it (which still triggers system drag and drop instead). Test: In RTL and LTR, drag a workspace item and ensure hotseat seamlessly swaps with the taskbar hotseat and allows drops. Bug: 179886115 Bug: 171917176 Change-Id: Id6462075b9b0b66b06d51a78c9c0b3e11e83e84d
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
2020-10-23Revert "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ...""Winson Chung
This reverts commit 087a9e39b663dade90d8dfd74300e42575649b87. Change-Id: I05b17a6e4aaaef6de3c2fa26aad45a39eb2833f9
2020-10-05Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ..."Alistair Delva
Revert "Merging from ub-launcher3-master @ build 6877130" Revert "Merging from ub-launcher3-master @ build 6877130" Revert "Merging from ub-launcher3-master @ build 6877130" Revert submission 12738409-merge_ub-launcher3-master_6877130 Reason for revert: Introduced crashes to global presubmit Reverted Changes: I624658ce6:Merge commit '8d14dbe041199d611839140f1c9285fd4174... Iccd2f1e3a:Merging from ub-launcher3-master @ build 6877130 I791d64951:Merging from ub-launcher3-master @ build 6877130 Icdd32ab01:Merging from ub-launcher3-master @ build 6877130 Bug: 169963211 Change-Id: I77a4ae59e823147beae8dd7cb9b54ccdace2c7f4
2020-09-27Good riddance UserEventDispatcherHyunyoung Song
Bug: 165675920 Bug: 161381246 TL;DR;; - nano -> lite proto - add all the missing logs to WW - pin item related logging fix - Removed logging for assistant sgrep "com.android.launcher3.userevent.nano." | cut -f1 -d: | xargs sed -i -e 's/userevent\.nano\./userevent\./g' Change-Id: Ie2a49fdd891cacbd7ef40a1dc9e41ff0574c7517
2020-06-22Log Launcher transitions to WWHyunyoung Song
- ONRESUME / ONSTOP - HOME_GESTURE - OVERVIEW_GESTURE - QUICKSWITCH - SWIPELEFT/SWIPERIGHT Bug: 156875719 Bug: 148822714 Bug: 137777105 Debug log: go/launcher-log-parity Change-Id: I64a0deab4996b5be36320fbe0339f320891c53e0
2020-04-30Generalizing LauncherState definition so that it can be used in RecentsActivitySunny Goyal
> Removing 'Launcher' as parameter from state methods called by StateManager > Converting state properties to methods for easier abstraction > Moving state handling drom state definition to activity class Change-Id: I997627df606a7e0bb3bf32688d045a942a47fc94
2020-04-21Disable blurs while in multiwindow modeWinson Chung
- With hierarchical animations, the split-secondary shell root is moved above the split-primary shell root immediately during transitions, which means that setting the blur on the launcher surface will also affect the primary docked surface Bug: 154125518 Change-Id: I21dd01738ee9bc974d41e5964364917a30143a2a
2020-03-24Adding some wallpaper depth to drag and dropSunny Goyal
Change-Id: Ib9acee6dcf8b2883cb66b65159d049bd8cbc2e8b
2020-02-05Make LauncherState transitionDuration overridable at runtimeTony Wickham
This follows the pattern of most of the other state properties, and allows us, for example, to extend the overview transition in 0-button mode, but keep it shorter for other modes that don't travel as far. Bug: 143361609 Change-Id: Ibf8142bf3f57bb73be826adb6f4a32c136ff56dc
2019-03-27Add translationX to overview stateTony
States return ScaleAndTranslation instead of float[]. Also separate overview translate interpolator from overview scale interpolator. Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
2019-03-04Fix hotseat translated upwards when dragging from all appsTony Wickham
Before, we just didn't scale or translate when entering spring loaded state. That worked when dragging from home, but when dragging from all apps it meant that the hotseat kept its translation from the transition to all apps. Now we always move the hotseat to scale 1 and translation 0 when going to spring loaded mode. Change-Id: I0630d5bb899e37e2ab01516adfc1b7e6f8a9e42a
2019-03-03Scale and translate hotseat with workspace instead of all appsTony
- Move the hotseat alongside workspace instead of on top of all apps in xml layout - Set pivot point of hotseat to match the workspace's, and apply the same scale - Translate the hotseat with the workspace instead of all apps - SpringLoadedState does not scale or translate the hotseat Change-Id: Ic45fe99f83f0e0012afa78073d9577e65da444e2
2018-05-24Fixing keyboard navigation when Overview list is emptyVadim Tryshev
Bug: 80155387 Change-Id: Ife86fe4b718ef01291a04b21020155110d75fa7b Testing: Manual
2018-05-08Chaniging all-apps scrimSunny Goyal
> Converting the scrim to View, to better avoid overdraw > Overview and Spring loaded state have different scrim alpha > When going from overview to all-apps, there is a color scrim drawn over the overview panel. The slef color is merged with this color to prevent overdraw, and the remaining screen is drawn with a cut-out round rect path Bug: 79111591 Change-Id: I26801fde13dd6adb4b06110bbe8087e35cc31847
2018-03-20Hide back button in drag-n-drop and quick scrubTony Wickham
Add a state flag to hide the back button, used by NORMAL, SPRING_LOADED, and FAST_OVERVIEW states. Bug: 74390697 Change-Id: Ifdb2aa41691db4594ea597fc5b5839967711b43d
2018-03-03Updating Launcher rotation logicSunny Goyal
When auto-rotate is on, launcher allways allows rotation. This allows uses to use locked rotation feature is available on the device When auto-rotate is off, workspace does not allow rotation, but overview in quickstep will allow rotation Bug: 73872056 Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
2018-03-01Updating the scrim and landscpae uiSunny Goyal
> Instead of views, using a custom class to draw the color scrims > All-apps has full screen UI > Quickstep does not have search box in landscape Bug: 73085356 Change-Id: I360a78a2ade0134daad29fe712796cd39a381fbb
2018-01-10Removing layout handling in DeviceProfile and moving it toSunny Goyal
individual views Bug: 71709920 Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
2018-01-08Updating landscape layout for launcher/quickstepSunny Goyal
> Hotseat is tied to navbar (on left in seascape) > Search box shows up in Overview (clicking it would crash for now) > All-apps is no longer fullscreen in landscape > Recents cards are appropriately scaled down > Hotseat is visible in Overview Bug: 70179916 Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
2017-12-22Adding translationX to workspace card to that it is slightly visibleSunny Goyal
behind the first card Change-Id: Idc0c169fb92510e74b983160778bd9dbacf29943
2017-12-06Separating various UI properties into state variablesSunny Goyal
> Using workspace scale and translation for all-apps > Without quickstep, workspace has the parallex effect as before > With quickstep, workspace scales down to match the recents card width > Using a single animator for recents views in case of state transtion and controlled transition to prevent going into inconsistant state. Change-Id: I1864de6892052ca771f4d0062e3d60c28840a72d
2017-12-05Allow hotseat items to be clicked in overviewTony Wickham
Bug: 70179573 Change-Id: Ib2cbd7b12e5e1287d652d703e95c15ca6ea12a4e
2017-10-23Moving all-apps state logic to an independent classSunny Goyal
Unifying all the paths for state change to a single flow Bug: 67678570 Change-Id: I0773c0f59ae1ef324c507bc1aae188d8c059dea4
2017-10-20Moving some state specific logic to subclass of LauncherStateSunny Goyal
Bug: 67678570 Change-Id: I1316f91c9f19bd572e4a0da67a22fa8921e1dcf9