Merge "Refactor FolderInsetAnimationCallback to be used with any view" into sc-dev

This commit is contained in:
Samuel Fufa
2021-06-17 18:48:49 +00:00
committed by Android (Google) Code Review
12 changed files with 170 additions and 106 deletions

View File

@@ -131,7 +131,6 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
private ScrimView mScrimView;
private int mHeaderColor;
public AllAppsContainerView(Context context) {
this(context, null);
}
@@ -571,6 +570,10 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
return mViewPager == null ? getActiveRecyclerView() : mViewPager;
}
public int getCurrentPage() {
return mViewPager != null ? mViewPager.getCurrentPage() : AdapterHolder.MAIN;
}
/**
* Handles selection on focused view and returns success
*/