History log of /packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/AppWidgetResizeFrame.java
e09bacc1ef50aa7c4fe551a7360d7f5613927ee9 09-Jan-2017 Jonathan Miranda <jonmiranda@google.com> Merge "Fixed mw bug where resize frame is off when resizing." into ub-launcher3-master
9f33cb2ce23a8474a707ddd6ccc86f9f1aa6a397 03-Jan-2017 Jon Miranda <jonmiranda@google.com> Bind the out IntRange using its start and end values.

In applyDeltaAndBound, we add the current IntRange values
+ delta param to the outbound IntRange -- but then we only
bind based on the current IntRange values, so the out IntRange
values can end be out of bounds.

Change-Id: Ibbaae8c2c2734107d1fd7ce8a59a4c66d83068ad
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
097a725bb8d5a4c7322b3ddfb1861e52a1ba457c 28-Dec-2016 Jon Miranda <jonmiranda@google.com> Fixed mw bug where resize frame is off when resizing.

When a widget resizes in multi-window mode (ie. user is dragging
the resize frame), the frame is misaligned until the user lets go.
This is because the translation value to center fit the resized
widget is not taken into consideration.

Bug: 32176631
Change-Id: I6f9ee7be12d3266f021796576c771f86f6120246
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
2126691ce23b4c62e6d17cb9643faf4c2b3886da 19-Dec-2016 Jon Miranda <jonmiranda@google.com> Fix widget reorder animations in multi-window mode.

The original animation assumed that the views are not
translated and not scaled. In multi-window mode this
assumption is no longer valid, because app widgets are
scaled and translated to fit center within their cells.

Bug: 32176631
Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
26e4d17a73bc4857d3ae5ddb9858cbea6ed9782a 13-Dec-2016 Jon Miranda <jonmiranda@google.com> Resize widget frame now wraps the scaled widget view.

Previous implementation had space between the frame and
the widget ie. letterboxing.

Bug: 32176631
Change-Id: Ie50279f4edb94812120dea492aefa4f18218162f
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
7ae64ffbe11a629e54ced0c5c99cd47228b28821 22-Nov-2016 Jon Miranda <jonmiranda@google.com> Scale widgets in multi-window mode.

To keep this CL small and focused, I'm going to create
a separate CL that handles the scaling for the widget in
drag and drop mode.

Bug: 32176631
Change-Id: Id6557d070edb664aa1f4851de7abf494cf8a0677
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
aa8a871e337fe42e9339b96833eaf37bf2b64b2f 20-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Removing widgetGap and heightGap from cellLayout

This values are always set to 0

Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
08ca40f97670ad56ea01a81a439e89a484f9fdb5 14-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring AppWidgetResizeFrame

> Defining the layout in xml
> Simplifying the touch handling calculations

Change-Id: Iccfd82161d1e678d77ad6ff63f76e04ad905f9d8
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
6ad72f02fd233f2294222477102e83d721100493 23-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Resize only one widget at a time

> Removing logic to have multiple widgets in resize mode
> Making ResizeFrame a touch controller, so that it fits well with
other touch interaction in drag layer
> Chaning the method names in touch controller, so that it do not
overlaps with the default View methods

Change-Id: I85d4dbdfc82d078781adbce137dfaaea59c9c83d
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.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/AppWidgetResizeFrame.java
c338ea74c2c909927246fc604b049d5dcc773f81 12-Feb-2016 Tony Wickham <twickham@google.com> Merge "Clears the widget resize frame when a directional key is pressed." into ub-launcher3-burnaby-polish
am: 187b8f547d

* commit '187b8f547d2112e8d0384cf1c2077beb969dfec6':
Clears the widget resize frame when a directional key is pressed.
71255bb04fd2af3f27364f1545edc2eec27d27ce 11-Feb-2016 Tony Wickham <twickham@google.com> Clears the widget resize frame when a directional key is pressed.

Also gives focus to the corresponding widget host view in this case.

Bug: 27130066
Change-Id: I0a564aa7c509450cd1b9cf259c0a009c68ce3e3b
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
9d4380856ff41ecb26c0d5aee1747b6060d2ef0e 25-Sep-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for e78e3d73 to ub-launcher3-master

Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
e78e3d734b577c1ab6dc0738a83600374908ea52 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes

1) Use a different content description for temporary new page
2) Use different accessibility description for add widget toast
3) Announce when an item is deleted
4) Announce when hovering over a drop target
5) Announce state during drag-n-drop and widget resize (similar to seekbar)

Bug: 23573321, 24057944
Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.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/AppWidgetResizeFrame.java
fedca43d396d6fd7c46fbb2f37dfa7cfe3b31834 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Moving drag-drop related code into a separate package.

This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl".

I'm not moving DragSource because it's referred from gsa code.

Bug: 22609426
Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
3c938a7e0dfa6289bba557164f629873a230bd5c 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 3f7550c1 to ub-launcher3-master

Change-Id: I3bb155473d48832e496a8983f84c20e6e935fa41
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/AppWidgetResizeFrame.java
5d2fc32e6da66f877dfba4fe513fbabdcdae5f99 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Several animation calls cleanup

> Using View property instead of strings to avoid extra reflection step
> Using ViewPropertyAnimator when several properties are being animated

Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.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/AppWidgetResizeFrame.java
ba776d57f4cd7d08644a60fe88e9f6e91ba44849 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Updating widget resize frame assets.

> Using a shadow as background and a frame as foreground.
> The handle has baked in shadow which gets wrapped by the
frame shadow

Change-Id: Ib0e305ea735304236b3319e4fde22fb442f5dc0f
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.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/AppWidgetResizeFrame.java
5940042d39b576553c2499bcf3d0641281e6ad52 06-Mar-2014 Adam Cohen <adamcohen@google.com> Supporting custom widgets provided by launcher

-> This change provides integration for widgets provided by
the launcher package which can run arbitrary code.

Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
34c2e6cf7af328aba25c98158161dbad15ae986d 13-Dec-2013 Michael Jurka <mikejurka@google.com> Clean up imports
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
283dcbe61b15c916c23a60cde73a63f0013fd9fd 27-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing widget resize handles in RTL

Change-Id: I1c6ccb019cf87570c7d206809b321e901f0d3340
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
414300a79d140f8c2c8760d9adab750f69ffeafd 27-Aug-2013 Michael Jurka <mikejurka@google.com> Clean up unused code

Change-Id: Ie1e927aa0b5304f62cfffaab449abb3133870f80
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
d6e7aa31546fd8c1d047a581c141c12fc23c047e 10-Jul-2013 Adam Cohen <adamcohen@google.com> Fix widget resizing (Which stopped working at some point)

-> Also, deferring empty screen removal until after the drop animation
in order to reduce buggy transitions
-> Also fixing workspace layout on tablet

Change-Id: I1ae9fdaf592262f959424f321efa6df4298f85cc
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java
325dc23624160689e59fbac708cf6f222b20d025 06-Jun-2013 Daniel Sandler <dsandler@android.com> Launcher2 is now Launcher3.

Changes include
- moving from com.android.launcher{,2} to
com.android.launcher3
- removing wallpapers
- new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
/packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java