mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Merge "Adding some assets / fixing a couple bugs" into jb-ub-now-indigo-rose
This commit is contained in:
@@ -1950,7 +1950,8 @@ public class Workspace extends SmoothPagedView
|
||||
AlphaUpdateListener.updateVisibility(getPageIndicator());
|
||||
}
|
||||
searchBar.setAlpha(finalSearchBarAlpha);
|
||||
AlphaUpdateListener.updateVisibility(mLauncher.getSearchBar());
|
||||
AlphaUpdateListener.updateVisibility(searchBar);
|
||||
updateCustomContentVisibility();
|
||||
}
|
||||
if (finalSearchBarAlpha == 0) {
|
||||
mLauncher.setVoiceButtonProxyVisible(false);
|
||||
@@ -2017,10 +2018,27 @@ public class Workspace extends SmoothPagedView
|
||||
private void onTransitionPrepare() {
|
||||
mIsSwitchingState = true;
|
||||
updateChildrenLayersEnabled(false);
|
||||
if (mState != Workspace.State.NORMAL) {
|
||||
if (hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(INVISIBLE);
|
||||
}
|
||||
hideCustomContentIfNecessary();
|
||||
}
|
||||
|
||||
void updateCustomContentVisibility() {
|
||||
int visibility = mState == Workspace.State.NORMAL ? VISIBLE : INVISIBLE;
|
||||
if (hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(visibility);
|
||||
}
|
||||
}
|
||||
|
||||
void showCustomContentIfNecessary() {
|
||||
boolean show = mState == Workspace.State.NORMAL;
|
||||
if (show && hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
void hideCustomContentIfNecessary() {
|
||||
boolean hide = mState != Workspace.State.NORMAL;
|
||||
if (hide && hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2037,11 +2055,7 @@ public class Workspace extends SmoothPagedView
|
||||
cl.setShortcutAndWidgetAlpha(1f);
|
||||
}
|
||||
}
|
||||
if (mState == Workspace.State.NORMAL) {
|
||||
if (hasCustomContent()) {
|
||||
mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
showCustomContentIfNecessary();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user