summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2015-10-30 09:52:22 -0700
committerTony Wickham <twickham@google.com>2015-10-30 09:52:22 -0700
commit4530aca912c7b4942d3cbc63fe6997a1615d7b0a (patch)
tree90055a90763ab2c91a03eef851e4c337dc51039a
parenta3c74d10a7d6e2ae8520e73176f939011e726ccf (diff)
downloadandroid_packages_apps_Trebuchet-4530aca912c7b4942d3cbc63fe6997a1615d7b0a.tar.gz
android_packages_apps_Trebuchet-4530aca912c7b4942d3cbc63fe6997a1615d7b0a.tar.bz2
android_packages_apps_Trebuchet-4530aca912c7b4942d3cbc63fe6997a1615d7b0a.zip
Set parallax offset to be 0.5f for default wallpapers.
This ensures they are centered as they were without any offset. Bug: 25347076 Change-Id: Id773cd89463d47b350e60878c00e1112e0244414
-rw-r--r--WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
index b40e4bd80..5d4123843 100644
--- a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
+++ b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
@@ -309,7 +309,7 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
@Override
public float getParallaxOffset() {
- return 0;
+ return 0.5f;
}
};
req.result = new DrawableTileSource(a.getContext(),