diff --git a/quickstep/res/layout/taskbar_all_apps.xml b/quickstep/res/layout/taskbar_all_apps.xml index c7679beb23..976cd9e2a7 100644 --- a/quickstep/res/layout/taskbar_all_apps.xml +++ b/quickstep/res/layout/taskbar_all_apps.xml @@ -27,40 +27,5 @@ android:clipChildren="true" android:clipToPadding="false" android:focusable="false" - android:saveEnabled="false" - android:theme="?attr/allAppsTheme"> - - - - - - - - - - - - - - - - - - + android:saveEnabled="false" /> diff --git a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsContainerView.java b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsContainerView.java index 70405d94cb..eeca329e80 100644 --- a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsContainerView.java +++ b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsContainerView.java @@ -17,6 +17,7 @@ package com.android.launcher3.taskbar.allapps; import android.content.Context; import android.util.AttributeSet; +import android.view.View; import android.view.WindowInsets; import com.android.launcher3.DeviceProfile; @@ -42,6 +43,19 @@ public class TaskbarAllAppsContainerView extends return super.onApplyWindowInsets(insets); } + @Override + protected View inflateSearchBox() { + // Remove top padding of header, since we do not have any search + mHeader.setPadding(mHeader.getPaddingLeft(), 0, + mHeader.getPaddingRight(), mHeader.getPaddingBottom()); + + TaskbarAllAppsFallbackSearchContainer searchView = + new TaskbarAllAppsFallbackSearchContainer(getContext(), null); + searchView.setId(R.id.search_container_all_apps); + searchView.setVisibility(GONE); + return searchView; + } + @Override protected boolean isSearchSupported() { return false; @@ -53,4 +67,10 @@ public class TaskbarAllAppsContainerView extends // TODO(b/240670050): Remove this and add header protection for the taskbar entrypoint. mBottomSheetBackground.setBackgroundResource(R.drawable.bg_rounded_corner_bottom_sheet); } + + @Override + public boolean isInAllApps() { + // All apps is always open + return true; + } } diff --git a/quickstep/src/com/android/launcher3/taskbar/overlay/TaskbarOverlayContext.java b/quickstep/src/com/android/launcher3/taskbar/overlay/TaskbarOverlayContext.java index ebaf60a10f..38b6dfd39b 100644 --- a/quickstep/src/com/android/launcher3/taskbar/overlay/TaskbarOverlayContext.java +++ b/quickstep/src/com/android/launcher3/taskbar/overlay/TaskbarOverlayContext.java @@ -21,9 +21,6 @@ import android.view.View; import com.android.launcher3.DeviceProfile; import com.android.launcher3.LauncherPrefs; import com.android.launcher3.R; -import com.android.launcher3.allapps.ActivityAllAppsContainerView; -import com.android.launcher3.allapps.search.DefaultSearchAdapterProvider; -import com.android.launcher3.allapps.search.SearchAdapterProvider; import com.android.launcher3.dot.DotInfo; import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.popup.PopupDataProvider; @@ -137,10 +134,4 @@ public class TaskbarOverlayContext extends BaseTaskbarContext { @Override public void onPopupVisibilityChanged(boolean isVisible) {} - - @Override - public SearchAdapterProvider createSearchAdapterProvider( - ActivityAllAppsContainerView appsView) { - return new DefaultSearchAdapterProvider(this); - } } diff --git a/res/drawable/bg_all_apps_searchbox.xml b/res/drawable/bg_all_apps_searchbox.xml index c3249279af..3c321e4c49 100644 --- a/res/drawable/bg_all_apps_searchbox.xml +++ b/res/drawable/bg_all_apps_searchbox.xml @@ -15,5 +15,6 @@ --> - + + \ No newline at end of file diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index f8a871a502..655c75d1b5 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -17,13 +17,9 @@ will bake the left/right padding into that view's background itself. --> - - - \ No newline at end of file + android:saveEnabled="false" /> \ No newline at end of file diff --git a/res/layout/all_apps_content.xml b/res/layout/all_apps_content.xml index 773ab8d4d3..925f4d963b 100644 --- a/res/layout/all_apps_content.xml +++ b/res/layout/all_apps_content.xml @@ -34,6 +34,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:clipToPadding="false" + android:layout_below="@id/search_container_all_apps" android:paddingTop="@dimen/all_apps_header_top_padding" android:paddingBottom="@dimen/all_apps_header_bottom_padding" android:orientation="vertical" > @@ -44,15 +45,5 @@ - - - - - \ No newline at end of file diff --git a/res/layout/search_container_all_apps.xml b/res/layout/search_container_all_apps.xml index b46298cfdb..db218c3d4b 100644 --- a/res/layout/search_container_all_apps.xml +++ b/res/layout/search_container_all_apps.xml @@ -21,7 +21,6 @@ android:layout_centerHorizontal="true" android:layout_gravity="top|center_horizontal" android:background="@drawable/bg_all_apps_searchbox" - android:elevation="1dp" android:focusableInTouchMode="true" android:gravity="center" android:hint="@string/all_apps_search_bar_hint" diff --git a/res/layout/secondary_launcher.xml b/res/layout/secondary_launcher.xml index 4be2e456ac..f48f3c0aa4 100644 --- a/res/layout/secondary_launcher.xml +++ b/res/layout/secondary_launcher.xml @@ -42,8 +42,7 @@ android:contentDescription="@string/all_apps_button_label" android:onClick="onAppsButtonClicked" /> - - - - - - - - - - - - - - - - - - + android:visibility="invisible" /> \ No newline at end of file diff --git a/res/values/config.xml b/res/values/config.xml index d9b3da5b07..4cab2dec09 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -49,9 +49,6 @@ popup_container_iterate_children - - false - diff --git a/res/values/styles.xml b/res/values/styles.xml index 9e75a31804..7582a30435 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -20,6 +20,7 @@ - + - + - - - -