summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps
Commit message (Collapse)AuthorAgeFilesLines
...
* | | All Apps transition with gradient and scrim.Mario Bertschler2017-05-032-3/+47
| | | | | | | | | | | | | | | | | | | | | The transition is behind a feature flag and turned off by default. Change-Id: I155840ba82b5a573d874376797db5f739a52d706
* | | Merge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorvalTony Wickham2017-04-261-5/+9
|\| | | | | | | | | | | | | | | | | am: d570c0401c Change-Id: Ife54bfe7a33d98bae7e71cecdc577e70fe6997e6
| * | Fix updateIconBadges() in All AppsTony Wickham2017-04-261-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of notifyItemChanged(), we iterate over children of the RecyclerView itself and call applyBadgeState() on affected icons. This is the same logic we do for the workspace. Issues this fixes: - Icons flash when dismissing notifications - Badge reappears on the icon while popup is open Change-Id: I5c69d5c6bd47630c0241666b5f7f6f7ca97118f9
* | | Minor Refactoring only: no functional changeMario Bertschler2017-03-283-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* | | Show recently used instant apps provided by the app discovery service in the ↵Mario Bertschler2017-03-231-2/+16
|\| | | | | | | | | | | | | | | | | | | | | | | same section as installed apps. am: 853c13d427 Change-Id: I852e85f5b715d7f9ecc903bb0b9020e87c19cd99
| * | Show recently used instant apps provided by the app discovery serviceMario Bertschler2017-03-231-2/+16
| | | | | | | | | | | | | | | | | | in the same section as installed apps. Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e
* | | Fixes a crash in the AllAppsFastScrollHelper where on updating the activated ↵Mario Bertschler2017-03-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flag on the views it was trying to retrieve an item from the model for a non-existing position in the model. The fix is to check the position to the model size. It's not clear in what circumstance the model (ArrayList) can differ to the position returned from the view-holder's getAdapterPosition(). Bug: 36176501 Change-Id: I01b8daaad884702f9ed0e1caaa03d0ebaca69d39
* | | Add support for making nav bar light separately from status barTony Wickham2017-03-211-1/+1
|\| | | | | | | | | | | | | | | | | am: ed68728b1f Change-Id: Idfc723333b6186e84125894c822e1d820294d3d6
| * | Add support for making nav bar light separately from status barTony Wickham2017-03-201-1/+1
| | | | | | | | | | | | | | | Bug: 34940468 Change-Id: Ie5543895e4c8b8753c84ef24633377cc985efc0d
* | | Merge "Move some code from AllAppsTransitionController to ↵Tony Wickham2017-03-202-29/+37
|\| | | | | | | | | | | | | | | | | | | | | | | VeriticalPullDetector" into ub-launcher3-dorval am: 3c2cbd8ad4 Change-Id: Ib38f43b92ba778e789accbecd42e4aff7ee40d63
| * | Move some code from AllAppsTransitionController to VeriticalPullDetectorTony Wickham2017-03-202-29/+37
| | | | | | | | | | | | | | | | | | | | | | | | This makes VerticalPullDetector more generic and able to be used elsewhere. Bug: 34940468 Change-Id: I78f70529cb30e5c9e7748ca548f2d638c6d0811f
* | | Show promise app icon progress in All Apps and setup market intentMario Bertschler2017-03-201-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on clicking promise app icon in All Apps. Only the progress will be changed with animation on progress update, no relayout is performed. If the icon is newly bound, the progress will not be animated. Bug: 23952570 Change-Id: I98d3f945f08a2abadf53f20e6007c15e56d5d410
* | | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-2/+2
|/ / | | | | | | | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* | App discovery integration in All Apps searchMario Bertschler2017-03-035-74/+202
| | | | | | | | | | | | | | | | | | 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
* | Removing custom state definition from FastBitmapDrawableSunny Goyal2017-02-231-32/+16
| | | | | | | | | | | | | | > For Fast scrolling, using state list animator defined in xml > For Pressed state, using onState change method in a drawable Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
* | 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
* | Simplifying some launcher themesSunny Goyal2017-02-162-6/+2
| | | | | | | | | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* | Gracefully ignore items that don't support notificationsTony Wickham2017-02-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | PackageUserKey is only meant to be used for items that support notifications, so when trying to update it for an item that doesn't, we don't use it to check if the item has notifications. This fixes a crash that happens when trying to update notifications for a legacy shortcut, as such a shortcut doesn't have a component on its intent, which we were trying to use to populate PackageUserKey. Bug: 34842278 Change-Id: I8c69ccebbf9d93505d5b29ecd25d76c65610ddc4
* | Add NotificationListener to launcher.Tony Wickham2017-01-251-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - NotificationListener extends NotificationListenerService, and is added to the manifest. - Added PopupDataProvider, which contains logic for storing and interacting with data that goes into the long-press popup menu (shortcuts and notifications). A follow-up CL will rename DeepShortcutsContainer to a generic PopupContainerWithArrow. - If Launcher has notification access, NotificationListener will get callbacks when notifications are posted and removed; upon receiving these callbacks, NotificationListener passes them to PopupDataProvider via a NotificationsChangedListener interface. - Upon receiving the changed notifications, PopupDataProvider maps them to the corresponding package/user and tells launcher to update relevant icons on the workspace and all apps. This is guarded by FeatureFlags.BADGE_ICONS. Bug: 32410600 Change-Id: I59aeb31a7f92399c9c4b831ab551e51e13f44f5c
* | Merge "Creating AllAppsBackgroundDrawable using DrawableFactory to allow ↵Sunny Goyal2017-01-112-50/+65
|\ \ | | | | | | | | | easier overriding using derivative projects" into ub-launcher3-master
| * | Creating AllAppsBackgroundDrawable using DrawableFactory to allowSunny Goyal2017-01-082-50/+65
| | | | | | | | | | | | | | | | | | easier overriding using derivative projects Change-Id: I7265d888876ea0928391f76ec1bcb7d928c0f27a
* | | This enables to slide up All Apps from anywhere in the workspace,Mario Bertschler2017-01-091-27/+1
|/ / | | | | | | | | | | | | | | | | | | not only over the hotseat. The tricky part handling with scrollable widgets is solved by setting requestDisallowInterceptTouchEvent from within the widget view host (and resetting it upon performing long click). Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
* | Merge "Removing all compatibility code below Lollipop" into ub-launcher3-masterSunny Goyal2016-12-292-91/+37
|\ \
| * | Removing all compatibility code below LollipopSunny Goyal2016-12-162-91/+37
| | | | | | | | | | | | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* | | Nav bar should change to light theme in sync with the status barHyunyoung Song2016-12-191-1/+1
|/ / | | | | | | | | | | | | | | | | b/33708486 Nav bar should be in sync with status bar in all apps screen. Nave bar should not change with status bar when in workspace mode. Change-Id: Ib5a0d33d3e38f1b3ffa9693657ba7de3b6e01fed
* | No more UserHandleCompatSunny Goyal2016-12-152-8/+9
| | | | | | | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* | Using java_style enum generation for protoSunny Goyal2016-12-152-10/+12
| | | | | | | | | | | | | | This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
* | Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-151-7/+0
| | | | | | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* | Merge "Refactoring FlingToDelete" into ub-launcher3-masterSunny Goyal2016-12-141-13/+0
|\ \
| * | Refactoring FlingToDeleteSunny Goyal2016-12-131-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Moving all fling related logic to FlingToDeleteHelper from DragController > Removing fling related methods from DragSource and DropTarget > Moving fling animation logic from DeleteDropTarget to FlingAnimation > Simplifying DropTargetBar to directly look for all valid drop targets. This makes it easier to add new DropTarget in xml. Change-Id: I7214d2d30c907ab93c80d92d9f9be6dda2d63354
* | | Merge "Don't let AllAppsTransitionController intercept when a floating view ↵Tony Wickham2016-12-142-5/+4
|\ \ \ | |/ / |/| | | | | is open." into ub-launcher3-master
| * | Don't let AllAppsTransitionController intercept when a floating view is open.Tony2016-12-122-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | Previously we checked for deep shortcuts when closing all apps by swiping down. Now we check any AbstractFloatingView, and when swiping up. Bug: 33542711 Change-Id: I860eb55c69567a92cd626e966bf881b7d1bffc6e
* | | nav bar on all apps container should use light theme.Hyunyoung Song2016-12-122-1/+5
|/ / | | | | | | | | b/33553066 Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2
* | Bug fix: QSB sometimes gets stuck to transparent.Sunny Goyal2016-11-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At some places, we were calling removeAllListeners before calling cancel on an animation. AnimationListeners are also used to track states, and removing listeners before canceling will prevent onAnimationEnd to be called, thus preventing state cleanup. PinchAnimationManager was causing ZeroAlphaAnimatorListener to be removing from Qsb alpha animation, making the MultiStateAlphaController think there is a zeroAlpha animation running. > Removing all instances of removeAllListeners > Updating various affected listeners to handle onAnimatinoCancel > Fixing WorkspaceStateTransitionAnimation, which was animation QSB alpha on page scroll index Bug: 31910152 Change-Id: Ie7f31b67d4c502badcdd41f7b04867d1f35f5d27
* | Merge "Moving saving state transtion listener logic to individual views" ↵Sunny Goyal2016-11-181-26/+1
|\ \ | | | | | | | | | into ub-launcher3-master
| * | Moving saving state transtion listener logic to individual viewsSunny Goyal2016-11-141-26/+1
| | | | | | | | | | | | Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb
* | | Using dimension defined for all apps search bar height.Jon Miranda2016-11-111-1/+6
|/ / | | | | | | | | | | | | | | In portrait multi-window mode, hotseat cell height is too small. Found that there was already a resource for all_apps_search_bar_height so using that instead. Change-Id: I56647eb55a7808e93bdcbb3334b1513f6ac23d7c
* | Merge "Use display metrics from resources." into ub-launcher3-masterJonathan Miranda2016-11-081-6/+2
|\ \
| * | Use display metrics from resources.Jon Miranda2016-11-071-6/+2
| | | | | | | | | | | | Change-Id: If23071528f76b2c7825337b1bc7ac7570b8844ed
* | | Use insets and hotseatCellHeightPx to set search container height.Jon Miranda2016-11-071-1/+2
|/ / | | | | | | | | | | | | | | In a previous refactor, I mistakenly used hotseatBarHeightPx instead of hotseatCellHeightPx. Bug: 32176631 Change-Id: I53ef8fa29a6980dcb33bb979d1bed98317c8ade2
* | Fix bug where AllApps shadows weren't being completely clipped.Jon Miranda2016-11-071-5/+7
| | | | | | | | | | | | | | | | Worked fine in normal launcher conditions, but surfaced when using AllApps in multi-window mode. Bug: 32176631 Change-Id: Ic973f707a69dd5d8c5eafa0dc2d154aa6ab0e001
* | Merge "Simplifying mapCoordInSelfToDescendant" into ub-launcher3-masterSunny Goyal2016-11-071-1/+1
|\ \
| * | Simplifying mapCoordInSelfToDescendantSunny Goyal2016-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | > Removing new object creation (during draw and touch handling) > Simplifying matrix operation to call invert only once at the end Change-Id: Iffadd6e9d84997baa36719ed688a7c3c1027e839
* | | Fixing same drawable instance being used with 2 viewsSunny Goyal2016-11-011-0/+21
|/ / | | | | | | | | | | | | | | Drawable contain a reference to the view which is used to invalidate the view. If the same drawable is used with two views, only once view will get invalidated. Bug: 32575647 Change-Id: Ia22310a6bda55ce0a591712761ec8ab1cdbaccdf
* | Fixing text search where a word starting with lower case was not being matchedSunny Goyal2016-10-201-1/+1
|\| | | | | | | | | | | am: 28a64381b6 Change-Id: Ib5158d42219478c97d6bec5049e3354ee1087094
| * Fixing text search where a word starting with lower case wasSunny Goyal2016-10-191-1/+1
| | | | | | | | | | | | | | not being matched Bug: 32249413 Change-Id: I0f5e24052759a734fe0df3bd3d0bf2e7ef7f2713
| * Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ↵Tony Wickham2016-10-123-3/+3
| |\ | | | | | | | | | ub-launcher3-calgary-polish
| * \ Merge "Agressively change the color of the the all apps background during ↵Hyunyoung Song2016-09-301-3/+9
| |\ \ | | | | | | | | | | | | pull up b/30502942" into ub-launcher3-calgary-polish
* | | | Fixing static instance of Indexer being created in the modelSunny Goyal2016-10-192-12/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indexer depends on the locale and should be created when ever the config changes. Moving the widget indexing to the adapter (similar to allApps) which gets created whenever the activity is recreated. This fixes the bug where widgets indexing breaks if locale changes while launcher process is alive Also fixing the bug in widget model cloning where the HashMap was not cloning the underlying ArrayList Change-Id: I7dbe6290e73299c4c07aa7fa564077a2649e1a4c
* | | | Merge "Show error toast messages when there is no room for the item when ↵Jonathan Miranda2016-10-181-19/+0
|\ \ \ \ | | | | | | | | | | | | | | | icon is not to be added to folder." into ub-launcher3-master