History log of /packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/allapps/AllAppsGridAdapter.java
4ebc3d070ffa5ffda469aebcece20efda52d2028 05-Aug-2016 Hyunyoung Song <hyunyoungs@google.com> Change NavBar to transparent black
b/30615471

Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
852974375d06ad6a81ac40fdd0a228fe0c6fa7d9 21-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "Centered all apps search text" into ub-launcher3-calgary
1f06427266c0cb5de4561fc7c620ff542f625300 19-Jul-2016 Winson <winsonc@google.com> Initial changes to tweak layout.

- Adding DeviceProfile callback for when the launcher layout changes due
to insets. This is necessary since there are now different layouts
depending on which side the navigation bar is on
- Consolidating hotseat and other layout into the device profile
launcher layout logic
- Making the all apps icons match the workspace icon height
- Tweaking caret drawable to draw to the bounds specified to simplify
layout in each orientation
- Fixing minor issue with page indicator shifting in landscape
- Centering overview buttons to the workspace page

Bug: 30021487
Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
a92447a7fdcdd8392628bb15dad9730428b71160 19-Jul-2016 Peter Schiller <peterschiller@google.com> Centered all apps search text

Change-Id: I21aaec56cd2202cea284880a28d9513435877368
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
e8eaa9c94c5bfb9f103b486b24213e7dd86e8429 12-Jul-2016 Winson <winsonc@google.com> Ensuring that fast scrolling to predictions scrolls list to the top

- Fixes a long standing issue with fast-scrolling to the predicted apps
not quite scrolling the list to the top of the screen.
- Fixes an issue where we don’t scroll exactly to the fast scroll
position due to rounding
- Also fixes a small issue where the thumb would not update when the
fast scroll popup was no longer showing, even while dragging.

Bug: 30023608

Change-Id: I6b5080c6aea521ff03dca24317f0405c02725061
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
b655b8850064cc4f8e59652b4e3bffc09090769a 12-Jul-2016 Winson <winsonc@google.com> Cleaning up scrollbar logic to properly calculate stable extents.

- Removing old logic which assumed that views were the same size,
especially now we can have variable dividers, etc.
- Simplifying old scroll position logic.
- Removing unnecessary prediction icon layout (same as normal icon)

Bug: 30023608
Change-Id: I39e1126fa586a76a9bdd3ff38cd6e360ac3021e6
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
c2a20ff0a87f58b2be66f067b0024db7ff5185d3 07-Jul-2016 Peter Schiller <peterschiller@google.com> Consolidate all the dividers to provide same look and feel

Bug: 30017936
Change-Id: I072cb116dba1df555a63f3f67b730f7f9c3a235a
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
243ad3dbf8a583ecf39669ab83e5bad5dbb2d1b3 08-Jul-2016 Peter Schiller <peterschiller@google.com> Updating alignment of search input

Bug: 30017936
Change-Id: I2f68711762872bc100b41b2b4768d33e2c0cd902
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.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/allapps/AllAppsGridAdapter.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/allapps/AllAppsGridAdapter.java
ae50284e0a838139c67caf0064a0977c871497fa 17-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.

Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
b7c2e99ffbedf0f38edfbf433087acac8620e36f 09-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Updating the app search buton text" into ub-launcher3-calgary
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/allapps/AllAppsGridAdapter.java
6e92f05314ae240dccd11347ea86529066b528b3 07-Jun-2016 Adam Cohen <adamcohen@google.com> Ensure that custom actions are available to all apps items

-> When BubbleTextViews were being recycled, the RecyclerView was clearing the
AccessibilityDelegate. Ensure that this is reset by the adapter when a
BubbleTextView is reused.

issue 25948877

Change-Id: I95dd21bfdcd602a67925d1b8f06e6ca92d1d7203
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
8653f1d748f436403fd25589eeaafe1203803da9 27-May-2016 Sunny Goyal <sunnygoyal@google.com> Updating the app search buton text

