commit | ac90bf1883e608ec3256b1263ec9d2cdc9216a04 | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Tue Sep 27 12:17:31 2011 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Sep 27 12:17:31 2011 -0700 |
tree | bf9e0e76a988807f30e768aead7ea2820d95a703 | |
parent | cd61d139479709f0e2fa7a8c37109906d871d876 [diff] | |
parent | 2792a33ecc9b2def0cdd31756c45f5fe73cf13ac [diff] |
Merge "Addressing slow rotation due to folders (issue 5297213)"
diff --git a/res/drawable-hdpi/hotseat_bg_panel.9.png b/res/drawable-hdpi/hotseat_bg_panel.9.png index 3c25e0e..6724b7a 100644 --- a/res/drawable-hdpi/hotseat_bg_panel.9.png +++ b/res/drawable-hdpi/hotseat_bg_panel.9.png Binary files differ
diff --git a/res/drawable-hdpi/portal_container_holo.9.png b/res/drawable-hdpi/portal_container_holo.9.png index 20e8808..c497612 100644 --- a/res/drawable-hdpi/portal_container_holo.9.png +++ b/res/drawable-hdpi/portal_container_holo.9.png Binary files differ
diff --git a/res/drawable-hdpi/portal_ring_inner_holo.png b/res/drawable-hdpi/portal_ring_inner_holo.png index 92daaae..477e569 100644 --- a/res/drawable-hdpi/portal_ring_inner_holo.png +++ b/res/drawable-hdpi/portal_ring_inner_holo.png Binary files differ
diff --git a/res/drawable-hdpi/search_bg_panel.9.png b/res/drawable-hdpi/search_bg_panel.9.png index 0c00d36..f2a63f9 100644 --- a/res/drawable-hdpi/search_bg_panel.9.png +++ b/res/drawable-hdpi/search_bg_panel.9.png Binary files differ
diff --git a/res/drawable-land-hdpi/hotseat_bg_panel.9.png b/res/drawable-land-hdpi/hotseat_bg_panel.9.png index 90177f8..c7602cd 100644 --- a/res/drawable-land-hdpi/hotseat_bg_panel.9.png +++ b/res/drawable-land-hdpi/hotseat_bg_panel.9.png Binary files differ
diff --git a/res/drawable-land-hdpi/search_bg_panel.9.png b/res/drawable-land-hdpi/search_bg_panel.9.png index 3642ea5..78f80c9 100644 --- a/res/drawable-land-hdpi/search_bg_panel.9.png +++ b/res/drawable-land-hdpi/search_bg_panel.9.png Binary files differ
diff --git a/res/drawable-land-mdpi/hotseat_bg_panel.9.png b/res/drawable-land-mdpi/hotseat_bg_panel.9.png index 83c4a55..d745bb3 100644 --- a/res/drawable-land-mdpi/hotseat_bg_panel.9.png +++ b/res/drawable-land-mdpi/hotseat_bg_panel.9.png Binary files differ
diff --git a/res/drawable-land-mdpi/search_bg_panel.9.png b/res/drawable-land-mdpi/search_bg_panel.9.png index ce3a7e4..94bcf68 100644 --- a/res/drawable-land-mdpi/search_bg_panel.9.png +++ b/res/drawable-land-mdpi/search_bg_panel.9.png Binary files differ
diff --git a/res/drawable-land-xhdpi/hotseat_bg_panel.9.png b/res/drawable-land-xhdpi/hotseat_bg_panel.9.png index 8718040..acbe24a 100644 --- a/res/drawable-land-xhdpi/hotseat_bg_panel.9.png +++ b/res/drawable-land-xhdpi/hotseat_bg_panel.9.png Binary files differ
diff --git a/res/drawable-land-xhdpi/search_bg_panel.9.png b/res/drawable-land-xhdpi/search_bg_panel.9.png index ca2b365..be3a3e8 100644 --- a/res/drawable-land-xhdpi/search_bg_panel.9.png +++ b/res/drawable-land-xhdpi/search_bg_panel.9.png Binary files differ
diff --git a/res/drawable-mdpi/hotseat_bg_panel.9.png b/res/drawable-mdpi/hotseat_bg_panel.9.png index 338db2c..75609d8 100644 --- a/res/drawable-mdpi/hotseat_bg_panel.9.png +++ b/res/drawable-mdpi/hotseat_bg_panel.9.png Binary files differ
diff --git a/res/drawable-mdpi/portal_container_holo.9.png b/res/drawable-mdpi/portal_container_holo.9.png index 90fb1d1..30b0fa0 100644 --- a/res/drawable-mdpi/portal_container_holo.9.png +++ b/res/drawable-mdpi/portal_container_holo.9.png Binary files differ
diff --git a/res/drawable-mdpi/portal_ring_inner_holo.png b/res/drawable-mdpi/portal_ring_inner_holo.png index 4f985a0..eccea20 100644 --- a/res/drawable-mdpi/portal_ring_inner_holo.png +++ b/res/drawable-mdpi/portal_ring_inner_holo.png Binary files differ
diff --git a/res/drawable-mdpi/search_bg_panel.9.png b/res/drawable-mdpi/search_bg_panel.9.png index 0fadc77..615e9a0 100644 --- a/res/drawable-mdpi/search_bg_panel.9.png +++ b/res/drawable-mdpi/search_bg_panel.9.png Binary files differ
diff --git a/res/drawable-xhdpi/hotseat_bg_panel.9.png b/res/drawable-xhdpi/hotseat_bg_panel.9.png index cc3d0bc..748a302 100644 --- a/res/drawable-xhdpi/hotseat_bg_panel.9.png +++ b/res/drawable-xhdpi/hotseat_bg_panel.9.png Binary files differ
diff --git a/res/drawable-xhdpi/portal_container_holo.9.png b/res/drawable-xhdpi/portal_container_holo.9.png index 3c8193b..0935a4b 100644 --- a/res/drawable-xhdpi/portal_container_holo.9.png +++ b/res/drawable-xhdpi/portal_container_holo.9.png Binary files differ
diff --git a/res/drawable-xhdpi/portal_ring_inner_holo.png b/res/drawable-xhdpi/portal_ring_inner_holo.png index 229ef96..bc34314 100644 --- a/res/drawable-xhdpi/portal_ring_inner_holo.png +++ b/res/drawable-xhdpi/portal_ring_inner_holo.png Binary files differ
diff --git a/res/drawable-xhdpi/search_bg_panel.9.png b/res/drawable-xhdpi/search_bg_panel.9.png index 963cb7f..f080337 100644 --- a/res/drawable-xhdpi/search_bg_panel.9.png +++ b/res/drawable-xhdpi/search_bg_panel.9.png Binary files differ
diff --git a/res/drawable-xlarge-hdpi/portal_ring_inner_holo.png b/res/drawable-xlarge-hdpi/portal_ring_inner_holo.png new file mode 100644 index 0000000..659c23b --- /dev/null +++ b/res/drawable-xlarge-hdpi/portal_ring_inner_holo.png Binary files differ
diff --git a/res/drawable-xlarge-hdpi/portal_ring_outer_holo.png b/res/drawable-xlarge-hdpi/portal_ring_outer_holo.png new file mode 100644 index 0000000..8ec67df --- /dev/null +++ b/res/drawable-xlarge-hdpi/portal_ring_outer_holo.png Binary files differ
diff --git a/res/drawable-xlarge-mdpi/portal_ring_inner_holo.png b/res/drawable-xlarge-mdpi/portal_ring_inner_holo.png new file mode 100644 index 0000000..8e3dd57 --- /dev/null +++ b/res/drawable-xlarge-mdpi/portal_ring_inner_holo.png Binary files differ
diff --git a/res/drawable-xlarge-mdpi/portal_ring_outer_holo.png b/res/drawable-xlarge-mdpi/portal_ring_outer_holo.png new file mode 100644 index 0000000..94e0677 --- /dev/null +++ b/res/drawable-xlarge-mdpi/portal_ring_outer_holo.png Binary files differ
diff --git a/res/drawable-xlarge-xhdpi/portal_ring_inner_holo.png b/res/drawable-xlarge-xhdpi/portal_ring_inner_holo.png new file mode 100644 index 0000000..a013e5a --- /dev/null +++ b/res/drawable-xlarge-xhdpi/portal_ring_inner_holo.png Binary files differ
diff --git a/res/drawable-xlarge-xhdpi/portal_ring_outer_holo.png b/res/drawable-xlarge-xhdpi/portal_ring_outer_holo.png new file mode 100644 index 0000000..7bdaaf3 --- /dev/null +++ b/res/drawable-xlarge-xhdpi/portal_ring_outer_holo.png Binary files differ
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 2ef3c74..bf18456 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java
@@ -111,7 +111,7 @@ private final WallpaperManager mWallpaperManager; private IBinder mWindowToken; - private static final float WALLPAPER_SCREENS_SPAN = 1.5f; + private static final float WALLPAPER_SCREENS_SPAN = 2f; private int mDefaultPage; @@ -730,7 +730,7 @@ mWallpaperWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); mWallpaperHeight = (int)(maxDim * wallpaperTravelToScreenHeightRatio(maxDim, minDim)); } else { - mWallpaperWidth = (int) (minDim * WALLPAPER_SCREENS_SPAN); + mWallpaperWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); mWallpaperHeight = maxDim; } new Thread("setWallpaperDimension") {