am 37990b4b: Fix # 6925851: Workspace page spacing gets messed up
* commit '37990b4b4fc241fcf12a4b6d1725c69605b26605': Fix # 6925851: Workspace page spacing gets messed up
This commit is contained in:
@@ -98,6 +98,7 @@ public class Workspace extends SmoothPagedView
|
|||||||
private float mOverScrollMaxBackgroundAlpha = 0.0f;
|
private float mOverScrollMaxBackgroundAlpha = 0.0f;
|
||||||
|
|
||||||
private float mWallpaperScrollRatio = 1.0f;
|
private float mWallpaperScrollRatio = 1.0f;
|
||||||
|
private int mOriginalPageSpacing;
|
||||||
|
|
||||||
private final WallpaperManager mWallpaperManager;
|
private final WallpaperManager mWallpaperManager;
|
||||||
private IBinder mWindowToken;
|
private IBinder mWindowToken;
|
||||||
@@ -273,6 +274,7 @@ public class Workspace extends SmoothPagedView
|
|||||||
public Workspace(Context context, AttributeSet attrs, int defStyle) {
|
public Workspace(Context context, AttributeSet attrs, int defStyle) {
|
||||||
super(context, attrs, defStyle);
|
super(context, attrs, defStyle);
|
||||||
mContentIsRefreshable = false;
|
mContentIsRefreshable = false;
|
||||||
|
mOriginalPageSpacing = mPageSpacing;
|
||||||
|
|
||||||
mDragEnforcer = new DropTarget.DragEnforcer(context);
|
mDragEnforcer = new DropTarget.DragEnforcer(context);
|
||||||
// With workspace, data is available straight from the get-go
|
// With workspace, data is available straight from the get-go
|
||||||
@@ -1594,7 +1596,7 @@ public class Workspace extends SmoothPagedView
|
|||||||
setLayoutScale(finalScaleFactor);
|
setLayoutScale(finalScaleFactor);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setPageSpacing(PagedView.AUTOMATIC_PAGE_SPACING);
|
setPageSpacing(mOriginalPageSpacing);
|
||||||
setLayoutScale(1.0f);
|
setLayoutScale(1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user