History log of /packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
233ee964a9ecf419a3e8330a67456d422879132d 03-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Calculating widget minSpans and spans statically/independent of orientation
> Filtering the widget list and excluding widgets which dont fit the grid
> setting minSpans for the widget item when binding.

Bug: 22541314
Bug: 22559137
Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
b1777447d9b9700b48f8060f8b318f2363c43e8d 16-Jun-2015 Winson Chung <winsonc@google.com> Refactoring fast scroller.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
ef7f874a889b609bd34e692b9c9a1f8cefd1ea95 05-Jun-2015 Winson Chung <winsonc@google.com> Refactoring all apps search to support external search bar.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
be68dcebbbe56a5063922068334565d07be6d936 09-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby
7b3bdcd6bbed929ac9492230afe8bc650a936107 04-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Consistent scrolling experience for All apps and widget tray" into ub-launcher3-burnaby
ec84728b270004494dc483c141628ec6417175fb 04-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Consistent scrolling experience for All apps and widget tray

b/21375339

Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
53d7ee4285842732517edcccbdcaa92dccb1e107 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing different bitmap sizes in different orientations

> 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
5b9ebcab3c6c55dcb7575fdbcb77020a5ad274d4 02-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Fixing preloaded widget not getting used for animation

> The preloaded widget was being set in a different instance of
PendingAddWidgetInfo and was never getting used for animation.

bug: 20699153
Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
316490e636aad788fcfbfc2e04dd4f0e145bdd00 02-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Removing some synthetic method creation

> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
ac5f6af1488ec1cf0b73aa0848a675764c2f652b 29-May-2015 Hyunyoung Song <hyunyoungs@google.com> Move fast scrolling logic to BaseRecyclerView

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
58376925f9596c23f5c9ffa6c99630dfddcfce9c 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing page background not displayed when dragging from all apps

> 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
2e6da1539bc7286336b3c24d96ab76434939ce4d 06-May-2015 Adam Cohen <adamcohen@google.com> Refactoring DeviceProfile

-> 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
2bd3d7d1cb5e4d8d826982d11b456739fed6b817 21-May-2015 Hyunyoung Song <hyunyoungs@google.com> Load PackageItemInfo in background thread to prevent ANR

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
99d950fb4dfb5cb9edaae572579fc25b2aca726f 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing unnecessary linear layout

Change-Id: I7fe423b9526805a2e84887e0437ebdc96203c263
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
f52abd7758b8f245522936e941336e574debabf5 16-May-2015 Sunny Goyal <sunnygoyal@google.com> Widget cell improvement

> 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
fe7580aac4a75dfae5e59c52608182c5e9f76011 13-May-2015 Hyunyoung Song <hyunyoungs@google.com> Set proper height of the widget tray container for preloading.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
13eb527b5ae7f564e3ace6137a8d466636d87188 12-May-2015 Winson Chung <winsonc@google.com> Exploring dense all apps layout.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
9480415d9baf00ecfaac8ab3f608b16a1faa6518 08-May-2015 Winson Chung <winsonc@google.com> Make common base class to update container bounds and to handle scroll logic.

Bug: 20763871

Change-Id: I8c2f45cfb10964e4be7e9c07c89dd336585c9989
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
e809332032c8f0c2f361eb8fc753f3b57d9cfaaa 01-May-2015 Hyunyoung Song <hyunyoungs@google.com> Set preloading for the WidgetTray recycler view.
b/20339302

Introduced a constant that we can use to tweak how much extra screen
space worth of widgets are preloaded.

Change-Id: I47f0fec134b4e268140482694a1903cf902731c6
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
559d90d0dafbac1d97a1e6f18062309831a25d51 29-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetPreviewLoader concurrency issue / Caching improvement

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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
b99ff3e83270e113f6182e337c4f7b0223bad92b 24-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> Add drop animation / Toast to widgettray

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
4cea4c830283e017fc36197cfe9d7ce713aec49d 18-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray UI tweak

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
211290119a246c85faccf77cee99a26f79347e1c 10-Apr-2015 Winson Chung <winsonc@google.com> Removing unused View ctor introduced in L.

- This prevents us from running on K/pre-K
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java
3f471440a8b6b71d4c15501a96befd3b715c9e8f 09-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray revamp work
- RecyclerView is rendering
- Animation is connected
- Drag and drop is now handled
- UI tweaking: background, margins, more to come.
- Flicker and preview not loading issue:
fixed height for the horizontal scroll view.
- Shortcuts are added
- Widget Preview loading should support shortPress for drop
- UI tweaks left: overlay of arrow when there are more items to scroll
- icons are added in the section header
- Sorting of widget sections and widget horizontal list
- Adding all the padding constants to dimen.xml file
- RecyclerView should only support one view type

For items to be addressed in follow up patches OR CLs,
TODO is added to the comment.

b/19897708

Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsContainerView.java