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:
Tony Wickham
2015-09-18 20:41:14 +00:00
committed by Android Git Automerger

View File

@@ -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;