summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/widget
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring fast scroller.Winson Chung2015-06-232-36/+33
| | | | | | | | | | | | | - Fixing issue with fast scroller not fitting name width. - Refactoring fast scrolling/scroll bar code out of base recycler view - Adding animations to fast scroller to match design - Smooth scrolling when jumping between app rows - Fixing issue with fast scroller jumping when you first pick it up - Fixing issue with wrong background paddings being used Bug: 21874346 Bug: 22031923 Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
* Remove DEBUG flag inside WidgetsListAdapterHyunyoung Song2015-06-171-1/+1
| | | | Change-Id: I7e5b3162f2b3768caff7ff79fd75567a793a1f45
* Refactoring all apps search to support external search bar.Winson Chung2015-06-152-35/+14
| | | | | | | | | | | | | | | | | | | | | - Adding support for an external search bar that can be used to search a container view. This adds a new interface AllAppsSearchController which manages the external search bar. Each controller will have its own search implementation which means that we no longer need a common AppSearchManager interface. - Removing elevation controller as we no longer have a builtin search bar in all apps - Refactoring container view insets so that they behave the same in all containers. - Refactoring apps view to ensure that we only update the number of columns with the available width - Cleaning up LauncherCallbacks interface Bug: 20127840 Bug: 21494973 Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
* Merge "Make WidgetsRecyclerView not crash on MNC support lib" into ↵Hyunyoung Song2015-06-091-2/+6
|\ | | | | | | ub-launcher3-burnaby
| * Make WidgetsRecyclerView not crash on MNC support libHyunyoung Song2015-06-081-2/+6
| | | | | | | | Change-Id: Ia7bee39752ad0c0b58e74df4507caaf7a3cd8c29
* | Merge "Fixing preloaded widget not getting used for animation" into ↵Sunny Goyal2015-06-083-127/+64
|\ \ | |/ |/| | | ub-launcher3-burnaby
| * Fixing preloaded widget not getting used for animationSunny Goyal2015-06-023-128/+64
| | | | | | | | | | | | | | | | > The preloaded widget was being set in a different instance of PendingAddWidgetInfo and was never getting used for animation. bug: 20699153 Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
* | Improve AyncTask throughput inside WidgetPreviewLoaderHyunyoung Song2015-06-052-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/21133230 > Synchronized block was creating a bottleneck for the AsyncTasks. > Remove calls that doesn't need to be synchronized outside synchronized block. > Also removed setAlpha call as after the bottleneck was removed, Inefficient alpha view usage alert started popping up in traceview. Due to less jankness, removing the fadein animation doesn't have any visible effect. Link to lock congestion visualization: https://x20web.corp.google.com/~hyunyoungs/no_crawl/traceview/traceview_lockcontention.html Result: gfx-avg-jank delta = "-1" Change-Id: If12817df0730f346cdba7e2f38f232eb9a4336c0
* | Merge "Consistent scrolling experience for All apps and widget tray" into ↵Hyunyoung Song2015-06-042-11/+68
|\ \ | | | | | | | | | ub-launcher3-burnaby
| * | Consistent scrolling experience for All apps and widget trayHyunyoung Song2015-06-042-11/+68
| | | | | | | | | | | | | | | | | | b/21375339 Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
* | | Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | > Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
* | | Merge "Stylus support: creating and setting listeners for stylus button ↵Mady Mellor2015-06-031-0/+13
|\ \ \ | |_|/ |/| | | | | press" into ub-launcher3-burnaby
| * | Stylus support: creating and setting listeners for stylus button pressMady Mellor2015-06-021-0/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates almost(*) all locations that use a long press listener to also set a custom touch listener that recognizes the stylus button press action. The stylus button press action is: when a stylus touches a view while the primary stylus button is pressed which may occur on a DOWN or MOVE event. *The location this is *not* enabled for is: Longpress to enter "overview" mode -- this isn't really a selection or drag n drop action; it is also easy to accidentally do this while using the stylus gesture to drag n drop items which is not an ideal interaction. Also not set for the "cling" that demonstrates this. Bug: 20430722 Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca
* / Removing some synthetic method creationSunny Goyal2015-06-022-3/+5
|/ | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* Move fast scrolling logic to BaseRecyclerViewHyunyoung Song2015-05-293-3/+75
| | | | | | | | | | - This change has no effect on actual functionality but to make it easier for widget tray to inherit the goodness of the 1) fast scroller functionality 2) unify the scroll look and feel with the all apps view b/21375339 Change-Id: Ib859b1c3352c0b69f16549ded8f20eb82cf58ba8
* Fixing page background not displayed when dragging from all appsSunny Goyal2015-05-271-15/+6
| | | | | | | | | > Adding empty page synchronously, instead of waiting for a frame > Changing launcher state from widgets screen in the same frame, similar to all apps > Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag > Using first page to get page bounds in drag layer, as last page may not have been measured Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
* Moving all apps code into sub package.Winson Chung2015-05-221-6/+6
| | | | | | | - Renaming resources, dimens, etc to be more consistent - Removing old AppsCustomize resources and other unused code Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
* Refactoring DeviceProfileAdam Cohen2015-05-214-24/+28
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Load PackageItemInfo in background thread to prevent ANRHyunyoung Song2015-05-214-198/+6
| | | | | | | | | | | - Decoupled widget model from widget view, and placed the creation to LauncherModel. - As a result packagemanager operation, iconcache retrieval is all done inside LauncherModel on background thread b/21311085 b/21325319 Change-Id: I294698527db58b89f3da558090a367530c058776
* Removing unnecessary linear layoutSunny Goyal2015-05-201-1/+1
| | | | Change-Id: I7fe423b9526805a2e84887e0437ebdc96203c263
* Removing override annotation to fix build.Winson Chung2015-05-201-1/+0
| | | | Change-Id: I5a4dfa339db7862ac3db4cc379469ac8d9f6fae5
* Unify sorting between all apps and widget trayHyunyoung Song2015-05-191-12/+6
| | | | | | | | | | | | | | | | | - selected locale names are shown before latin - case independent sorting - main app > enterprise app Future possible refactoring: - Move all the *ItemInfo data structures to model package - Rename the comparator based on NOT what data structure it supports but what functionality it supports (locale? case independent? main app > enterprise app?) b/21271658 b/20339403 Change-Id: I8a776467392e21d5014e85cd3f51931a3ef89724
* Widget cell improvementSunny Goyal2015-05-194-78/+95
| | | | | | | | | > Using a custom view for preview, instead of extensing image view > Preventing relayout when applying preview > Removing unnecessary method calls Bug: 21133230 Change-Id: Iab12fa1e5c871ee43a9fb0e6b6af897fecfb345f
* Reducing calls to onCreateViewHolder due to animating children.Winson Chung2015-05-152-0/+10
| | | | | Bug 21133230 Change-Id: Ib5be0766d1ea56976195e33526d7595a16672eef
* Removing some dead code and extra view creation.Winson Chung2015-05-152-13/+7
| | | b/21133230
* Merge "Place the work profile badge in the correct bottom right (left for ↵Hyunyoung Song2015-05-153-28/+13
|\ | | | | | | RTL) location" into ub-launcher3-burnaby
| * Place the work profile badge in the correct bottom right (left for RTL)Hyunyoung Song2015-05-143-28/+13
| | | | | | | | | | | | | | | | | | | | | | | | location Also: - clean up of some code - remove requestLayout() method call that is not needed. b/20338602 Change-Id: I65e0e1ac40da2e3fa85af4d3aca54bed3f200a99
* | Various lint error fixes.Sunny Goyal2015-05-141-4/+8
| | | | | | | | | | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* | Set proper height of the widget tray container for preloading.Hyunyoung Song2015-05-131-1/+3
|/ | | | | | | | - previous height value was 0 before, now set it to proper height. However, getExtraLayoutSpace still worked because the super method set extra space (1 screen worth) only when ScrollState is non idle. Change-Id: Ifbaa6a105fe392735e106996d1f08276e678ebcb
* Typecast to correct LayoutParamsHyunyoung Song2015-05-121-3/+4
| | | | Change-Id: Ifdd04923563a0ef57bd281d1b55b8af0e4cc59f0
* Fixing several layout issues.Hyunyoung Song2015-05-123-109/+34
| | | | | | | | | | | | | | - N7/N9 indented area should not block scroll view - separator at the end of the widget cell should not show up on the last item. Not covered in this CL: - Guarantee that last item is showing only 20~40%. Right now, the hand picked constant works for N5,6,7,9 b/20338324 b/20763871 Change-Id: I274ab95c6c3e2fc8be8ceafb2e8172c0174a41a5
* Merge "Using BubbleTextView for widget section headers" into ↵Sunny Goyal2015-05-121-13/+4
|\ | | | | | | ub-launcher3-burnaby
| * Using BubbleTextView for widget section headersSunny Goyal2015-05-121-13/+4
| | | | | | | | | | | | > Loading highres icons on the worker thread. Change-Id: I5b68a86820aa4c132c156339e497354cf57f0fca
* | Exploring dense all apps layout.Winson Chung2015-05-111-1/+1
|/ | | | | | | | | - Disabling section headers in all apps on tablet layouts - Fixing issue with predictions not showing on rotation - Fixing issue with over-aggressive dismissing of keyboard & filtered app state - Fixing issue where the container bounds were running straight up to the nav bar Change-Id: I5a5a56afa75b50be96af4894bf785ffbb1b15fb3
* Merge "Ensure that clipping widget size is 20~40% of its width on every ↵Hyunyoung Song2015-05-113-2/+119
|\ | | | | | | devices" into ub-launcher3-burnaby
| * Ensure that clipping widget size is 20~40% of its width on every devicesHyunyoung Song2015-05-113-2/+119
| | | | | | | | | | | | | | b/20338324 b/20763871 Change-Id: I69114cb6dfec95c473313a440a6db76a052e5601
* | Trim all whitespace from titles and labels.Winson Chung2015-05-082-5/+4
|/ | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* Make common base class to update container bounds and to handle scroll logic.Winson Chung2015-05-082-66/+16
| | | | | | Bug: 20763871 Change-Id: I8c2f45cfb10964e4be7e9c07c89dd336585c9989
* Adding abstract methods for new RecyclerView lib.Winson Chung2015-05-071-0/+4
| | | | Change-Id: I50c3dfaecd79a87340ed4eeaa3195a26311062e0
* Explorations in dense grids for all apps.Winson Chung2015-05-061-1/+1
| | | | | | | | | | | - Adds sticky section headers - Removing AppsListAdapter - Adding search bar field - Subtitle filtering Bug: 20222023 Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
* Fix build in ub-launcher3-masterAdam Cohen2015-05-061-7/+17
| | | | | | -> Stop depending on new RecyclerView methods Change-Id: Ib2c58b24e2b796e6e7b3cd5e4bb927dc3f11faf2
* Make drag and drop also work when the widget tray is still in scroll mode.Hyunyoung Song2015-05-062-90/+80
| | | | | | b/20698514 Change-Id: Ic075f0016d5e00bbdec193bbcd2e311da1957388
* Set preloading for the WidgetTray recycler view.Hyunyoung Song2015-05-011-1/+12
| | | | | | | | | b/20339302 Introduced a constant that we can use to tweak how much extra screen space worth of widgets are preloaded. Change-Id: I47f0fec134b4e268140482694a1903cf902731c6
* Removes code that is incompatible with google3, Velvet build rules.Hyunyoung Song2015-04-301-4/+0
| | | | Change-Id: Ibce31b52f5ffc4a03bdd48c575521c774f17a353
* WidgetPreviewLoader concurrency issue / Caching improvementHyunyoung Song2015-04-284-20/+21
| | | | | | | | | | | | | | 1) Concurrency issue: unused bitmap was not properly synchronized which caused concurrency issue. Hence, leading current widget tray implementation to not use it. (a.k.a. cancel(false)). Issue fixed and now using the unused bitmap pool. 2) Caching improvement: LoadedBitmap cache was a legacy support system for the old widget tray implementation. On our latest implementation, cache and recycled view is completely being managed by the recycler view. Hence removed. Change-Id: I843e6a286b676f283172f2c1ef5cbeed0a9fb17f
* Widget tray alignment according to UX specHyunyoung Song2015-04-272-16/+14
| | | | | | | | | - Fixing an issue where widget preview is not loaded do to faulty canceling of loading async task when view is detached from the window. b/20338334 Change-Id: I1e3bd6b6cdafda8d1e0a7a0e87c8089100c341a7
* Add drop animation / Toast to widgettrayHyunyoung Song2015-04-234-190/+291
| | | | | | | | | | | - show instruction toast on clicking the widget - Add animation when widget drops on the workspace. Added WidgetHostViewLoader to handle short press and assign widget host view to enable animation b/19897708 Change-Id: Iec36d72cb21bf09343d0beeb31a09bf8b0cb5e0d
* WidgetTray UI tweakHyunyoung Song2015-04-192-6/+4
| | | | | | | | | | | - set fixed image view width - fade in when widget bitmap populates - widget dimension is next to the widget name text. - elevation of the widgets content and the reveal view is the same b/19897708 Change-Id: Ia656144412e7d63a491ce67ff15fb58c05d9a9d9
* Fix null pointer exception in WidgetsModelHyunyoung Song2015-04-141-0/+2
| | | | | | | | | | Due to not clearing the PackageItemInfos list when uninstall happened, uninstalled PackageItemInfo lingered around when there wasn't associated Widgets to it. Hence causing null pointer exception. b/20216900 Change-Id: I5601cf618079044d24ffc3ee835c1468fa2e9371
* WidgetTray improvementHyunyoung Song2015-04-134-64/+48
| | | | | | | | | | | | | | | | | | UI - Fixing the issue of widget row not rendering - Moved the resetting of previous bitmap to the start of onBind instead of the onDetachedWindow. Performance - WidgetModel do not have to keep packageName list around. Will com in immediate follow up CLs - use lowRes widgets bitmap before fully loading the fullRes one. - application icons are fully loaded in background thread. b/19897708 Change-Id: I5b3b43a5c543a5135c395f90df32e66d57dc86e0