Merge "Fixing issue with building velvet against lower support lib." into ub-launcher3-burnaby
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user