mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Correctly recenter the wallpaper when going back to default screen.
This commit is contained in:
@@ -256,6 +256,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
||||
mPreviousIndicator.setLevel(mCurrentScreen);
|
||||
mNextIndicator.setLevel(mCurrentScreen);
|
||||
scrollTo(mCurrentScreen * getWidth(), 0);
|
||||
updateWallpaperOffset();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@@ -833,7 +834,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
||||
|
||||
mPreviousIndicator.setLevel(mNextScreen);
|
||||
mNextIndicator.setLevel(mNextScreen);
|
||||
|
||||
|
||||
View focusedChild = getFocusedChild();
|
||||
if (focusedChild != null && screenDelta != 0 && focusedChild == getChildAt(mCurrentScreen)) {
|
||||
focusedChild.clearFocus();
|
||||
|
||||
Reference in New Issue
Block a user