Bug: 28774501
Change-Id: I268a2d98f70d160c91ebd8fc796f3626ae67c159
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
97660f7a9421b4d9068183b6fb1ec107df8c7946 03-Mar-2016 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of 2494c3f168 to ub-launcher3-calgary

Change-Id: I807016057da9b867ebb2c8f3ee2027a3a2688d30
2494c3f1681e71af06556ef47de16f018811f7e3 03-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Moving createMarketSearchIntent to search controller to allow it to be customizable

Change-Id: I3a05abf7c0357a2f92c8a3fa2dc223f9eacc221e
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
9e3fee1427c0baa38564e20a9f351d1a87c25761 02-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Starting market search whenever the search key is pressed

Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
(cherry picked from commit 992a5f566e7f1b1fc8bd766f1fd00bee7ea2a634)
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
992a5f566e7f1b1fc8bd766f1fd00bee7ea2a634 02-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Starting market search whenever the search key is pressed

Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
4759760bc997a00166f06b124f8e09181566a834 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Removing LauncherCallbacks control over app search
am: c42ac0a5a6

* commit 'c42ac0a5a6f0a4e41a9fc1b694f841204ae1989c':
Removing LauncherCallbacks control over app search
c42ac0a5a6f0a4e41a9fc1b694f841204ae1989c 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Removing LauncherCallbacks control over app search

Change-Id: Icb199607dea3f169055e44946272aa9f1e758d1d
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
e72f1d1428b625f6c1a198d259522bfdf982ea03 07-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Accessibility delegate is already set in BubbleTextView constructor. Not need to set it again
am: e70fb6f8ef

* commit 'e70fb6f8ef03561b7875b872d0efa4ae2a5926af':
Accessibility delegate is already set in BubbleTextView constructor. Not need to set it again
e70fb6f8ef03561b7875b872d0efa4ae2a5926af 07-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Accessibility delegate is already set in BubbleTextView constructor. Not need to set it again

Bug: 25948877
Change-Id: I1d301a6169404a78881fa29da6d6bdf2fec8f146
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
e98bcdbb9cd7072818aed13c23c2c9e9d6a56cb6 07-Oct-2015 Winson <winsonc@google.com> am 34ef93cc: am 058c21db: Ensure accessibility delegate is set on all apps icons.

* commit '34ef93ccd6e2cdb4b12cf7bf6bedf8216662e2b2':
Ensure accessibility delegate is set on all apps icons.
34ef93ccd6e2cdb4b12cf7bf6bedf8216662e2b2 02-Oct-2015 Winson <winsonc@google.com> am 058c21db: Ensure accessibility delegate is set on all apps icons.

* commit '058c21db49f4f058b7d84c8de55d3c649918ab70':
Ensure accessibility delegate is set on all apps icons.
058c21db49f4f058b7d84c8de55d3c649918ab70 02-Oct-2015 Winson <winsonc@google.com> Ensure accessibility delegate is set on all apps icons.

Bug: 24605237
Change-Id: I801e2aca1732c021b06d996d907f368f97277cf9
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
0b90814f8617d4078fc7f7219317a0fc3ac0f0f3 29-Sep-2015 Winson <winsonc@google.com> am c0880491: Highlighting sectioned apps on fast-scroll.

* commit 'c088049113c261331b5685e64050d14a31cd72df':
Highlighting sectioned apps on fast-scroll.
c088049113c261331b5685e64050d14a31cd72df 21-Aug-2015 Winson <winsonc@google.com> Highlighting sectioned apps on fast-scroll.

- This CL fixes an old assumption we had about the height
of rows in AllApps, and ensures that we account for the
difference in height between the predictive icons and the
normal icons.
- In addition, we refactor FastBitmapDrawable to have multiple
states, which it manages in drawing itself, including the
press state and fast scroll focus states. And we also refactor
some of the fast scroll logic in the all apps recycler view
out to its own class.

Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
f4f89ef608245d39bbddda05f291361d2ae06667 03-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Using context.getString for getting formatted strings, as it works better with different locales

