mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
am 6ed058cb: Wallpaper preview parallax matches the actual wallpaper\'s.
* commit '6ed058cb6bfbb5756721e0d7f4a80a1c08ee665c': Wallpaper preview parallax matches the actual wallpaper's.
This commit is contained in:
@@ -748,6 +748,9 @@ public class Launcher extends Activity
|
||||
return;
|
||||
} else if (requestCode == REQUEST_PICK_WALLPAPER) {
|
||||
if (resultCode == RESULT_OK && mWorkspace.isInOverviewMode()) {
|
||||
// User could have free-scrolled between pages before picking a wallpaper; make sure
|
||||
// we move to the closest one now to avoid visual jump.
|
||||
mWorkspace.setCurrentPage(mWorkspace.getPageNearestToCenterOfScreen());
|
||||
showWorkspace(false);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user