Remove pulldown search feature flag
Bug: 63713013 Change-Id: I81ad92678ed7aa429a7a85477121fa49502a6a92
This commit is contained in:
1 parent
1b169920e2
commit
09d8e4977b
3 files changed
-118
No files matched your search
@@ -82,7 +82,6 @@ import com.android.launcher3.util.ItemInfoMatcher;
|
||||
import com.android.launcher3.util.LongArrayMap;
|
||||
import com.android.launcher3.util.PackageUserKey;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
import com.android.launcher3.util.VerticalFlingDetector;
|
||||
import com.android.launcher3.util.WallpaperOffsetInterpolator;
|
||||
import com.android.launcher3.widget.PendingAddShortcutInfo;
|
||||
import com.android.launcher3.widget.PendingAddWidgetInfo;
|
||||
@@ -568,33 +567,6 @@ public class Workspace extends PagedView
|
||||
}
|
||||
// Add the first page
|
||||
CellLayout firstPage = insertNewWorkspaceScreen(Workspace.FIRST_SCREEN_ID, 0);
|
||||
if (FeatureFlags.PULLDOWN_SEARCH) {
|
||||
firstPage.setOnTouchListener(new VerticalFlingDetector(mLauncher) {
|
||||
// detect fling when touch started from empty space
|
||||
@Override
|
||||
public boolean onTouch(View v, MotionEvent ev) {
|
||||
if (workspaceInModalState()) return false;
|
||||
if (shouldConsumeTouch(v)) return true;
|
||||
if (super.onTouch(v, ev)) {
|
||||
mLauncher.startSearch("", false, null, false);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
firstPage.setOnInterceptTouchListener(new VerticalFlingDetector(mLauncher) {
|
||||
// detect fling when touch started from on top of the icons
|
||||
@Override
|
||||
public boolean onTouch(View v, MotionEvent ev) {
|
||||
if (shouldConsumeTouch(v)) return true;
|
||||
if (super.onTouch(v, ev)) {
|
||||
mLauncher.startSearch("", false, null, false);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
// Always add a QSB on the first screen.
|
||||
if (qsb == null) {
|
||||
// In transposed layout, we add the QSB in the Grid. As workspace does not touch the
|
||||
|
||||
Reference in new issue
Block a user