Change-Id: I9639bb11197e656c5cdd3a4d63f913edcc0987cb
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
3eefff8d77383b9648378ed68aa98064d98be5c3 28-Aug-2015 Winson Chung <winsonc@google.com> am 0947f5c2: Merge "Adding graphic for all apps empty search screen." into ub-launcher3-burnaby

* commit '0947f5c26804bc74b8f1242d856c1f703544c3de':
Adding graphic for all apps empty search screen.
fee206f2419a0ffa90abf4f9f3f9e0b6d0b74906 20-Aug-2015 Winson <winsonc@google.com> Adding graphic for all apps empty search screen.

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

Change-Id: I160feaee81b262be02446885fae643c0be71b7af
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
a2917f6a0b9a24accaf21d75c0e80701bb07e2ed 12-Aug-2015 Winson Chung <winsonc@google.com> Merge "Ensuring that AllAppsGridAdapter is public." into ub-launcher3-burnaby
eea9fa4022b9cdc5b2f65bbd9ed6b314c883248d 12-Aug-2015 Winson <winsonc@google.com> Ensuring that AllAppsGridAdapter is public.

- Also show the search action when searching all apps

Change-Id: I3470b0da565e6d1bce637ce09384d966215a4ca7
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
bedf9232eb67a420f0372d3ca135ca13194e603b 10-Jul-2015 Winson Chung <winsonc@google.com> Adding market search.

Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
deaf4d169b6e08ae2c41ae67ea97147164089b16 30-Jul-2015 Winson Chung <winsonc@google.com> Fixing issue with accessibility falsely reporting app count when there are no search results.

Bug: 22672783
Change-Id: Ie40acc592e59699eac2a4ff2045a7f8ba029d33a
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
1ae7a5018b48dba562bc18821f0f1e778192ee85 07-Jul-2015 Winson Chung <winsonc@google.com> Moving prediction icons back into recycler view.

- Fixes two accessibility issues with the prediction bar being
separate from the rest of the list of icons related to scrolling
and switch access.

Bug: 21725276
Change-Id: Ibc48e5028cace9a77000e6646b951f021910465d
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.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/allapps/AllAppsGridAdapter.java
fbc5b18626ae2e158e39c59606455124cfa8127d 12-Jun-2015 Winson Chung <winsonc@google.com> Refactored section names to only draw when there is space.

- This CL removes all space for section names in both phones
and tablets. And when there are no section names, the layout
will automatically fully merge the sections.

Bug: 20222023
Change-Id: Ic7c751d86f095e5cbd690bfd4f94bb5b00ff8ae4
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.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/allapps/AllAppsGridAdapter.java
6103501fa6c70ca112ac867e18e5f82021bf4f7c 05-Jun-2015 Winson Chung <winsonc@google.com> Merge "Ensuring that we use the screen width more optimally in AllApps." into ub-launcher3-burnaby
7501adf4b71bb17d0785a5939efbcac4b39125c3 02-Jun-2015 Winson Chung <winsonc@google.com> Ensure that we use the system long press duration when dragging from AllApps.

- Removing some old code out of LauncherAppState

Bug: 21559400
Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java
2c6e5ccbcd7c3f87e7e85029782440600dc0a3d8 01-Jun-2015 Winson Chung <winsonc@google.com> Ensuring that we use the screen width more optimally in AllApps.

- Fixing issue with prediction bar height being calculated incorrectly
- Fixing issue where the prediction bar divider was not drawn exactly
between the bar and the first row of apps
- Removing padding to allow scrollbars to reach full height

Bug: 20222023
Bug: 21335377
Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.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/allapps/AllAppsGridAdapter.java
5f4e0fdd2e4edeb9211e2dcd1c99497f175731f8 22-May-2015 Winson Chung <winsonc@google.com> Moving all apps code into sub package.

- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
/packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsGridAdapter.java