summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix notification dot scale in AllApps with grid size enabledSamuel Fufa2019-09-271-5/+11
| | | | | | Test: Manual Bug: 141262820 Change-Id: I24abf822edaeeabf335ed698a3ac1a65b71be7dc
* Allow LongPress between homescreen iconsSamuel Fufa2019-09-241-0/+18
| | | | | | | | approach: Ignore BubbleTextView touches in padding Test: Manual Bug:141265063 Change-Id: I579d414293e922e926410d0373f101f9dde9bce0
* Update app open/close animations.Jon Miranda2019-09-041-4/+6
| | | | | | | | | | | | | | | | - For app open, the icon text remains where it is and only the icon moves. - Similarly for app close, the icon text remains where it is and fades in with the rest of the other icons text. - With this change, the original view is always "VISIBLE" (if BubbleTextView/FolderIcon) but we hide certain elements. Added video to bug. Bug: 137200188 Bug: 139885365 Change-Id: I3d20c5f05bc7c0b9d052d8074ac3bfc21531c83d Merged-In: I3d20c5f05bc7c0b9d052d8074ac3bfc21531c83d
* Remove tracing for a fixed bugvadimt2019-07-111-3/+0
| | | | | Bug: 132900132 Change-Id: Ic4ce3669f88c932e392b7517ec9fda11384dc334
* Workaround issue with latest version of RecyclerView which is overriding our ↵Adam Cohen2019-06-211-0/+13
| | | | | | | | | | custom accessibility delegate -> Not the prettiest fix, but we only ever use the LauncherAccessibilityDelegate for BubbleTextViews,so anything else getting set here is incorrect. Stop-gap until we root cause the RV issue and decide whether there's a fix there, or a better way to ensure Launcher behaves correctly. issue 129745295 Change-Id: I27cf79fda9edc2bebeda4728b776ab292caa141d
* More tracing for app not starting from all appsvadimt2019-06-131-0/+5
| | | | | | Bug: 132900132 Bug: 134172603 Change-Id: I6a85e616552e84b8165661d25ed4330f55d3946f
* Not allowing applying dot state to override "disabled" descriptionvadimt2019-05-211-2/+4
| | | | | | | | | | | | Disabled apps were always accessibility-marked like "Disabled Messenger" With introduction of dots, this degraded, the the "Disabled" part was never added. Restoring the old behavior here. Bug: 129036789 Change-Id: Icb97ea9a190643449d90f558a78039df30c53cbf
* Always place notification dots directly on adaptive icon pathTony Wickham2019-05-061-1/+3
| | | | | | | | | | | | | | | | | - Calculate point on icon path nearest to top right corner, and use that as center for the dot - Cleanup code related to dot offset Test: Set each style (different icon shape) and verify dot is in correct placement for each of: - Folders - Icons in folders - Icons in all apps - Icons on workspace Bug: 124414511 Change-Id: I036ed3677e8af222f00d4fad4a36a7e4d9b49ad9
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-2/+7
| | | | | | | | 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
* ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal2019-04-161-10/+10
| | | | | | Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
* Fix bug where BubbleTextView text fades in after long press.Jon Miranda2019-04-151-2/+1
| | | | | | Introduced by Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93. Change-Id: I45e180dda09f03297530e5b5575b71f60c03fb5f
* Fix sizing of FloatingIconView so that it matches the workspace.Jon Miranda2019-03-271-1/+2
| | | | | | | | * Added a cross fade at the end for text and shadows. * Animate in FolderIcon bg/dot/text after swapping. Bug: 129297366 Change-Id: Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93
* Fixing launcher UI not reapplied properly when IDP changed as a result of ↵Sunny Goyal2019-03-061-8/+0
| | | | | | | | | | | | display changes > Removing unnecessary check when binding model data as its safe to bind old data, we should just not persist it (that check is already there in model writer) > Adding additional check in model bind to skip old bind if there are multiple binds Bug: 126259547 Bug: 118441555 Change-Id: Ic250d2af13797d3e70c6e1fc70da65ebe6ab8d70
* Fix BubbleTextView visibilityHyunyoung Song2019-01-041-1/+4
| | | | Change-Id: I176d7c8b77f6c2d929217c3f9b4dbc3e942e48fc
* Do not animate icon if work profile is disabledHyunyoung Song2019-01-031-0/+8
| | | | | | Bug: 119884907 Change-Id: I14977581dcb42b5fb2fe21f628a4d91945fdd614
* Rename "badges" to "dots" where appropriateTony Wickham2018-12-041-47/+47
| | | | | | | | 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
* Move BadgeRenderer to iconloader libraryTony Wickham2018-11-301-20/+17
| | | | | | | - Rename BadgeRenderer to DotRenderer - Move drawing parameters to new class DrawParams - Add leftAlign param Change-Id: I69de56c13280ba5e7e1ea3868c23edfac01012e9
* Moving some methods from various activities to the base interfaceSunny Goyal2018-11-191-4/+5
| | | | | | | | This allows creating some custom views in the absence of activity context Bug: 118758696 Change-Id: I23999290e972a2a8cbd725a521a4e0c7c2e5023e
* Replacing setAlphaComponent with setAlphaComponentBound for better animation ↵Sunny Goyal2018-11-061-4/+3
| | | | | | | | | | interpolation setAlphaComponent throws expetion for invalid range, which can cause brashes in overshoot interpolation Bug: 118390004 Change-Id: Ic9c5ff3d660eba353b982c4c47ccfaf329b3e296
* Merge "Change long press timeout to use a factor of ↵Tony Wickham2018-09-261-2/+2
|\ | | | | | | ViewConfiguration.getLongPressTimeout()" into ub-launcher3-master
| * Change long press timeout to use a factor of ↵Tony2018-09-241-2/+2
| | | | | | | | | | | | | | | | | | ViewConfiguration.getLongPressTimeout() This way, if the default ViewConfiguration timeout changes, we will adjust accordingly. Bug: 113639506 Change-Id: Ic3b93311c8e8d8196db2850fa641ffc675a16fb2
* | Removing additional rpc due to icon cache updateSunny Goyal2018-09-211-2/+2
|/ | | | | | | | | | 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
* Using a placeholder icon shape instead of low-res/blurry iconSunny Goyal2018-08-271-4/+5
| | | | | Bug: 111142970 Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
* Cancel badge scale anim when setting new badge scaleTony2018-08-171-2/+27
| | | | | | | | | | | | | | | Otherwise it's possible the badge scale animation will override the non-animated set value, which could mean a badge continues to show even though it shouldn't: - Animate badge scale to 1 - Before animation finishes, set badge scale to 0 - Badge scale ends at 1, since animation wasn't cancelled, so we continue to show it indefinitely Also exported some properties in case a similar issue arises. Bug: 111791593 Change-Id: Ia1a417239b909886adf9351e9bdc06a3b22d8b73
* Migrating to android-xSunny Goyal2018-08-141-1/+2
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Adjust notification dotsTony2018-07-231-4/+8
| | | | | | | | | | | - Use consistent bounds for folders as other icons, to ensure dot has a consistent placement (moved right+up a bit) - Strengthen the ambient shadow to improve contrast - Increased blur size and opacity - Use a dark gray rather than black for dots on dark folders Bug: 73331123 Change-Id: I888f4645d3a48465af93f5003dda8f8b7c3129f3
* Unifying and maintaining the text-alpha and text visibility propertySunny Goyal2018-04-171-40/+51
| | | | | Bug: 76228194 Change-Id: I70be5f9fd22c53864a9a0308f256baa7dc1f3ab7
* Merge "Changing the overviewState to show appsearch and floating header" ↵Sunny Goyal2018-03-201-1/+1
|\ | | | | | | into ub-launcher3-master
| * Changing the overviewState to show appsearch and floating headerSunny Goyal2018-03-191-1/+1
| | | | | | | | Change-Id: I2cfd61cfc9978e4c8e4520f0f7217e49e7344c79
* | Disabling unnecessary requestLayout calls in BubbleTextViewSunny Goyal2018-03-191-10/+18
|/ | | | | | | | > Disabling layout change when updating icon, if previously set > Setting the ellipsis behavior to end, to disable relayouts when changing text Change-Id: Ic00c207c0372724daebd8ee1d748f5cf5aa56457
* Fixing taskMenu and taskView clicks in fallback activitySunny Goyal2018-03-151-16/+7
| | | | | | | > Extracting common methods from Launcher & DragLauncher to base classes > Remoting some dependencies on Launcher and using the base class instead Change-Id: I121cacf8a14190b4703cda60bdeb4f79eee69ded
* Removing click-feedback shadow generation logic in BubbleTextViewSunny Goyal2018-03-051-60/+0
| | | | | | | | Instead of animating the shadow, animating the icon scale. This avoids unnecessary bitmap creating at app-launch and also plays nice with the app-launch transition Change-Id: I1d3d24bc7212a6d659855ff1002a45388e269e52
* Set disabled state when getting new icon from DrawableFactory.Jon Miranda2018-02-271-1/+0
| | | | Change-Id: Ic9c508d24cc0e65d45f5c1f4bcbe8d5cd7fb9200
* Add notification count to content description for badged appsTony Wickham2018-02-051-0/+9
| | | | | Bug: 70389249 Change-Id: If7f43941d501ba807adbb33d489da3944c012e94
* Dominant color is part of icon cacheSunny Goyal2018-01-031-17/+11
| | | | | | | | | > Calculating extracted color during icon generation and storing it in model and DB > Removing unused logic avoid various types of badge rendering > Icons are badged with extracted colors, while folder is badged with theme color Bug: 35428783 Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
* [automerger] Also reset mBadgeScale to 0 when recycling view. am: 48043ee0d6Android Build Merger (Role)2017-11-011-0/+1
|\ | | | | | | Change-Id: I45edb03913e7cad7f670be5e5331896c30662bcc
| * Also reset mBadgeScale to 0 when recycling view.Jon Miranda2017-11-011-0/+1
| | | | | | | | | | | | | | | | | | When left as 1f, the drawBadgeIfNecessary thinks that there is still a badge -- which results in a NPE when trying to draw the badge. Bug: 68324671 Change-Id: I4eedb5825b3a6429c99de0466a77d368a39b1951
* | [automerger] Fix bug where recycled BubbleTextView kept their badges. am: ↵Android Build Merger (Role)2017-10-261-0/+9
|\| | | | | | | | | | | 5254944a68 Change-Id: Icb486e7a529aae15d5f959487c489ef1ad5798b1
| * Fix bug where recycled BubbleTextView kept their badges.Jon Miranda2017-10-261-0/+9
| | | | | | | | | | Bug: 68324671 Change-Id: Id5f4db6706afd002242d95d44422fc61042798c8
* | Merging duplicate logic for deferred drop handling in Worksace and FolderSunny Goyal2017-10-061-1/+9
| | | | | | | | | | | | | | | | > All the logic is contained in UninstallDropTarget > Also fixing a bug were mWaitingForResume was not cleared Bug: 34692289 Change-Id: I617475ce53062902d6817954fb608198e6e03d3c
* | Fixing content description of a promise icon that is fully downloaded.Mario Bertschler2017-09-271-5/+11
|/ | | | | Bug: 65779803 Change-Id: I912a70310c6a44f0b0b443cebf77608fd19bdc71
* Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler2017-08-241-2/+2
| | | | | | | | Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
* Optimizations to reduce all apps jank.Jon Miranda2017-08-021-0/+3
| | | | | | | | | | * Since adding springs to the apps in All Apps, it is no longer efficient to build a hardware layer for it. * Pre-uploads bitmaps to RenderThread. * Only add overview animations if we are transitioning to/from it. Bug: 63711551 Change-Id: I948267598e95ec59dc156acb9abe6b5b789110c0
* Don't fade in text if icon is in hotseatTony2017-06-281-1/+10
| | | | | Bug: 63011217 Change-Id: Ie914fcdfd0bf36b0cf12cc54f4e93206aa1074bd
* Fixing two different implementations for animating text alphaSunny Goyal2017-06-231-19/+3
| | | | | | | The animator in BubbleTextView maintains an internal state which was getting invalidated by the FolderAnimator. Change-Id: I53885fe8f1773ca62fe59f1712056f02ff9a749f
* Separating double shadow logic for BubbleTextView in a separate subclassSunny Goyal2017-06-231-104/+11
| | | | | | | This allows better customization and reuse of the double shadow logic and simplified various attribute management Change-Id: I5e277d8399756385452d8bb8c0a0107234a76d34
* Setting the callback for previewItems to folderIcon. This allows the ↵Sunny Goyal2017-06-221-13/+0
| | | | | | | | | | FolderIcon to get updated without going through the child'draw pass. Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls Bug: 62900800 Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
* Show and update preload icons when they are in a FolderIcon preview.Jon Miranda2017-06-201-0/+13
| | | | | Bug: 62626549 Change-Id: Ie0ad06d0239dccb8d8388381ffe845c4bbc079d6
* Portrait grid changes for Workspace/All Apps.Jon Miranda2017-06-191-0/+1
| | | | | Bug: 37015359 Change-Id: Ifbdd0e71c36e532b189e02283e3eeb562ebe2654
* Fade original icon's text in as popup closesTony2017-06-161-3/+32
| | | | | Bug: 62444131 Change-Id: If8f91d8455a5952d252f9cdd1b211afb5ee035c7