summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/states
Commit message (Collapse)AuthorAgeFilesLines
* Separating apps list callback from model callback and simplifying various eventsSunny Goyal2019-07-251-1/+1
| | | | | Bug: 137568159 Change-Id: I4d8bb5c01cabe642731ebd3f57fe15bdc5a569b7
* Disable seamless rotation for 3 and 2 button modeSunny Goyal2019-06-061-2/+7
| | | | | Bug: 134095068 Change-Id: I8603e49a85b5524a02c9085485a180b022e3f91e
* Disabling seamless rotation in multiwindow modeSunny Goyal2019-05-301-3/+8
| | | | | Bug: 133765491 Change-Id: If68c709fa5b8216d63fc516f16f03bf2aa83172a
* Lock launcher rotation during activity transition to allowSunny Goyal2019-05-221-0/+14
| | | | | | | proper seamless transition at the end Bug: 131360075 Change-Id: I2b76d4b3e0528e56b7b4709fd3708bc858bf1612
* Enabling fake rotation by defaultSunny Goyal2019-05-151-9/+34
| | | | | | | Fake rotation is only enabled if homescreen rotation is not enabled Bug: 131360075 Change-Id: Ie56fc4b46b38d3a599ec6da3d506a971e73b0394
* Add translationX to overview stateTony2019-03-271-5/+5
| | | | | | | | States return ScaleAndTranslation instead of float[]. Also separate overview translate interpolator from overview scale interpolator. Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
* Fix hotseat translated upwards when dragging from all appsTony Wickham2019-03-041-2/+2
| | | | | | | | | | 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
* Scale and translate hotseat with workspace instead of all appsTony2019-03-031-0/+5
| | | | | | | | | - 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
* Removing the home button press checkSunny Goyal2019-03-011-5/+0
| | | | | | | | When home key is pressed, we skip the schedular check as it comes in onNewIntent (explicitIntent). Bug: 118441555 Change-Id: I934bb14e4d188cf61faed0360c3f6d7cac8d2fed
* Changing min sdk to 25Sunny Goyal2019-01-291-11/+6
| | | | Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
* Moving some system calls off the main threadSunny Goyal2019-01-081-1/+2
| | | | | Bug: 122345781 Change-Id: I7ab364ac62ea56b7355b86cae3d8d731cc9b2506
* Fix showing strange Launcher on pressing Home.Vadim Tryshev2018-11-121-0/+5
| | | | | | Bug: 118441555 Test: manual, race condition repro, TaplTests Change-Id: I8b09895558f8baa72eb3a794724170417fadfda6
* Add support for testing in portrait modeVadim Tryshev2018-09-211-1/+8
| | | | | | Bug: 110103162 Test: TaplTests Change-Id: I7f633405c04984ea8f04acdc6dd4ad21019d3409
* Do not run StateHandler code while holding the lockSunny Goyal2018-05-311-11/+15
| | | | | | | | | | | | | | | | | | Deadlock: Main thread: InternalStateHandler.run() => LauncherFrameDrawn => Switch MotionEventQueue to Main thread => Try to acquire MotionEventQueue lock while holding InternalStateHandler lock Remote UI thread Recents Animation cancel on MotionEventQueue => Cancel SwipeHandler => Clear previously registered InternalStateHandler => Try to acquire InternalStateHandler lock while holding MotionEventQueue lock Bug: 80536505 Change-Id: I75e522edea2a76f8bc90e8abc2a174583cc709c4
* Fixing keyboard navigation when Overview list is emptyVadim Tryshev2018-05-241-6/+0
| | | | | | Bug: 80155387 Change-Id: Ife86fe4b718ef01291a04b21020155110d75fa7b Testing: Manual
* Adding some activity state information in dumpSunny Goyal2018-05-141-0/+8
| | | | | Bug: 79216829 Change-Id: I3e1a5f5508f09b9ce2737c13d917fbab531c2572
* Chaniging all-apps scrimSunny Goyal2018-05-081-1/+6
| | | | | | | | | | | > 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
* Moving some swipe up complete logic to when the handler is completed.Sunny Goyal2018-04-231-0/+8
| | | | | Bug: 76449024 Change-Id: I136e665495ab7164c79e1dfa0ef61090ba50fc7a
* Bringing back auto-rotate settingsSunny Goyal2018-04-191-23/+37
| | | | | Bug: 77654352 Change-Id: I0910fc8afe2fb7e125d57912abc35bbbd5df9d74
* Hide back button in drag-n-drop and quick scrubTony Wickham2018-03-201-1/+1
| | | | | | | | Add a state flag to hide the back button, used by NORMAL, SPRING_LOADED, and FAST_OVERVIEW states. Bug: 74390697 Change-Id: Ifdb2aa41691db4594ea597fc5b5839967711b43d
* Initial changes for handling overview button in LauncherSunny Goyal2018-03-121-3/+5
| | | | | | | Adding a debug flag to show the overview button and placeholder methods for handling the callbacks Change-Id: I35055e768d96b43b835bac2eb146e47850a7f4b1
* Updating Launcher rotation logicSunny Goyal2018-03-032-21/+141
| | | | | | | | | | 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
* Updating the scrim and landscpae uiSunny Goyal2018-03-011-1/+1
| | | | | | | | | > 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
* Handling recents animation cancelationSunny Goyal2018-02-201-27/+47
| | | | | | | | When the animation is cancelled, if remove the pending handler (incase it has not executed yet) and revert back to the old state if it has executed. Change-Id: Iddc305aaaeae78c06cbf6c1c271254409cc1487d
* Waiting for a small timeout for launcher draw, before performing the swipe ↵Sunny Goyal2018-02-051-6/+10
| | | | | | | | gesture. This allow for a better synchronized motion, in case launcher draw was fast enough Change-Id: Ie59aa1e8a2ffa94f3640b4ea08a0c23eeabafb54
* Add code path for the recents animation using window transitions.Winson Chung2018-01-291-7/+49
| | | | | | Test: Enable in settings, swipe up Change-Id: I1053f9e519c2f612bd3db0b66cd16ad9a30bfeb4
* Removing layout handling in DeviceProfile and moving it toSunny Goyal2018-01-101-1/+1
| | | | | | | individual views Bug: 71709920 Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
* Updating landscape layout for launcher/quickstepSunny Goyal2018-01-081-3/+8
| | | | | | | | | | | > 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
* Adding translationX to workspace card to that it is slightly visibleSunny Goyal2017-12-221-1/+1
| | | | | | behind the first card Change-Id: Idc0c169fb92510e74b983160778bd9dbacf29943
* Separating various UI properties into state variablesSunny Goyal2017-12-062-61/+2
| | | | | | | | | | > 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
* Allow hotseat items to be clicked in overviewTony Wickham2017-12-051-1/+1
| | | | | Bug: 70179573 Change-Id: Ib2cbd7b12e5e1287d652d703e95c15ca6ea12a4e
* Fixing double state changes when using an InternalStateHandlerSunny Goyal2017-11-151-16/+26
| | | | | | | > Removing duplicate state handling on onCreate and onNewInetnt when InternalStateHandler is active > Changing PinItemDragListener to use IntenalStateHandler Change-Id: I42dcf82d1180c49430c6cf0b85d47072c4498ecc
* Load some recent tasksWinson Chung2017-11-131-8/+23
| | | | | | Bug: 69166452 Test: Build quickstep Change-Id: Id4b0172256d6920616a6b9529d61abd1fe0c1a36
* Initial changes for handling touch events.Sunny Goyal2017-11-101-0/+43
| | | | | | | | When the touch passes a threashold, we take a snapshot and start the launcher activity. The launcher displays the snapshot on top of its UI. As we get further touch events, we move this snapshot and the hotseat in reponse. Change-Id: I4623676227000afd52805a414a4de499081feced
* Rearranging the code structure to allow replacing state logic.Sunny Goyal2017-11-061-83/+0
| | | | Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
* Using state animation to control all-apps transitionSunny Goyal2017-10-311-1/+1
| | | | | | | | | > Separating all-apps transtions control and vertical shift touch handling > Creating separate spring handler for search box (to avoid adding and removing spring) > Driving all-apps vertical shift using state AnimatorSet Bug: 67678570 Change-Id: I3b6a4d1f43275a5f485b399444742b6b9a8c4bb9
* Exposing the state manager directly instead of providing various helper ↵Sunny Goyal2017-10-251-0/+10
| | | | | | | methods for state change Bug: 67678570 Change-Id: If3d05c804c034ffa5e403da8eaa23e85e373c863
* Enable overview state restoreSunny Goyal2017-10-241-2/+1
| | | | | | | | | > Reapplying CellLayout state when new pages are added (page bind comes after restore) > Removing support for different scroll range for freescroll (the calculations were not consistant with maxScroll) Bug: 67678570 Change-Id: Ic1911de1b707f2f6940e7040f07ca7e733e2ef2a
* Moving all-apps state logic to an independent classSunny Goyal2017-10-233-2/+64
| | | | | | | Unifying all the paths for state change to a single flow Bug: 67678570 Change-Id: I0773c0f59ae1ef324c507bc1aae188d8c059dea4
* Moving some state specific logic to subclass of LauncherStateSunny Goyal2017-10-202-0/+186
Bug: 67678570 Change-Id: I1316f91c9f19bd572e4a0da67a22fa8921e1dcf9