History log of /packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
519fbdb2b3c58820bb458fda52044e4c8abef596 17-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Merge "Simplifying some launcher themes" into ub-launcher3-master
1f3f07d47c29cba3b70bcd15ebb65a077f55a558 11-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Simplifying some launcher themes

> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
43bf11d9c95f76c2dfeb625b23cb458df81252b3 02-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Separating methods for updating the model to a sepatate class.

Removing static access to model update methods, to allow for better
access control and testing

Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.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/folder/FolderPagedView.java
338dee9dd7a7b087bf182f16970c16ffd940b435 16-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Ensuring that ShortcutInfo always has an icon" into ub-launcher3-master
f5440cbd6c0525769d24b890e16313a728831e04 15-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logic

Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
1cd01b023acc123b771765b7297d8aaedac224e0 09-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Ensuring that ShortcutInfo always has an icon

> Making iconBitmap public instead of a getter (similar to AppInfo)
> Removing getIcon() which can lead to IO on UI thread
> Removing updateIcon and handling the update at the caller

Bug: 21325319
Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
c13403c612748bfdf06436510600230c4c4b55ec 19-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Defining various modes for CellLayout: Workspace, Hotseat & Folder

> Moving the definition of modes to xml
> Defining attributes in xml

Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
93e1f04fa915fc22ecccc7e40794472914f3d446 11-Nov-2016 Jon Miranda <jonmiranda@google.com> Hide workspace text in multi-window mode.

* Vertically centers workspace icons.
* New iconDisplay value so shortcut text is not overriden.

Bug: 32176631

Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
9ccafbff26f5835ab9725d876d1bf7ccd08ccf84 26-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing custom dispatchDraw logic and letting the system handle
selecting appropriate children for drawing.

> System already skips children which are outside the bounds. Originally
this logic was added because workspace layout is larger than the screen, and
we need to selectivly skip more children. But over time we have added many
special conditions and at present workspace actually draws more children than
needed at any given time.
> Fixing bug, where onBeginPageMoving was getting called during folder open

Bug: 12116740
Change-Id: Idee18ee9cd9d348ebc4dfd82f4ff6df14e0d22d2
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
6982de2485ae516f02758bffd0cb0fdc4b127fef 12-Oct-2016 Tony Wickham <twickham@google.com> resolve merge conflicts of 2fd0208 to ub-launcher3-master

Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90
2fd020860533e18c64a93d14d11cb2d34bc9cbaf 07-Oct-2016 Tony <twickham@google.com> Use Launcher.getLauncher(Context) instead of type-casting.

Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
0de011705b132eacdd10f7bfb5cdc4bd79a147e8 06-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Code sanitization

- Removed bad method/class name typos

Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
6e74e899d314663415f54895227bb79a51fd734b 19-Sep-2016 Tony Wickham <twickham@google.com> Refactor shortcuts drag and drop.

- Instead of creating our own drag view within the container, and
handling logic to determine when to start a real drag, we start
the drag immediately and just defer onDragStart().
- To determine when the deferred drag should start, we add a
DeferDragCondition to DragOptions. The default DeferDragCondition
never defers a drag, but is overridden for apps with shortcuts
to defer until the icon is dragged a given distance.
- Because the drag is handled in DragController, including checking
when to start the deferred drag, DeepShortcutsContainer no longer
needs to handle touch events and ShortcutsContainerListener has
been removed.

This change has several immediate benefits:
- The code is much cleaner, because it allows touch handling to be
done by the DragController through the normal drag flow, without
recreating logic in ShortcutsContainerListener/DeepShortcutContainer.
- The janky second haptic feedback has been removed (now it vibrates
when you long press, like everywhere else, but not again when the
shortcuts close after dragging a distance).
- Drops are animated, instead of just popping the icon back into place.

Bug: 30769920
Bug: 30465972
Bug: 31533078
Change-Id: I679b412b72fbf6c3895d76963311eb5010c8e8db
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
e393d3af369c452f3b5f5d9c0a23a83aa3aa736b 09-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Using DragObject for folder drop instead of maintaining states when
drag starts from inside a folder

Change-Id: I073b59c194d0bd483d579bbcb638b116b09590a0
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
8f288aac99a11d52fd9747f360a8ce3bb521b17a 26-Jul-2016 Winson <winsonc@google.com> Ensure that we update the preview layout rule when not animating.

Bug: 28166173
Change-Id: Ibf0245f2dd667216ccabb23a1b279b1801d60cac
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
1bce7fd342875be8f7c1f82c8cf21d0199c8d544 29-Apr-2016 Tony Wickham <twickham@google.com> Long-press on an app to reveal its shortcuts.

- Add ShortcutsContainerListener to icons on workspace, folders, and
all apps. This handles long-press and forwards following touches to
the DeepShortcutsContainer that is created.
- Drag over shortcut before lifting finger to launch it.
- Shortcuts are rendered in pill-shaped DeepShortcutViews,
which are inside DeepShortcutContainer on DragLayer.
- The shortcut container orients above or below the icon, and left or
right-aligns with it. Biases for above + left-align.
- Long press a DeepShortcutPill to drag and pin it to the workspace.

Bug: 28980830
Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
d0a6ae7f645e6ba564aebb50316c53fa2e119459 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes and updates

> Adding custom actions on the page indicator to go to overview mode
> Disabling custom actions on the first page
> Disabling 'move page left' on the second page

Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
3333b0ced8e6743c41909f6f6b916f1f9ec5a004 10-May-2016 Sunny Goyal <sunnygoyal@google.com> Unifying focus indicator handling for workspace and all-apps

Adding an abstract FocusIndicatorHelper based on FocusIndicatorView
which draws the background instead of using a dummy view.

Change-Id: Id560195323d2ddad8fcd77ba675cf3f4fd4a94ab
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
c487bd34ace268dd8be5480ba884baed6096f76e 20-May-2016 Sunny Goyal <sunnygoyal@google.com> Making page indicator an abstract class and implementing some common methods.

Change-Id: I06613428c54f1f086090580db8242cf81f7fb128
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
c64cfdd8fa18de45fc1646c8ef2449f39ef83022 18-May-2016 Sunny Goyal <sunnygoyal@google.com> Updating the folder page indicator to be more like the
framework page indicator (used in quick settings)

The active page is indicated with the accent color. During scroll
the active indicator expands to 2 dots corresponding to the visible pages.

Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
f549dab31d0fa3e4d0cf8d6025b20e49aafb2d59 16-May-2016 Tony Wickham <twickham@google.com> Add PageIndicator interface and custom PageIndicatorLine view.

- The current PageIndicator has been renamed to PageIndicatorDots
and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
c52ba710053e4c6927937dd1a26d1abe06b6fa99 06-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing folder icon not getting redrawn when the contents change

> Removing parent from ItemOperator as inconsistant values were
being passed in workspace and folderPagedView
> Fixing itemChanged causing multiple redraws, by passing a
'animate' parameter to explicitely request animation

Bug:27740161
Bug:28015426

Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
261194387beebaa7927ec4e310274218b651494d 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage"

This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658.

Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
fc956e5a2a818c06ed3424e15b0aa20a3f604658 17-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage

Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java
f9c184a619e4e4b82cf9e0bf318ca6d8deaaaee7 16-Jan-2016 Adam Cohen <adamcohen@google.com> Refactor FolderIcon to separate the preview effect into it's own class

-> Created com.android.launcher3.folder package to house most folder-related files
(aside from the FolderInfo) which is more related to the model than the UI.

Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
/packages/apps/Launcher3/src/com/android/launcher3/folder/FolderPagedView.java