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

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

No files matched your search

@@ -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
*/