diff --git a/res/layout/launcher_preview_layout.xml b/res/layout/launcher_preview_layout.xml index 3fd02e3fda..2467b934df 100644 --- a/res/layout/launcher_preview_layout.xml +++ b/res/layout/launcher_preview_layout.xml @@ -39,12 +39,6 @@ - - - - + android:layout_height="match_parent" /> \ No newline at end of file diff --git a/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java b/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java index 7b769b8299..582d310ff7 100644 --- a/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java +++ b/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java @@ -63,7 +63,6 @@ import com.android.launcher3.LauncherSettings; import com.android.launcher3.LauncherSettings.Favorites; import com.android.launcher3.R; import com.android.launcher3.WorkspaceLayoutManager; -import com.android.launcher3.allapps.SearchUiManager; import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.folder.FolderIcon; import com.android.launcher3.icons.BaseIconFactory; @@ -511,12 +510,6 @@ public class LauncherPreviewRenderer { mWorkspace.addViewToCellLayout(qsb, 0, R.id.search_container_workspace, lp, true); } - // Setup search view - SearchUiManager searchUiManager = - mRootView.findViewById(R.id.search_container_all_apps); - mRootView.findViewById(R.id.apps_view).setTranslationY( - mDp.heightPx - searchUiManager.getScrollRangeDelta(mInsets)); - measureView(mRootView, mDp.widthPx, mDp.heightPx); dispatchVisibilityAggregated(mRootView, true); measureView(mRootView, mDp.widthPx, mDp.heightPx);