summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop
Commit message (Collapse)AuthorAgeFilesLines
* More tracing for b/133009122vadimt2019-06-101-0/+4
| | | | | Bug: 133009122 Change-Id: I09a95b88ea55e1759151b2bcd5ede0c1efa38e7e
* More tracing for b/133009122vadimt2019-06-071-0/+11
| | | | | Bug: 133009122 Change-Id: Ic843c3147d8a7513b6e2b8732af18458eae10d63
* Merge "Add shape detection logic only for circle icons" into ub-launcher3-qt-devHyunyoung Song2019-06-031-1/+1
|\
| * Add shape detection logic only for circle iconsHyunyoung Song2019-06-031-1/+1
| | | | | | | | | | | | b/119330044 Change-Id: I93042effa8417167d844f073275e8b941e861e60
* | Letting touch pass even in disabled statesSunny Goyal2019-05-311-10/+0
|/ | | | | | | | In disabled states, dragLayer should not receive touch anyway. Removing the additional check to avoid user getting stuck. Bug: 134062513 Change-Id: Id31a31254377e9a737ecd6e9905e66c54e4eb740
* Merge "Fix crash when launching some apps which require icons to be loaded ↵TreeHugger Robot2019-05-241-2/+2
|\ | | | | | | on the model thread" into ub-launcher3-qt-dev
| * Fix crash when launching some apps which require icons to be loaded onSunny Goyal2019-05-231-2/+2
| | | | | | | | | | | | the model thread Change-Id: I945a94c458d872b41e44b4b3a2d023f85d8a7c88
* | Moving TestInformationProvider to Launcher3 so that it can be used forSunny Goyal2019-05-231-6/+7
|/ | | | | | | | testing Launcher3 without quickstep Also keeping the provider as disabled until needed Change-Id: Ib5f459e02ae551724b390f3b74f43d601568d749
* Adding a utility class to cache views at an activity levelSunny Goyal2019-05-221-3/+2
| | | | | Bug: 122345781 Change-Id: I9a939e0b19c06c1089c1ceb515f8b97fb5dbb49e
* Adding tracing for a lab-only flakevadimt2019-05-211-0/+12
| | | | | | | | | We had a resolved case in the past where an app's context menu didn't open on a long click (thanks to app updates), now the menu opens, but the drag gesture doesn't drag the icon. Bug: 133009122 Change-Id: I45d104a92fab6556ecd937aef76f0a8147e67f56
* Using a proxy activity for startActivityForResultSunny Goyal2019-05-151-1/+24
| | | | | | | This ensures that the home task is never blocked by a different task Bug: 74500048 Change-Id: I01fd26f1d6242e39b2d8fabac5e064b748aebe62
* Fade in badges on top of icons after swipe up animation.Jon Miranda2019-05-151-61/+2
| | | | | Bug: 123900446 Change-Id: I54e367e0be72781e24d13ec6ea64dbddd85fb0bd
* Fixing insets mapping in 3-button and 2-button modeSunny Goyal2019-05-131-19/+5
| | | | | Bug: 131360075 Change-Id: If6e3a4fbb011fc313efeb91686a9d787761862c5
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-5/+168
| | | | | | | | Workspace and hotseat are drawn in rotated UI giving the impression that the device is in Portrait, even though it is in landscape Bug: 131360075 Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
* Remove tracing for fixed bugsvadimt2019-05-013-30/+0
| | | | | | Bug: 129434166 Bug: 131170582 Change-Id: Ia9b356594001d96c69ffbb7f8b767b2f54ed5feb
* Cleanup unnecessary override dump methodHyunyoung Song2019-04-251-5/+0
| | | | Change-Id: Ic2909a4d382362ddec9bcc2c738d13120e792fd8
* Add important dump loggingHyunyoung Song2019-04-251-0/+4
| | | | | | | Bug: 130851537 Bug: 119992316 Change-Id: I3de7c1d910d1aecd80b47a85284565c79fe0e2cc
* Move system gesture exclusion rect to LauncherRootViewTony Wickham2019-04-231-28/+0
| | | | | | | | We translate DragLayer when going to -1, so the exclusion rect was off screen when you went back from there. Bug: 129297464 Change-Id: Ie079b2dadaca07886408ee9c1d130d7ac351a61d
* Removing ShortcutInfoCompat and directly using ShortcutInfoSunny Goyal2019-04-222-6/+4
| | | | Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
* ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal2019-04-162-4/+5
| | | | | | Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
* Add some egregious back exclusion rectsTony Wickham2019-04-091-0/+28
| | | | | | | | - Don't allow back gesture at all whenever we hid back button before - Exclude RecyclerViewFastScroller thumb rect Bug: 129297464 Change-Id: I40a33697592b02619218c18d1b3def7c3c203f56
* Adding tracing for Lab-only flake: drag to workspace doesn't happenvadimt2019-03-273-0/+30
| | | | | Bug: 129434166 Change-Id: I4433a4848b57da42412a9108a0965ff13c708c39
* Merge "Removing fade animation on swipe up" into ub-launcher3-masterSunny Goyal2019-03-131-2/+1
|\
| * Removing fade animation on swipe upSunny Goyal2019-03-121-2/+1
| | | | | | | | | | | | | | | | Fade animation is no longer required as the transform is also handled on the main thread. So we will get the RecentsAnimaiton always after Launcher has drawn Change-Id: Ieb05406c9a5b9132b0518155bdbda16c1f73a6ec
* | Fix bugs related to swipe up to home animation.Jon Miranda2019-03-121-3/+35
|/ | | | | | | | | | - Added ConstantState support for FolderAdaptiveIcon and ShiftedBitmapDrawable. - Quick fix for NPE in Workspace#mapOverCellLayout while I investigate further. Bug: 128460496 Change-Id: I5ec02e25dcf9f17aeb37928e675a033bdc8819ae
* Merge "Fix app to folder icon animation." into ub-launcher3-masterTreeHugger Robot2019-03-051-35/+1
|\
| * Fix app to folder icon animation.Jon Miranda2019-03-051-35/+1
| | | | | | | | | | | | | | | | | | | | - Needed to account for the preview bounds (similar to BubbleTextView icon bounds) - Also needed to update the bitmap shift amount so that it is re-centered - Moved ShiftedBitmapDrawable to its own class in graphics package Bug: 123900446 Change-Id: Ifa9e3f688e55d017cf86a0285f5cdb1b014f01e6
* | Fix bug caused by trying to set background to AdaptiveIconDrawable.Jon Miranda2019-03-041-1/+2
|/ | | | | | | Solution is to flatten the drawable when useDrawableAsIs is true. Bug: 123900446 Change-Id: I3b86db201ef4fccf10ac42ec367c0538573b7ad8
* Transform closing window to icon on workspace using adaptive icons.Jon Miranda2019-03-011-53/+3
| | | | | | | | | | | | | | | | | With adaptive icons, we can have FloatingIconView match the shape and size of the closing window, regardless of the icon shape. FloatingIconView starts off as a rounded rect (same corners as task view) and then morphs into the icon shape using FolderShape#createRevealAnimator in reverse. Decided to add FeatureFlag.ADAPTIVE_ICON_WINDOW_ANIM since there are still some issues with folders, badges, and a visible jump when swapping the FloatingIconView with the original icon. Bug: 123900446 Change-Id: I94969eea6d5f4b932a84a11eb403611276042b46
* Changing min sdk to 25Sunny Goyal2019-01-292-4/+5
| | | | Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
* Rename "badges" to "dots" where appropriateTony Wickham2018-12-041-1/+1
| | | | | | | | This will reduce confusion with the other "badging" concept we use for, e.g. work profiles. It is also consistent with the external name "notification dots". Change-Id: I2a2c9d96dc0d6284eb0c48adc78a856271caad4d
* Moving some methods from various activities to the base interfaceSunny Goyal2018-11-191-0/+6
| | | | | | | | This allows creating some custom views in the absence of activity context Bug: 118758696 Change-Id: I23999290e972a2a8cbd725a521a4e0c7c2e5023e
* Moving some utility classes to icon libSunny Goyal2018-11-071-1/+1
| | | | Change-Id: I0cc19ea02fb0732e9e1778a18c0d2c229232d179
* Remove shape detection logic for icon legacy treatmentHyunyoung Song2018-10-221-1/+1
| | | | | | Bug: 117991192 Change-Id: Ife2047e7b36099daa4526c471e5c70554f068de1
* Setup make icon-loader libraryHyunyoung Song2018-10-191-8/+15
| | | | | | | | | Bug: 115891474 Test: make -j10 icon-loader Next step: Launcher will depend on icon-loader in next CL Change-Id: I797ddb857cf8be79f3be6ca2f174c593ca3713a5
* Converting long item IDs to intSunny Goyal2018-10-081-1/+1
| | | | | | | | > Items ids were already being typecasted to int when being bound on the UI > Using a consistent type allow better use of platform data-structures > Adding IntArray and IntSet as a replacement for various Collection classes Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
* Caching widget labels in icon cache to avoid lookup at startupSunny Goyal2018-09-282-13/+30
| | | | Change-Id: Ie026ee47905454bd70e774d422cd7fe142aec7e2
* Move IconNormalizer/ShadowGenerator/LauncherIcons to icons packageHyunyoung Song2018-09-261-1/+1
| | | | | | | | | Bug: 115891474 Sending out the package name changing CL first before I make LauncherIconsHandler and tests around it. Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
* Removing additional rpc due to icon cache updateSunny Goyal2018-09-211-1/+1
| | | | | | | | | | When launcher loads, it fetches the list of apps twice, once for loading all-apps and again for updating icons. Instead reusing the previously fetched apps list. Also moving the icon loading in a separate package for further generalization Change-Id: Ibd2dae56e6027a31b633da030bc6b43a90b27e1b
* Removing ViewScrim and cutom drawing codeSunny Goyal2018-09-181-10/+0
| | | | | Bug: 109828640 Change-Id: I2cab0215a32c2ca6bc331d48083fcc00ada05c3b
* Add undo snackbar for deleting itemsTony Wickham2018-08-303-4/+7
| | | | | | | | | | | - 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
* Merge "Migrating to android-x" into ub-launcher3-masterTreeHugger Robot2018-08-141-3/+4
|\
| * Migrating to android-xSunny Goyal2018-08-141-4/+4
| | | | | | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* | Removing static launcher activity dependency from FirstFrameAnimationHelperSunny Goyal2018-08-132-1/+10
|/ | | | | | | | Static dependency does not work in the presence of multiple activities and when the main activity is not Launcher (eg in fallback recents). Instead creating FirstFrameAnimatorHelper on demand for individual animations. Change-Id: I17bb69bbaaca92f0db994fb56fd784302c57d543
* Removing Launcher activity dependency on various animationsSunny Goyal2018-08-101-24/+11
| | | | | | | | | | | | | | (This cl reverts change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975) Various animations were marked for cancellation when launcher activity is destroyed. This this does not work with multiple activities (Launcher, fallback recents, shortcut confirmation). Also since launcher activity handles configuration changes, the activity is not destroyed often. Instead associating a target with various animations which automatically cancels the animations when that target goes away. Change-Id: I64cd095a28075561a9e20c9dcdeb9f90c18e1047
* Merge "Retiring some feature flags" into ub-launcher3-masterTreeHugger Robot2018-08-021-5/+3
|\
| * Retiring some feature flagsSunny Goyal2018-07-101-5/+3
| | | | | | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* | Stop DiscoveryBounce when user drags to home from Hotseat in Overview.Tracy Zhou2018-07-231-0/+3
| | | | | | | | | | | | Change-Id: I9f1ba2eef149565e6aab314a4a8376c1cb08cb60 Fixes: 111330609 Test: Manual test
* | Exposing some private methods to easily customize arrow popupSunny Goyal2018-07-111-2/+6
|/ | | | Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
* Fixing launcher going to a different state when dragging an icon from ↵Sunny Goyal2018-05-252-1/+21
| | | | | | | different activity Bug: 80191074 Change-Id: I45ea646dc2bd21627e8b724dac9c9fc23c18797d