Loading src/com/android/launcher3/BaseRecyclerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,7 @@ public abstract class BaseRecyclerView extends RecyclerView * * @return the scroll top of this recycler view. */ protected abstract int getCurrentScrollY(); public abstract int getCurrentScrollY(); /** * Maps the touch (from 0..1) to the adapter position that should be visible. Loading src/com/android/launcher3/allapps/AllAppsRecyclerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -375,7 +375,7 @@ public class AllAppsRecyclerView extends BaseRecyclerView } @Override protected int getCurrentScrollY() { public int getCurrentScrollY() { // Return early if there are no items or we haven't been measured List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); if (items.isEmpty() || mNumAppsPerRow == 0 || getChildCount() == 0) { Loading src/com/android/launcher3/allapps/HeaderElevationController.java +2 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ import android.view.ViewGroup; import android.view.ViewOutlineProvider; import android.widget.FrameLayout; import com.android.launcher3.BaseRecyclerView; import com.android.launcher3.R; /** Loading @@ -28,7 +29,7 @@ public abstract class HeaderElevationController extends RecyclerView.OnScrollLis @Override public final void onScrolled(RecyclerView recyclerView, int dx, int dy) { mCurrentY += dy; mCurrentY = ((BaseRecyclerView) recyclerView).getCurrentScrollY(); onScroll(mCurrentY); } Loading src/com/android/launcher3/widget/WidgetsRecyclerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ public class WidgetsRecyclerView extends BaseRecyclerView { } @Override protected int getCurrentScrollY() { public int getCurrentScrollY() { // Skip early if widgets are not bound. if (isModelNotReady() || getChildCount() == 0) { return -1; Loading Loading
src/com/android/launcher3/BaseRecyclerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,7 @@ public abstract class BaseRecyclerView extends RecyclerView * * @return the scroll top of this recycler view. */ protected abstract int getCurrentScrollY(); public abstract int getCurrentScrollY(); /** * Maps the touch (from 0..1) to the adapter position that should be visible. Loading
src/com/android/launcher3/allapps/AllAppsRecyclerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -375,7 +375,7 @@ public class AllAppsRecyclerView extends BaseRecyclerView } @Override protected int getCurrentScrollY() { public int getCurrentScrollY() { // Return early if there are no items or we haven't been measured List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems(); if (items.isEmpty() || mNumAppsPerRow == 0 || getChildCount() == 0) { Loading
src/com/android/launcher3/allapps/HeaderElevationController.java +2 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ import android.view.ViewGroup; import android.view.ViewOutlineProvider; import android.widget.FrameLayout; import com.android.launcher3.BaseRecyclerView; import com.android.launcher3.R; /** Loading @@ -28,7 +29,7 @@ public abstract class HeaderElevationController extends RecyclerView.OnScrollLis @Override public final void onScrolled(RecyclerView recyclerView, int dx, int dy) { mCurrentY += dy; mCurrentY = ((BaseRecyclerView) recyclerView).getCurrentScrollY(); onScroll(mCurrentY); } Loading
src/com/android/launcher3/widget/WidgetsRecyclerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ public class WidgetsRecyclerView extends BaseRecyclerView { } @Override protected int getCurrentScrollY() { public int getCurrentScrollY() { // Skip early if widgets are not bound. if (isModelNotReady() || getChildCount() == 0) { return -1; Loading