Move UnionDecorationHandler to Launcher
- Create base SectionDecorationInfo.java and RecyclerViewAnimationController.java - SearchTransitionController now inherits from RecyclerViewAnimationController where RecyclerViewAnimationController will control animation for private space Bug: 299294792 Test: Verified SearchTransitionController didn't regress by turning off BACKGROUND_DRAWABLES flag. - Verified QL highlight still works - video: https://drive.google.com/file/d/15yjBWofebn6m7VgEnLK6kEYqhC_adJQ3/view?usp=sharing Flag: None Change-Id: If34f4bb199be0e113485279931d2927cb9fad397
This commit is contained in:
1 parent
aa84ba761e
commit
763e40d747
9 files changed
+657
-263
No files matched your search
@@ -27,8 +27,6 @@ import com.android.launcher3.views.RecyclerViewFastScroller;
|
||||
/** A RecyclerView for AllApps Search results. */
|
||||
public class SearchRecyclerView extends AllAppsRecyclerView {
|
||||
|
||||
private Consumer<View> mChildAttachedConsumer;
|
||||
|
||||
public SearchRecyclerView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
@@ -46,11 +44,6 @@ public class SearchRecyclerView extends AllAppsRecyclerView {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
}
|
||||
|
||||
/** This will be called just before a new child is attached to the window. */
|
||||
public void setChildAttachedConsumer(Consumer<View> childAttachedConsumer) {
|
||||
mChildAttachedConsumer = childAttachedConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updatePoolSize() {
|
||||
RecycledViewPool pool = getRecycledViewPool();
|
||||
@@ -67,12 +60,4 @@ public class SearchRecyclerView extends AllAppsRecyclerView {
|
||||
public RecyclerViewFastScroller getScrollbar() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChildAttachedToWindow(@NonNull View child) {
|
||||
if (mChildAttachedConsumer != null) {
|
||||
mChildAttachedConsumer.accept(child);
|
||||
}
|
||||
super.onChildAttachedToWindow(child);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user