mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Support simple A-Z search in Taskbar All Apps." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
296f8776f7
@@ -21,6 +21,7 @@ import android.view.View;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.allapps.ActivityAllAppsContainerView;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.taskbar.overlay.TaskbarOverlayContext;
|
||||
|
||||
/** All apps container accessible from taskbar. */
|
||||
@@ -37,6 +38,10 @@ public class TaskbarAllAppsContainerView extends
|
||||
|
||||
@Override
|
||||
protected View inflateSearchBox() {
|
||||
if (isSearchSupported()) {
|
||||
return super.inflateSearchBox();
|
||||
}
|
||||
|
||||
// Remove top padding of header, since we do not have any search
|
||||
mHeader.setPadding(mHeader.getPaddingLeft(), 0,
|
||||
mHeader.getPaddingRight(), mHeader.getPaddingBottom());
|
||||
@@ -50,7 +55,7 @@ public class TaskbarAllAppsContainerView extends
|
||||
|
||||
@Override
|
||||
protected boolean isSearchSupported() {
|
||||
return false;
|
||||
return FeatureFlags.ENABLE_ALL_APPS_SEARCH_IN_TASKBAR.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user