Refactor FolderInsetAnimationCallback to be used with any view

- Update ic_corp_off icon to outline
- Remove shadow from work toggle
- Translate work fab when keyboard is shown

Screenshot: https://screenshot.googleplex.com/593tEg7bE4kSS4y

Bug: 191251404
Bug: 191250785
Test: local
Change-Id: Ie7dddfd17eb90575a1e1f67e281070dd8d268f8d
This commit is contained in:
Samuel Fufa
2021-06-16 09:46:25 -05:00
parent de268a51a1
commit d04a92d1ed
12 changed files with 170 additions and 106 deletions

View File

@@ -132,7 +132,6 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
private ScrimView mScrimView;
private int mHeaderColor;
public AllAppsContainerView(Context context) {
this(context, null);
}
@@ -572,6 +571,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
*/