summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-04-07 13:45:29 -0700
committerWinson Chung <winsonc@google.com>2015-04-07 13:45:29 -0700
commit1c7c49331e22ba0bc1b54e72735364a946bf24e7 (patch)
tree96fd76ed20c21052ed2cea0732ccb30ded3ca4e6 /src
parent9121fbffafe0b90a23768e5ebc5fffab2a2175c2 (diff)
downloadandroid_packages_apps_Trebuchet-1c7c49331e22ba0bc1b54e72735364a946bf24e7.tar.gz
android_packages_apps_Trebuchet-1c7c49331e22ba0bc1b54e72735364a946bf24e7.tar.bz2
android_packages_apps_Trebuchet-1c7c49331e22ba0bc1b54e72735364a946bf24e7.zip
Fixing issue with building velvet against lower support lib.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/AppsContainerRecyclerView.java2
-rw-r--r--src/com/android/launcher3/AppsGridAdapter.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/AppsContainerRecyclerView.java b/src/com/android/launcher3/AppsContainerRecyclerView.java
index 63e7fe4ac..c93bacf93 100644
--- a/src/com/android/launcher3/AppsContainerRecyclerView.java
+++ b/src/com/android/launcher3/AppsContainerRecyclerView.java
@@ -339,7 +339,7 @@ public class AppsContainerRecyclerView extends RecyclerView
int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
View child = getChildAt(i);
- int position = getChildAdapterPosition(child);
+ int position = getChildPosition(child);
if (position != NO_POSITION) {
AlphabeticalAppsList.AdapterItem item = mApps.getAdapterItems().get(position);
if (!item.isSectionHeader) {
diff --git a/src/com/android/launcher3/AppsGridAdapter.java b/src/com/android/launcher3/AppsGridAdapter.java
index 96d971669..5b6967c26 100644
--- a/src/com/android/launcher3/AppsGridAdapter.java
+++ b/src/com/android/launcher3/AppsGridAdapter.java
@@ -79,10 +79,10 @@ class AppsGridAdapter extends RecyclerView.Adapter<AppsGridAdapter.ViewHolder> {
GridLayoutManager.LayoutParams lp = (GridLayoutManager.LayoutParams)
child.getLayoutParams();
if (!holder.mIsSectionRow && !holder.mIsEmptyRow && !lp.isItemRemoved()) {
- if (items.get(holder.getAdapterPosition() - 1).isSectionHeader) {
+ if (items.get(holder.getPosition() - 1).isSectionHeader) {
// Draw at the parent
AlphabeticalAppsList.AdapterItem item =
- items.get(holder.getAdapterPosition());
+ items.get(holder.getPosition());
String section = item.sectionName;
mSectionTextPaint.getTextBounds(section, 0, section.length(),
mTmpBounds);