History log of /packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
26b1746593851e239bfff65ae7a69b809ad87b99 21-Mar-2017 Tony Wickham <twickham@google.com> Add support for system shortcuts in popup container

- Currently the system shortcuts are just widgets and app info
- As shortcuts, they live in ShortcutsItemView
- They are populated either as icons only (if there are deep
shortcuts) or as icons + text
- Widgets are disabled until binding them is complete (we request for
them to be bound on long-press now). We should revisit this.

Bug: 34940468
Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
d5d5e22715c19c361d264693929c15c4325e80fa 07-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Updating widget tray theme

Using standard theme attributes rather than custom color codes, so
that it plays nice with system theme changes.

Bug: 34819119
Bug: 34897402
Bug: 21446746
Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
65513ba58c7d22bae2db82be6a2bfd243d844be9 20-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Using WidgetCell in the Pin Item confirmation prompt for a consistent UI
Also fixing some platform API changes in PinItemRequestCompat

Bug: 33584624
Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
87f784c285fdeed9091a4de8b9b44db3eca677d8 11-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Removing static Context access using LauncherAppState

> This ensures that LauncherAppState is only accessed in the presence of
a valid context

Bug: 33032833
Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
a52ecb0390c85afb385371bb844bb496c59ddf87 17-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
d164b7f4abcba6cc965c2264257569f88ad5e4a5 13-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Fixing static instance of Indexer being created in the model

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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
2a65020da135037b8ee9408e7efb992eef02a896 13-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing the section break UI support

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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
abef55a1c1f1fda4f42e4b4223534dd21f3dc19f 19-Jun-2016 Andrew Sapperstein <asapperstein@google.com> Update Launcher to use theme colors.

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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
81259cd086f8d7a0451f32d6e09cbda26f85ee38 19-May-2016 Sunny Goyal <sunnygoyal@google.com> Storing the widget item views in Widget holder, to avoid looks on every bind/recycle

Change-Id: Ifad34f419b1b4f2bf97cc4ff533277867598a719
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
4ddc40130aa0460924364eab3557088421eebe0c 10-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Creating WidgetCellItem to wrap LauncherAppWidgetProviderInfo and resolveInfo
In PackageItemInfo,, using the user of the first item in the sub-list

Bug: 27585511
Change-Id: I8243f0e5c831af65661ae815489e53e9fcade837
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
16466f1bbb935d56c01b10551ead416feb7fc943 10-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Adding UI tests for various bind widget flows

Change-Id: I634302051886baee6b6424f69bc95db860b4823e
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
dfaeff757d6cefb2ed360e0f588117021b06b3f4 23-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> Manual revert due to conflict:
am: d31dcbcc7c

* commit 'd31dcbcc7c7901959c65c4e635e59274a1d4c334':
Manual revert due to conflict:
d31dcbcc7c7901959c65c4e635e59274a1d4c334 23-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> Manual revert due to conflict:

Revert "Load label in bg thread to prevent ANR b/27238970"

This reverts commit b62fd0957607ae54c7bca7ce64eed288a11f0f2f.

Change-Id: Ia751e3414fb24a18bb8bb9ca09dcd93d0e4249f6
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
1a187d4e3750e335a05eb83e73afedb8b03b3e1a 23-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Disabling som attributes so that dependencies can use compat libraries
am: e1bd986d77

* commit 'e1bd986d77afc9426e320b7cce53993086f9d8ba':
Disabling som attributes so that dependencies can use compat libraries
e1bd986d77afc9426e320b7cce53993086f9d8ba 23-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Disabling som attributes so that dependencies can use compat libraries

Bug: 27101533
Change-Id: I18de77cffbbb234f25fb85dfe0334ed7fe113a74
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
b62fd0957607ae54c7bca7ce64eed288a11f0f2f 23-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> Load label in bg thread to prevent ANR
b/27238970

Change-Id: Ic5d77df7d5276cee07861d59427a94fb19691d9c
(cherry picked from commit 72a9953cf463e0e7a8d24903f1692828ffe5b017)
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
72a9953cf463e0e7a8d24903f1692828ffe5b017 23-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> Load label in bg thread to prevent ANR
b/27238970

Change-Id: Ic5d77df7d5276cee07861d59427a94fb19691d9c
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
756cd26592dee6b956becdc24d60995c64de9153 20-Aug-2015 Sunny Goyal <sunnygoyal@google.com> General code refactoring
> Removing utility method for isAttachedToWindow
> Moving logic to calculate cell size from workspace to DeviceProfile
> Replacing some constants with xml resource variables
> Saving the item info using content values for better compatibility with other methods

Change-Id: Idd612633d97a6241cb31148df9466031374bd5a0
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
c268148f06f5c6c30deb1678e74530ef5aa85a67 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 9fc953b9 to ub-launcher3-master

Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Version code cleanup

