summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AbstractFloatingView.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix the issue talkback feedback doesn't say anything when user longPinyao Ting2019-10-031-2/+2
| | | | | | | | | | | 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
* do not close widgets that are safe for rebind upon orientation changePinyao Ting2019-07-171-1/+1
| | | | | bug: 135608744 Change-Id: I58e9e44eb61f3b22df6ec656ac864f6da3fb479f
* Add some floating views that should hide back buttonTony2019-05-131-1/+1
| | | | Change-Id: I5c8b7803d2ab8347d11786d84128f6f431b4cbfc
* Cleanup unnecessary override dump methodHyunyoung Song2019-04-251-4/+0
| | | | Change-Id: Ic2909a4d382362ddec9bcc2c738d13120e792fd8
* Add important dump loggingHyunyoung Song2019-04-251-0/+4
| | | | | | | Bug: 130851537 Bug: 119992316 Change-Id: I3de7c1d910d1aecd80b47a85284565c79fe0e2cc
* Skip state animation if animations are disabledSunny Goyal2019-04-221-2/+1
| | | | | | | > Also update the animation disabled check to use new-API Bug: 118678948 Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
* Add ListenerView so that we can fast finish the FloatingIconView fade anim.Jon Miranda2019-04-191-4/+7
| | | | | | | | | | 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
* Patching null dereference in AbstractFloatingView.getOpenView()vadimt2019-04-181-0/+1
| | | | | | | | | 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
* Swipe up on nav bar to go home from -1 and widgetsTony Wickham2019-04-091-2/+18
| | | | | | | | | | | | | | | | 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
* Some live tile and state fixesSunny Goyal2019-02-181-8/+5
| | | | | | | | | | > 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
* Sending notification and widget changes to a listner so thatSunny Goyal2019-02-111-3/+0
| | | | | | popups outside Launcher can also listen for changes Change-Id: I2eb2d8374a6806381e1c682eaef3cc35f30693df
* Support Live Tile in Quickstep (Pt1) - Z orderingTracy Zhou2018-10-241-0/+11
| | | | | | | | | | - 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
* Disable scrolling noti shade on abstract floating view with swipe downHyunyoung Song2018-09-191-0/+5
| | | | | | | | interactions already doing something else. Bug: 116143342 Change-Id: If3716de0eb1f7b508c3b74dbe2593ba62fffcf74
* Add undo snackbar for deleting itemsTony Wickham2018-08-301-6/+8
| | | | | | | | | | | - 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
* Migrating to android-xSunny Goyal2018-08-141-1/+2
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Fix overlapping FloatingViewType IntDefTobias Dubois2018-08-081-3/+3
| | | | | | | | TYPE_DISCOVERY_BOUNCE and TYPE_QUICKSTEP_PREVIEW have the same value. Make sure each flag has a unique value. Test: manual Change-Id: I0fec3f27ffc31bad80d3af7b3baa3631b61b2567
* Proxying touch events from RecentsTouchConsumer to LauncherSunny Goyal2018-07-121-1/+2
| | | | | | | | | 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
* Exposing some private methods to easily customize arrow popupSunny Goyal2018-07-111-8/+9
| | | | Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
* Removing discovery bouncer from accessibilityVadim Tryshev2018-05-231-3/+8
| | | | | | | | | | It was obstructing views under it. Solves both Talkback and Switch Access issues. Bug: 80192025 Test: Manual Change-Id: Ia7fad91e1fcb857afbf68f879550c670279cee68
* Merge "Go back to previous state when hitting back from discovery bounce" ↵TreeHugger Robot2018-05-211-1/+3
|\ | | | | | | into ub-launcher3-edmonton
| * Go back to previous state when hitting back from discovery bounceTony Wickham2018-05-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* | onResume event should be logged (not twice but once)Hyunyoung Song2018-05-211-2/+4
| | | | | | | | | | | | Bug: 79541772 Change-Id: I5fe1271007e4579e1ec95d51c215ef48d0c6eedd
* | Don't prevent animations in power save modeTony Wickham2018-05-181-1/+1
|/ | | | | | | | | | 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
* Fixing wrong accessibility focus when opening a floating viewSunny Goyal2018-05-161-0/+27
| | | | | | | | > Using common logic for announcing a floating view for widgets and folders Bug: 79091095 Bug: 79748886 Change-Id: Ibb3fe48e68e724f50d69f51a03d3b35ad0baf625
* Call close for AbstractFloatingViews that were removed while still open.Jon Miranda2018-04-251-0/+1
| | | | | | | | | 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
* Don't show back button when discovery bounce is playingTony Wickham2018-04-121-1/+9
| | | | | Bug: 74766552 Change-Id: Ib3b514f4a2bfaa8593b82cd5acb16f02dd09dcc7
* Close options popup when rebinding launcher.Jon Miranda2018-04-051-1/+1
| | | | | Bug: 77582012 Change-Id: I6707ca526c8c934f56b227288d2cbea7139ac41d
* Fixing taskMenu and taskView clicks in fallback activitySunny Goyal2018-03-151-15/+16
| | | | | | | > Extracting common methods from Launcher & DragLauncher to base classes > Remoting some dependencies on Launcher and using the base class instead Change-Id: I121cacf8a14190b4703cda60bdeb4f79eee69ded
* Quick step/scrub/switch loggingHyunyoung Song2018-02-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Adding a horizontal popup when when workspace is longPressedSunny Goyal2018-01-191-6/+11
| | | | Change-Id: I5b3c48262c246bfe53e0010ca89c820f42503eef
* Merge "Adding support for auto-cancelling an action mode when interacting ↵TreeHugger Robot2018-01-041-0/+1
|\ | | | | | | with launcher" into ub-launcher3-master
| * Adding support for auto-cancelling an action mode when interacting with launcherSunny Goyal2017-12-221-0/+1
| | | | | | | | Change-Id: Iba0207e36e9e5bd94bd9016318a4e00c6e1f6393
* | Add system shortcuts when long pressing recent iconTony Wickham2018-01-021-2/+4
|/ | | | | | | | | | | | | | | We add a floating view for the menu that aligns with the task icon. If available, the following shortcuts are present: - Widgets - App info - Install (for instant apps) It is designed to be straightforward to add to this list. Bug: 70294936 Change-Id: I56c1098353d09fc564e0e92e59e4fcf692e486ba
* Moving discovery bounce logic to a separate class.Sunny Goyal2017-12-061-0/+4
| | | | | | | Removing special transition handling around discovery bound to avoid inconsistant UI state Change-Id: Ia40bcb0719076021a6c96f1bd16d44da0286a209
* Bottom user education view shown in work tabTony Mak2017-12-041-2/+4
| | | | | | | | | | Introduced a BottomUserEducationView for similar use case. Screenshot: https://hsv.googleplex.com/4856820942241792 BUG=69963630 Change-Id: Ia818ee44fa5ce97ad1778f33e6a9a3a36cea5017
* Initial changes for handling touch events.Sunny Goyal2017-11-101-3/+5
| | | | | | | | 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
* Converting widget panel into a floating viewSunny Goyal2017-10-131-5/+18
| | | | | | | | | | | | | > The widget panel is only inflated when needed > Using the swipe up/down interaction for widgets tray > Removing additional view wrappers from all-apps > Widget tray is preserved across activity recreation > Launcher no longer has WIDGET state, the actual code around the states will be removed in a follow-up cl Bug: 67678570 Bug: 67585158 Change-Id: Ia29a7c33ec81e6c53cc24e2906b7022b6f41755b
* Converting PopupContainerWithArrow into a base class so that it is easierSunny Goyal2017-10-101-3/+3
| | | | | | | to create other types of popup Bug: 67585158 Change-Id: I966ae7bb90f941951b26feaf71b3ea30c3f3c0cc
* Allowing the widgetBottomSheet to be draggedSunny Goyal2017-10-021-20/+18
| | | | | | | | | | | | | even when the touch is started from outside the panel Removing various instanceOf checks in onNewIntent and onBackPress and moving all the corresponding logging in the FloatingView This simplifies handling of panel specific log and avoids missing a particular panel type in the if-else statement. Bug: 64751884 Bug: 64751923 Change-Id: I98f5aae18560a64be73c9efcf495479740d49a00
* Rename WidgetsAndMore to WidgetsBottomSheetTony Wickham2017-04-171-3/+3
| | | | | | | (It only contains widgets now.) Bug: 35766387 Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
* Add support for system shortcuts in popup containerTony Wickham2017-03-301-0/+3
| | | | | | | | | | | | - Currently the system shortcuts are just widgets and app info - As shortcuts, they live in ShortcutsItemView - They are populated either as icons only (if there are deep shortcuts) or as icons + text - Widgets are disabled until binding them is complete (we request for them to be bound on long-press now). We should revisit this. Bug: 34940468 Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
* Add WidgetsAndMore bottom sheetTony Wickham2017-03-301-2/+19
| | | | | | | | | | | - Contains two rows, one for widgets, and one for "configurable shortcuts" that have customization activities - Extends AbstractFloatingView and uses VerticalPullDetector for touch interactions - No way to show this currently; will add options to popup in followup Bug: 34940468 Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd
* Merge deep shortcuts in rounded rectTony Wickham2017-03-011-1/+1
| | | | | | | | | | | | | | | | | - DeepShortcutViews are added to ShortcutsItemView, which is in PopupContainerWithArrow - Moved some shortcut-specific logic to ShortcutsItemView (namely, touch/long-click handling for draggin shortcuts) - Moved round-rect clipping to PopupItemView - Removed collapseToIcon() logic, including PillWidthRevealOutlineProvider, which was only used for that purpose. It isn't necessary now that the deep shortcuts have no background themselves. - Replaced focus pill drawable with ripple effect on shortcuts and notification view. Bug: 35766387 Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
* Add basic logs for tap outside action.Jon Miranda2017-02-071-0/+2
| | | | Change-Id: I6288610b9870c3abe88794c53309b1d76dd2780f
* Refactor DeepShortcutsContainer to PopupContainerWithArrowTony Wickham2017-01-251-3/+3
| | | | | | | | | | | - Also added PopupItemView, which takes animation logic from DeepShortcutView, and which DeepShortcutView now extends. - Renamed ShortcutFilter to PopupPopulator, which has support for new item types (not yet used). Also moved populating logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator. Bug: 32410600 Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
* Refactoring floating view opening/closing logicSunny Goyal2016-10-101-0/+124
> Creating a base view for floating panels with some common methods > Moving the getOpen method to individual classes > Moving the folder icon animation logic to folder icon > Moving all the logic related for opening folder to Folder class Change-Id: I898dfb6870b857cb921d2729b89618bc43ff2e88