mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Tweak search bar style to follow Launcher3
This commit is contained in:
@@ -777,14 +777,13 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
return;
|
||||
}
|
||||
|
||||
float prog = Utilities.boundToRange((float) scrolledOffset / mHeaderThreshold, 0f, 1f);
|
||||
boolean bgVisible = mSearchUiManager.getBackgroundVisibility();
|
||||
if (scrolledOffset == 0 && !isSearching()) {
|
||||
if (!isSearching()) {
|
||||
bgVisible = true;
|
||||
} else if (scrolledOffset > mHeaderThreshold) {
|
||||
} else {
|
||||
bgVisible = false;
|
||||
}
|
||||
mSearchUiManager.setBackgroundVisibility(bgVisible, 1 - prog);
|
||||
mSearchUiManager.setBackgroundVisibility(bgVisible, 1);
|
||||
}
|
||||
|
||||
protected int getHeaderColor(float blendRatio) {
|
||||
|
||||
Reference in New Issue
Block a user