summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Adding a utility class to listen for app launchesSunny Goyal2019-03-261-6/+3
| | | | Change-Id: I62e82a6e04b7101773d98c6e7aec574facd053fe
* Change long press timeout to use a factor of ↵Tony2018-09-241-2/+1
| | | | | | | | | ViewConfiguration.getLongPressTimeout() This way, if the default ViewConfiguration timeout changes, we will adjust accordingly. Bug: 113639506 Change-Id: Ic3b93311c8e8d8196db2850fa641ffc675a16fb2
* Migrating to android-xSunny Goyal2018-08-141-5/+6
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Moving click and long click handling for items from launcher to separate classSunny Goyal2018-03-081-8/+5
| | | | Change-Id: I1d12862205f7fa7f3671ff351e66dba58bb430e2
* Using edge effect to trigger spring animation for all apps.Mario Bertschler2018-03-081-134/+0
| | | | | | | Bug: 72811152 Bug: 72059944 Change-Id: Ied7b51caa2fb48a2fda126d59e4eaf6a35edded3
* Removing support for app prediction from Launcher3Sunny Goyal2018-01-301-59/+12
| | | | | | | Derivative projects can extend the FloatingHeader to add support to custom content in all-apps screen. Change-Id: I4e29221a72e5a077a756713a6774cda7ecde8f1b
* Removing unused app discovery supportSunny Goyal2018-01-231-30/+2
| | | | Change-Id: I670be29851b232caa5c05624ae37ae5e92a8b65f
* Update label accordingly when work mode is changedTony Mak2018-01-161-0/+6
| | | | | | | | Also, updates the work related strings accordingly. Fix: 71987096 Change-Id: Iedbf6ee04f3a165a392efdf2bd351817997817ca
* Consume work mode APITony Mak2018-01-041-17/+2
| | | | | | Fix: 69905244 Change-Id: I5958b3a2ebba2fa0e0f69448d5526dc72ed6a97b
* Make work footer stick to the bottom if there are only a few apps #2Tony Mak2017-12-151-4/+0
| | | | | | | | | | | | | | | | | 1. Move the work footer divider into the container, so it is translated with the rest of the footer. 2. Fixed the scrollbar issue in work tab by putting the footer height in AllAppsRecyclerView 3. We planned to drop the company name, and decided to use "Managed by your organisation". 4. Rename WorkModeToggleContainer to WorkFooterContainer as we are using work footer in else where. BUG: 70571983 Change-Id: I218fe7d9970780a1a457ee450f1a32e7a46d9766
* Add work profile footer in work tabTony Mak2017-11-291-6/+33
| | | | | | | | | | | | | | | Screenshot(work mode is on): https://hsv.googleplex.com/6279751685636096 Screenshot (work mode is off): https://hsv.googleplex.com/6279751685636096 TODO: It is just the UX bit, once the platform change is in, we should then consume the new API to 1. Turn on / off work mode 2. Get the organization name and set the textview accordingly. BUG=69905244 Change-Id: Id94ae57625d6b629dac89c1c28f8d65f395fff6c
* Enable work profile tab in all apps.Mario Bertschler2017-11-141-5/+7
| | | | | | | | | | This CL will bring two tabs to all apps: Personal and Work, currently only if the user has a workfile set up and behind a feature flag defaulting to disabled. Bug: 68713881 Change-Id: Ib5a558281ef3593359db3ad593ee1d0cf279f547
* [automerger] Fix bug where recycled BubbleTextView kept their badges. am: ↵Android Build Merger (Role)2017-10-261-0/+1
|\ | | | | | | | | | | 5254944a68 Change-Id: Icb486e7a529aae15d5f959487c489ef1ad5798b1
| * Fix bug where recycled BubbleTextView kept their badges.Jon Miranda2017-10-261-0/+1
| | | | | | | | | | Bug: 68324671 Change-Id: Id5f4db6706afd002242d95d44422fc61042798c8
* | Add springs when user clicks on caret / all apps snaps to top.Jon Miranda2017-09-051-1/+4
|/ | | | | Bug: 65373058 Change-Id: I9cc5c4c98fd3e5b53d597c4493f2dcef6d9be94a
* Add spring to QSB when opening all apps.Jon Miranda2017-08-231-3/+14
| | | | | Bug: 64355491 Change-Id: I760856a32779b314c8b01ef2c051985e18b68ecb
* Fix getAppPosition calculation since search divider removed from RV.Jon Miranda2017-06-271-11/+9
| | | | | | | | The app position calculations were off by 1 since the search divider used to be the first item in the RecyclerView. Bug: 38349031 Change-Id: I8c161b940ec8015aab85b0aab94718e6fee8fcbd
* Updating fast scrollbar UI in LandscapeSunny Goyal2017-06-261-10/+4
| | | | | | | | | | | Creating a separate view for FastScrollBar and moving all the relavant logic in the view. For protrait, the touch handling is delegated by the recycler view just like before. For landscape, the dcrollbar does not overlay with recyclerView and handles the touch itself Bug: 37015359 Change-Id: Ie1981326457ba739bdf0ac8063db1065f395f133
* Landscape grid changes for Workspace/All Apps.Jon Miranda2017-06-231-7/+2
| | | | | | | | This is the just first CL to get eyes on the changes. Next CL will update the All Apps to be full width. Bug: 37015359 Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
* Refactor and generalize SpringAnimationHandler.Jon Miranda2017-06-071-14/+132
| | | | | | | | | | | | | | SpringAnimationHandler is only responsible for motion tracking and updating the list of springs it is handling. Spring initialization and updates are handled by the AnimationFactory interface. This is done in preparation for future CLs where SpringAnimationHandler will be used in more cases. Bug: 38349031 Change-Id: I5ebce710cc05e4e88b708ceea5d2cfefbd0eb3d0
* Revert "Decrease jank in all apps physics."Jonathan Miranda2017-06-061-31/+17
| | | | | | | | This change created an issue where some items appear to not have springs when the device does not have that many apps. This reverts commit 9d7f2b9e0d2b40414951f3dba461c6cabc9c7cbf. Change-Id: I8e79cf3f86972fde8184debb6ab4d0f32283a8bd
* Decrease jank in all apps physics.Jon Miranda2017-06-051-17/+31
| | | | | | | | | By creating the spring in onCreateViewHolder and adding in onBindViewHolder, we are able to take advantage of RecyclerView's prefetching optimizations. Bug: 38349031 Change-Id: Ie445039fd90ca92ae4ce1ff71c57b15f662377a8
* Add physics motion to items in all apps.Jon Miranda2017-05-231-2/+37
| | | | | | | | | | Motion applied to: - Icons - Prediction icons - Prediction divider Bug: 38349031 Change-Id: I376e6e39080c8c80463a0ce8b104b05e4d576f17
* Adding support for top padding in BaseRecyclerView. The scrollbar isSunny Goyal2017-05-151-5/+0
| | | | | | | | | drawn below the top padding. Also adding callback for getting the all-apps vertical pull range so that it can be controlled by SearchUiManager Bug: 37616877 Change-Id: Ib4642073f3e92f6676caede3bddd652fda89c86f
* Moving apps search related logic into a custom layout fileSunny Goyal2017-05-081-6/+2
| | | | | | | | This will allow derivative projects to easily change the search behavior by simply overriding the xml file Bug: 37616877 Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-1/+1
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* App discovery integration in All Apps searchMario Bertschler2017-03-031-21/+39
| | | | | | | | | This is the basis for app discovery integration while searching in all apps. This does NOT include binding to the actual service and retrieving results, but instead provides all the UI to show suggested instant apps and apps from a store with star rating and pricing. Change-Id: I1605b52848491acee4ac1d15c0112e6a768363f6
* Fixing accessibility description for all-apps grid adapter.Sunny Goyal2017-02-211-6/+45
| | | | | | Only counting app icons towards various collection related info Change-Id: I2aca87e1acf6cd7bdaddfbaad174e273e8272d4b
* Removing the section break UI supportSunny Goyal2016-10-131-221/+6
| | | | | | | This was an exploration for an alternative UI in all apps, where we show section headers before every section. This was never released. Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016
* Refactor shortcuts drag and drop.Tony Wickham2016-09-231-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Instead of creating our own drag view within the container, and handling logic to determine when to start a real drag, we start the drag immediately and just defer onDragStart(). - To determine when the deferred drag should start, we add a DeferDragCondition to DragOptions. The default DeferDragCondition never defers a drag, but is overridden for apps with shortcuts to defer until the icon is dragged a given distance. - Because the drag is handled in DragController, including checking when to start the deferred drag, DeepShortcutsContainer no longer needs to handle touch events and ShortcutsContainerListener has been removed. This change has several immediate benefits: - The code is much cleaner, because it allows touch handling to be done by the DragController through the normal drag flow, without recreating logic in ShortcutsContainerListener/DeepShortcutContainer. - The janky second haptic feedback has been removed (now it vibrates when you long press, like everywhere else, but not again when the shortcuts close after dragging a distance). - Drops are animated, instead of just popping the icon back into place. Bug: 30769920 Bug: 30465972 Bug: 31533078 Change-Id: I679b412b72fbf6c3895d76963311eb5010c8e8db
* Change NavBar to transparent blackHyunyoung Song2016-08-051-2/+5
| | | | | | b/30615471 Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
* Merge "Centered all apps search text" into ub-launcher3-calgaryHyunyoung Song2016-07-211-3/+1
|\
| * Centered all apps search textPeter Schiller2016-07-191-3/+1
| | | | | | | | Change-Id: I21aaec56cd2202cea284880a28d9513435877368
* | Initial changes to tweak layout.Winson2016-07-201-0/+13
|/ | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Ensuring that fast scrolling to predictions scrolls list to the topWinson2016-07-131-4/+0
| | | | | | | | | | | | - Fixes a long standing issue with fast-scrolling to the predicted apps not quite scrolling the list to the top of the screen. - Fixes an issue where we don’t scroll exactly to the fast scroll position due to rounding - Also fixes a small issue where the thumb would not update when the fast scroll popup was no longer showing, even while dragging. Bug: 30023608 Change-Id: I6b5080c6aea521ff03dca24317f0405c02725061
* Cleaning up scrollbar logic to properly calculate stable extents.Winson2016-07-121-14/+8
| | | | | | | | | - Removing old logic which assumed that views were the same size, especially now we can have variable dividers, etc. - Simplifying old scroll position logic. - Removing unnecessary prediction icon layout (same as normal icon) Bug: 30023608 Change-Id: I39e1126fa586a76a9bdd3ff38cd6e360ac3021e6
* Consolidate all the dividers to provide same look and feelPeter Schiller2016-07-081-59/+74
| | | | | Bug: 30017936 Change-Id: I072cb116dba1df555a63f3f67b730f7f9c3a235a
* Updating alignment of search inputPeter Schiller2016-07-071-1/+0
| | | | | Bug: 30017936 Change-Id: I2f68711762872bc100b41b2b4768d33e2c0cd902
* Long-press on an app to reveal its shortcuts.Tony Wickham2016-06-291-12/+13
| | | | | | | | | | | | | | | - Add ShortcutsContainerListener to icons on workspace, folders, and all apps. This handles long-press and forwards following touches to the DeepShortcutsContainer that is created. - Drag over shortcut before lifting finger to launch it. - Shortcuts are rendered in pill-shaped DeepShortcutViews, which are inside DeepShortcutContainer on DragLayer. - The shortcut container orients above or below the icon, and left or right-aligns with it. Biases for above + left-align. - Long press a DeepShortcutPill to drag and pin it to the workspace. Bug: 28980830 Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
* Update Launcher to use theme colors.Andrew Sapperstein2016-06-201-1/+1
| | | | | | | | | | | | | | | | | | | Instead of using hard-coded variants of colors, use the theme color that corresponds (colorAccent, colorPrimary, etc). Updated: - "Search for more apps" text - App info drop target hover color - PageIndicatorDots - All apps & widget scroll bar & scroll popup colors - All apps section text color - widget picker background color TODO: - widget picker header color BUG: 28625102 Change-Id: I74b543ff71b8caef8cd950c8183ac84c759cb4d5
* Moving LauncherAccessibilityDelegate to Launcher to associate it withSunny Goyal2016-06-171-4/+2
| | | | | | activity lifecycle. Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
* Merge "Updating the app search buton text" into ub-launcher3-calgarySunny Goyal2016-06-081-21/+1
|\
| * Updating the app search buton textSunny Goyal2016-06-071-21/+1
| | | | | | | | | | Bug: 28774501 Change-Id: I268a2d98f70d160c91ebd8fc796f3626ae67c159
* | Unifying focus indicator handling for workspace and all-appsSunny Goyal2016-06-081-13/+10
| | | | | | | | | | | | | | Adding an abstract FocusIndicatorHelper based on FocusIndicatorView which draws the background instead of using a dummy view. Change-Id: Id560195323d2ddad8fcd77ba675cf3f4fd4a94ab
* | Ensure that custom actions are available to all apps itemsAdam Cohen2016-06-071-0/+4
|/ | | | | | | | | | -> When BubbleTextViews were being recycled, the RecyclerView was clearing the AccessibilityDelegate. Ensure that this is reset by the adapter when a BubbleTextView is reused. issue 25948877 Change-Id: I95dd21bfdcd602a67925d1b8f06e6ca92d1d7203
* resolve merge conflicts of 2494c3f168 to ub-launcher3-calgarySunny Goyal2016-03-031-54/+38
|\ | | | | | | Change-Id: I807016057da9b867ebb2c8f3ee2027a3a2688d30
| * Moving createMarketSearchIntent to search controller to allow it to be ↵Sunny Goyal2016-03-031-53/+36
| | | | | | | | | | | | customizable Change-Id: I3a05abf7c0357a2f92c8a3fa2dc223f9eacc221e
| * Starting market search whenever the search key is pressedSunny Goyal2016-03-031-1/+1
| | | | | | | | | | | | Bug: 27365428 Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef (cherry picked from commit 992a5f566e7f1b1fc8bd766f1fd00bee7ea2a634)
* | Starting market search whenever the search key is pressedSunny Goyal2016-03-021-1/+1
| | | | | | | | | | Bug: 27365428 Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
* | Removing LauncherCallbacks control over app searchSunny Goyal2016-02-181-1/+1
|\| | | | | | | | | | | | | am: c42ac0a5a6 * commit 'c42ac0a5a6f0a4e41a9fc1b694f841204ae1989c': Removing LauncherCallbacks control over app search