abstracting fallback views to support container instead of activity
Test: Built and tested locally Flag: NONE just abstracting in this cl Bug:292269949 Change-Id: I0ce5efb4f193211216430f373605107c87de2c1a
This commit is contained in:
1 parent
f0123c9129
commit
f29dc7c5ec
28 files changed
+515
-194
No files matched your search
@@ -20,13 +20,12 @@ import android.util.AttributeSet;
|
||||
|
||||
import com.android.launcher3.util.TouchController;
|
||||
import com.android.launcher3.views.BaseDragLayer;
|
||||
import com.android.quickstep.RecentsActivity;
|
||||
import com.android.quickstep.views.RecentsViewContainer;
|
||||
|
||||
/**
|
||||
* Drag layer for fallback recents activity
|
||||
*/
|
||||
public class RecentsDragLayer extends BaseDragLayer<RecentsActivity> {
|
||||
|
||||
public class RecentsDragLayer<T extends Context & RecentsViewContainer> extends BaseDragLayer<T> {
|
||||
public RecentsDragLayer(Context context, AttributeSet attrs) {
|
||||
super(context, attrs, 1 /* alphaChannelCount */);
|
||||
}
|
||||
@@ -34,8 +33,8 @@ public class RecentsDragLayer extends BaseDragLayer<RecentsActivity> {
|
||||
@Override
|
||||
public void recreateControllers() {
|
||||
mControllers = new TouchController[] {
|
||||
new RecentsTaskController(mActivity),
|
||||
new FallbackNavBarTouchController(mActivity),
|
||||
new RecentsTaskController(mContainer),
|
||||
new FallbackNavBarTouchController(mContainer),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user