> Renaming Lmp to Lollipop
> Lollipop_MR1 instead of directly using 22
> Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
42e28092b336bf89bee94c61e2cd327e1d8ec882 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Removing some eclipse warnings

Change-Id: I160feaee81b262be02446885fae643c0be71b7af
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
a9095e07ddd2318ceb81a2794219e07dd112df72 27-Jul-2015 Hyunyoung Song <hyunyoungs@google.com> Remove NPE inside WidgetsListAdapter during monkey actor test
b/22518383

Change-Id: I1a683c49be93af150f7873390b723cee0d4ac5df
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
6fdc2035ea04aefc09d54a1943eef168ca270d6d 15-Jul-2015 Hyunyoung Song <hyunyoungs@google.com> Widget row should not be cut off on the right, when there is an indent

b/22483452

Change-Id: I9d1cd8b71f4b6a4f75af420e9f54b73e9ae7527c
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
289ec3af9a1cd121a221235e0a27d4455e85efdf 18-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Remove DEBUG flag inside WidgetsListAdapter

Change-Id: I7e5b3162f2b3768caff7ff79fd75567a793a1f45
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.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/WidgetsListAdapter.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/WidgetsListAdapter.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/WidgetsListAdapter.java
f72eb710af8d5125d1d87ea18a94b19c9bf56cea 20-May-2015 Winson Chung <winsonc@google.com> Removing override annotation to fix build.

Change-Id: I5a4dfa339db7862ac3db4cc379469ac8d9f6fae5
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.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/WidgetsListAdapter.java
2d58471e8d3da621e209cec58a43d159778f8a0e 16-May-2015 Winson Chung <winsonc@google.com> Reducing calls to onCreateViewHolder due to animating children.

Bug 21133230

Change-Id: Ib5be0766d1ea56976195e33526d7595a16672eef
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
78b19667dad912ee6aadb9699c21e33c39ec550f 15-May-2015 Winson Chung <winsonc@google.com> Removing some dead code and extra view creation.

b/21133230
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
e3a1df20e6aa68175109c0bceb8cbf4b7fe80978 15-May-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Place the work profile badge in the correct bottom right (left for RTL) location" into ub-launcher3-burnaby
6babf2e27e6260f02751413b8f7a55e46659af27 15-May-2015 Hyunyoung Song <hyunyoungs@google.com> Place the work profile badge in the correct bottom right (left for RTL)
location

Also:
- clean up of some code
- remove requestLayout() method call that is not needed.

b/20338602

Change-Id: I65e0e1ac40da2e3fa85af4d3aca54bed3f200a99
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
7066003b2032a49ae5e59dab9b706259bdeb7e6e 14-May-2015 Sunny Goyal <sunnygoyal@google.com> Various lint error fixes.

> 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
426b94b207f0a09df5fd0826891ca2a4732aff30 13-May-2015 Hyunyoung Song <hyunyoungs@google.com> Typecast to correct LayoutParams

Change-Id: Ifdd04923563a0ef57bd281d1b55b8af0e4cc59f0
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
5cd1d92f6c40b47eff12859d4e13b6431aa778c0 13-May-2015 Hyunyoung Song <hyunyoungs@google.com> Fixing several layout issues.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
0e08f166fafd5e2a0d32e27ea510516e3f762221 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Using BubbleTextView for widget section headers

> Loading highres icons on the worker thread.

Change-Id: I5b68a86820aa4c132c156339e497354cf57f0fca
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
4b69f2ca91d63a59dfa921ba965b92de7f604f5a 11-May-2015 Hyunyoung Song <hyunyoungs@google.com> Ensure that clipping widget size is 20~40% of its width on every devices

b/20338324
b/20763871

Change-Id: I69114cb6dfec95c473313a440a6db76a052e5601
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
111c83579a165fe9d8f915cda4e08de47e16c056 01-May-2015 Hyunyoung Song <hyunyoungs@google.com> Removes code that is incompatible with google3, Velvet build rules.

Change-Id: Ibce31b52f5ffc4a03bdd48c575521c774f17a353
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.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/WidgetsListAdapter.java
f17a1c9ad99d46a65de797422fd439382114b348 28-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> Widget tray alignment according to UX spec
- 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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.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/WidgetsListAdapter.java
4e8fb91cf19b7d621de8cbed2bde2c8dac734121 12-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray improvement

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
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.java
a23dab9c646f2f59b503bc4436183d477b8ad492 10-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray UI improvement

- Long application title should be ellipsized
- Disable the drawable when the view is no longer attached to the window
- Save the PackageItemInfo to the WidgetModel once full res icon bitmap is loaded

b/19897708

Change-Id: I96f260f9d165b206905a127fcee9879556c3d0c4
/packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetsListAdapter.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/WidgetsListAdapter.java