summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/AbstractFloatingView.java
AgeCommit message (Collapse)Author
2021-09-14Don't set Taskbar window to non-fullscreen while folder animates closedTony Wickham
Test: Open an app, open a folder in taskbar, and drag an app from the folder. Ensure the folder close animation plays completely. Fixes: 199954907 Change-Id: I1caec4ef24b5325724d74f10ddbeae6ef8f9e959
2021-08-17Adds initial Taskbar Edu implementation.Andy Wickham
Currently it just pops up with one placeholder image for splitscreen. The Next button doesn't do anything. Screenshots: Light: https://screenshot.googleplex.com/B27CwBcwobHTghN.png Dark: https://screenshot.googleplex.com/48EuJZv8evd5RGW.png Known issues: - Back gesture is picked up behind by the app behind the taskbar. - When the flag is enabled, the Edu shows up each time you open an app, rather than only the first time. Bug: 180605356 Test: Manual Change-Id: Ifba9aa59abf1501b5f8ddebb3fcc13df85f6efaa
2021-06-01Add more education tips for widgets. (2/3)Alina Zaidi
Show education dialog on WidgetsFullSheet. -Have a button in widget education dialog to intent into PixelTips apps. -Make sure arrow tip view shows after dismissing education dialog on WidgetsFullSheet if there is a widget to show it on. -Update colors and layout for arrow tips. Test: Tested manually Bug: 185354491 Change-Id: I5cbdd02fc4f19a49a42dac4451b071e3d604747f
2021-05-19Folder polishJon Miranda
- Update folder hint text to ensure enough contrast. - Clamp down on alpha when animating to local color extraction - Update colors to new spec. Bug: 179209484 Bug: 175329686 Test: manual Change-Id: I9471504e10f02630ae13b2c478ced1ee05bd5220
2021-05-14Modify pin widget dialog open-close animation.Alina Zaidi
Pin widget sheet should open from bottom up and close on drag down. Behaviour with navigation bar is similar to that of widgets bottom sheet. Add a drag layer and reuse AbstractSlideInView for open-close animation. Test: Tested manually- opening, closing through dragging/ cancel button/ back button. Adding widget to screen by dragging/ add to home screen button. Bug: 186124244 Change-Id: I4b77d5bdd4ed1689b651847dfed69d19cafa7456
2021-05-07Add local wallpaper color extraction to folder backgrounds.Jon Miranda
- Starts listening to local wallpaper colors as soon as folder is positioned. - The folder open animation already has a background color animator. - For simplicity, folder open animation always starts first, and then we cancel its background color animator, and start a new animator to the extracted color. - setAutoCancel would be handy here, but it does not work, will track in a separate bug. - Since folders are reused, we clear our the color extractor on folder close. Bug: 175329686 Test: multiple folders on rainbow background open each folder, ensure bg animates to proper color Change-Id: Ie0f2c0632fa2361f7710ba247d74f882620dec16
2021-03-23Remove dead taskbar codeTony Wickham
Test: Works as before Bug: 182512211 Change-Id: Id4c979f2924f9ae6881a9bed18bcc52fbd80c05b
2021-03-16Hide taskbar when certain floating views are openTony Wickham
Test: Open widgets, ensure taskbar hides Bug: 171917176 Change-Id: Ib78182fe0ca1ea5ffbd28ab42f49ab8f0e535a18
2021-03-12Replace taskbar hotseat with real hotseat when folder is openTony Wickham
- Seamlessly show real hotseat and hide taskbar hotseat, while keeping rest of taskbar visible - Update MultiValueAlpha to allow for taking max alpha instead of blending, and use that for Hotseat - Fix folder open bounds on home screen when taskbar is present Test: Open folder from taskbar on home, can drag out items Bug: 182079330 Bug: 171917176 Change-Id: I7c1983e3219b1341cf233260f0ccac9051c4dc14
2021-02-16Removing menu and dialog for custom actions hanlding.Sunny Goyal
These do not work well with gesture-nav and can potentially block the Launcher UI. Instead exposing on custom actions with keyboard accelerator and using thee internal arrowPopup for resize options Fixing SecondoryDropTarget not sending appropriate stats log Bug: 179854703 Test: Verified on device Change-Id: I268690f8a937896e4350496128a38959003f8939
2021-02-05Adding support for keyboard based drag and dropSunny Goyal
For keyboard DnD, we use Accessible DnD implementation. A placeholder FloatingView draws the focus indicator for the virtual views Test: Visible Bug: 178781566 Change-Id: I632fc7377dffa1e05e3f0a9c3ad18641deb5a1a4
2020-08-24Good riddance UserEventDispatcher [1/n]Hyunyoung Song
Bug: 165675920 Change-Id: I237ed4243e1724b3c370c5660673bb3966bf4811
2020-07-29Changing minimum supported Launcher version to 26Sunny Goyal
Change-Id: I49fcf874430ac53c3246371e179fbd828e14e4da
2020-07-21Adding home animation support for non-system LauncherSunny Goyal
When user swipes up to home, Launcher will receive a onNewIntent callwith a bundle-extra gesture_nav_contract_v1. It will contain the componentName & UserHandle of the closing app & a callback. Launcher can use the callback to return the final position where the app should animate to and an optional surface to be used for crossFade animation. The surface cleanup can be handled in onEnterAnimationComplete. Change-Id: I76fdd810fdcb80b71f7d7588ccac8976d9dfe278
2020-06-10Allows Accessibility to focus on specified view in AbstractFloatingView.Andy Wickham
Here, the first item in an ArrowPopup or Folder are focused on. Note: There's another pre-existing bug where it announces "Home screen x of y" when the floating view appears; this change doesn't address that. Fixes: 147470419 Change-Id: I1dc70edc21ea7c19a5742208512738d6c4a94067
2020-06-04Allowing ListenerView intercept events in system areasvadimt
See the discussion in thje bug Bug: 156044202 Change-Id: I68b3826602250ef163b96be95d80b98691456443
2020-05-20Add all apps education tutorial.Jon Miranda
* Added FeatureFlag.ENABLE_ALL_APPS_EDU * When user swipes up on nav bar three times and goes to hint state consecutively, we show the new All Apps education tutorial. * For now we block interaction while the animation is playing, and we remove the view when the animation is done. * Future CL will leave view up until user successfully reaches All Apps state. Bug: 151768994 Change-Id: I903e0a3914d0558950ecb8cd714d97ddc10ca06b
2020-03-19Migrate hotseat items into a folderSamuel Fufa
If feature flag HOTSEAT_MIGRATE_TO_FOLDER is enabled, this moves hotseat items into a folder in the workspace. If not, it moves the whole hotseat to the first workspace page that can host the hotseat. Bug: 151099421 Test: Manual Change-Id: I49f6a22a0ada2c4cf237ca91a323a46346a11a59
2020-03-16Moving animation config so a separate classSunny Goyal
Using PendingAnimation for animation builder. This will allow us to easily add SpringAnimation to stateAnimation Change-Id: I8d88489a5da6fc85747ef9be7c13858b441cd28a
2019-10-03Fix the issue talkback feedback doesn't say anything when user longPinyao Ting
press on an app icon. When user long press on an app icon, the a11y focus event wasn't properly triggered on the container of deep shortcut, which is why there wasn't any talkback feedback after long press on an app icon. Bug: 140786694 Change-Id: Ib38db147faa5a163985f1ed74beec04c588b022c
2019-07-17do not close widgets that are safe for rebind upon orientation changePinyao Ting
bug: 135608744 Change-Id: I58e9e44eb61f3b22df6ec656ac864f6da3fb479f
2019-05-13Add some floating views that should hide back buttonTony
Change-Id: I5c8b7803d2ab8347d11786d84128f6f431b4cbfc
2019-04-25Cleanup unnecessary override dump methodHyunyoung Song
Change-Id: Ic2909a4d382362ddec9bcc2c738d13120e792fd8
2019-04-25Add important dump loggingHyunyoung Song
Bug: 130851537 Bug: 119992316 Change-Id: I3de7c1d910d1aecd80b47a85284565c79fe0e2cc
2019-04-22Skip state animation if animations are disabledSunny Goyal
> Also update the animation disabled check to use new-API Bug: 118678948 Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
2019-04-19Add ListenerView so that we can fast finish the FloatingIconView fade anim.Jon Miranda
This change allows us to quickly end the animation if the user begins interacting with launcher before the animation is over. This can currently happen when the user swipes up to go home, and then quickly swipes up again to enter overview. Bug: 129421279 Change-Id: I88c7d55ef8ac09f999c082317de3bb3693c11466
2019-04-18Patching null dereference in AbstractFloatingView.getOpenView()vadimt
If there is a better solution, bug assignee, please proceed with it. I'll land this immediately, as a lot of tests are broken. Bug: 130739123 Change-Id: Iacdb9adbbf41f1f9de1390c3e7525ee0bd7beda6
2019-04-09Swipe up on nav bar to go home from -1 and widgetsTony Wickham
More specifically, any window (e.g. qsb search) or AbstractFloatingView. NavBarToHomeTouchController now implements TouchController directly instead of AbstractStateChangeTouchController, as it not only dealing with launcher states. This makes it easier to override intercept logic to handle cases like not having window focus, for example. AbstractFloatingViews can createHintCloseAnim() to play an animation hinting that it is about to be closed by swiping up. Widgets sheets use this to pull back similar to the all apps transition to home. Bug: 129976669 Change-Id: Ie157b978d9f1ee36d5fd32cea72ec02ce40878c0
2019-02-18Some live tile and state fixesSunny Goyal
> Removing LayoutListener which was causing relayouts in the middle of the transitions > Fixing some logging in MultiStateCallback > Using an overlay to draw the hole for the live tile Bug: 124451190 Change-Id: I91351f76ec7cc2793a835f40002bfd912939d40d
2019-02-11Sending notification and widget changes to a listner so thatSunny Goyal
popups outside Launcher can also listen for changes Change-Id: I2eb2d8374a6806381e1c682eaef3cc35f30693df
2018-10-24Support Live Tile in Quickstep (Pt1) - Z orderingTracy Zhou
- Place Launcher above app surface. - Use LauncherLayoutListener to clear the area where the current task is in order to punch a hole and reveal the app view underneath Bug: 111697218 Test: Manual test Change-Id: I4d4e0f1113a8e60566257c030ae9b591789eb3b3
2018-09-19Disable scrolling noti shade on abstract floating view with swipe downHyunyoung Song
interactions already doing something else. Bug: 116143342 Change-Id: If3716de0eb1f7b508c3b74dbe2593ba62fffcf74
2018-08-30Add undo snackbar for deleting itemsTony Wickham
- Add methods to ModelWriter to prepareForUndoDelete, then enqueueDeleteRunnable, followed by commitDelete or abortDelete. - Add Snackbar floating view - Show Undo snackbar when dropping or flinging to delete target; if the undo action is clicked, we abort the delete, otherwise we commit it. Bug: 24238108 Change-Id: I9997235e1f8525cbb8b1fa2338099609e7358426
2018-08-14Migrating to android-xSunny Goyal
Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
2018-08-08Fix overlapping FloatingViewType IntDefTobias Dubois
TYPE_DISCOVERY_BOUNCE and TYPE_QUICKSTEP_PREVIEW have the same value. Make sure each flag has a unique value. Test: manual Change-Id: I0fec3f27ffc31bad80d3af7b3baa3631b61b2567
2018-07-12Proxying touch events from RecentsTouchConsumer to LauncherSunny Goyal
While swipe-up animation is running, the user can quickly start another touch gesture. In that case we keep the recents transtion active and proxy all touch events to launcher. Bug: 110901700 Change-Id: Ie3b448dfea00473082dc9143423d3596504a3fcc
2018-07-11Exposing some private methods to easily customize arrow popupSunny Goyal
Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
2018-05-23Removing discovery bouncer from accessibilityVadim Tryshev
It was obstructing views under it. Solves both Talkback and Switch Access issues. Bug: 80192025 Test: Manual Change-Id: Ia7fad91e1fcb857afbf68f879550c670279cee68
2018-05-21Merge "Go back to previous state when hitting back from discovery bounce" ↵TreeHugger Robot
into ub-launcher3-edmonton
2018-05-21Go back to previous state when hitting back from discovery bounceTony Wickham
Normally when you hit back, we just close the floating view if there is one. This makes less sense for DiscoveryBounce, since it doesn't feel like a different state even though it's technically a floating view. So in that case, don't consume the back press; let launcher handle it to go to the previous state. Bug: 80075741 Change-Id: I7270b61be70509cb2101400a12929478a5d082aa
2018-05-21onResume event should be logged (not twice but once)Hyunyoung Song
Bug: 79541772 Change-Id: I5fe1271007e4579e1ec95d51c215ef48d0c6eedd
2018-05-18Don't prevent animations in power save modeTony Wickham
Now that batter saver mode doesn't get rid of animations in P, we shouldn't use custom logic to prevent them either. Also updated ATLEAST_P to use version code. Bug: 79990054 Change-Id: If17cf369035c976f3d9d81f35432a045f1956ce5
2018-05-16Fixing wrong accessibility focus when opening a floating viewSunny Goyal
> Using common logic for announcing a floating view for widgets and folders Bug: 79091095 Bug: 79748886 Change-Id: Ibb3fe48e68e724f50d69f51a03d3b35ad0baf625
2018-04-25Call close for AbstractFloatingViews that were removed while still open.Jon Miranda
I'm not sure how/when this case occurs (perhaps during some transition/state change), but manually removing the floating view matches the symptoms in the bug. Bug: 72996404 Change-Id: I1e7c1a338fcd16c8e07b3c49fb9c9b2097eb2708
2018-04-12Don't show back button when discovery bounce is playingTony Wickham
Bug: 74766552 Change-Id: Ib3b514f4a2bfaa8593b82cd5acb16f02dd09dcc7
2018-04-05Close options popup when rebinding launcher.Jon Miranda
Bug: 77582012 Change-Id: I6707ca526c8c934f56b227288d2cbea7139ac41d
2018-03-15Fixing taskMenu and taskView clicks in fallback activitySunny Goyal
> Extracting common methods from Launcher & DragLauncher to base classes > Remoting some dependencies on Launcher and using the base class instead Change-Id: I121cacf8a14190b4703cda60bdeb4f79eee69ded
2018-02-20Quick step/scrub/switch loggingHyunyoung Song
- state transition happening due to Home and back is handled by specifying src target as 'from' container and dst target as the 'to' container - Source and Destination container shows FROM and TO state for SWIPE/FLING - event.isStateChange = true indicates that an action resulted in state transition - Elapsed container millis is the screen time on the source container Bug: 70181187 - logcat printout with setprop log.tag.UserEvent VERBOSE 1) State: WORKSPACE -> ALLAPPS action:FLING direction=UP Source child:HOTSEAT id=0 parent:WORKSPACE id=0 Destination child:ALLAPPS Elapsed container 1225 ms, session 1225 ms, action 0 ms 2) ALLAPPS -> HOMESCREEN action:FLING direction=DOWN Source child:ALLAPPS parent:ALLAPPS Destination child:WORKSPACE id=0 Elapsed container 971 ms, session 2197 ms, action 0 ms 3) HOMESCREEN -> OVERVIEW action:FLING direction=UP Source child:NAVBAR parent:WORKSPACE id=0 Destination child:TASKSWITCHER Elapsed container 4834 ms, session 4834 ms, action 0 ms 4) OVERVIEW-> ALLAPPS action:FLING direction=UP Source child:TASK parent:TASKSWITCHER Destination child:ALLAPPS Elapsed container 2176 ms, session 7010 ms, action 0 ms 5) ALLAPPS->OVERVIEW action:FLING direction=DOWN Source child:ALLAPPS parent:ALLAPPS Destination child:TASKSWITCHER Elapsed container 3683 ms, session 10693 ms, action 0 ms 6) OVERVIEW-> HOMESCREEN action:FLING direction=DOWN Source child:TASK parent:TASKSWITCHER Destination child:WORKSPACE id=0 Elapsed container 2108 ms, session 12801 ms, action 0 ms 7) APPS-> OVERVIEW action:FLING direction=UP Source child:NAVBAR parent:APP Destination child:TASKSWITCHER Elapsed container 104 ms, session 104 ms, action 0 ms 8) Quickscrub: action:DRAGANDDROP Source child: QUICK 9) Quickswitch: action:FLING Source child: QUICK Change-Id: I5898230859ff600f48a2a873a40b670fe4d39a0d
2018-01-19Adding a horizontal popup when when workspace is longPressedSunny Goyal
Change-Id: I5b3c48262c246bfe53e0010ca89c820f42503eef
2018-01-04Merge "Adding support for auto-cancelling an action mode when interacting ↵TreeHugger Robot
with launcher" into ub-launcher3-master