diff options
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 0f8d834da..a74fa0dbc 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -1900,6 +1900,10 @@ public class Workspace extends PagedView return -(workspaceHeight - scaledHeight) / 2; } + float getOverviewModeShrinkFactor() { + return mOverviewModeShrinkFactor; + } + /** * Sets the current workspace {@link State}, returning an animation transitioning the workspace * to that new state. @@ -1996,6 +2000,10 @@ public class Workspace extends PagedView void updateCustomContentVisibility() { int visibility = mState == Workspace.State.NORMAL ? VISIBLE : INVISIBLE; + setCustomContentVisibility(visibility); + } + + void setCustomContentVisibility(int visibility) { if (hasCustomContent()) { mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).setVisibility(visibility); } @@ -3526,6 +3534,10 @@ public class Workspace extends PagedView } } + public WorkspaceStateTransitionAnimation getStateTransitionAnimation() { + return mStateTransitionAnimation; + } + /** * Return the current {@link CellLayout}, correctly picking the destination * screen while a scroll is in progress. |