summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2011-12-29 12:23:37 +0000
committernebkat <nebkat@teamhacksung.org>2011-12-29 12:23:58 +0000
commitcd3ed5a32ac51aef267b0b70f325da7118d77317 (patch)
tree57925f8bb89c34a261cabe959283172da148aea4 /src/com/cyanogenmod/trebuchet
parentbac9e1194f51a0dc2f8cc39802baea845edfc246 (diff)
downloadandroid_packages_apps_Trebuchet-cd3ed5a32ac51aef267b0b70f325da7118d77317.tar.gz
android_packages_apps_Trebuchet-cd3ed5a32ac51aef267b0b70f325da7118d77317.tar.bz2
android_packages_apps_Trebuchet-cd3ed5a32ac51aef267b0b70f325da7118d77317.zip
Workspace: Fix tablet rendering bug
Change-Id: I4e8f16383daf433b13000e41c0eae980707c58b6
Diffstat (limited to 'src/com/cyanogenmod/trebuchet')
-rw-r--r--src/com/cyanogenmod/trebuchet/Workspace.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java
index 5597fb8dd..662a8b7db 100644
--- a/src/com/cyanogenmod/trebuchet/Workspace.java
+++ b/src/com/cyanogenmod/trebuchet/Workspace.java
@@ -1204,8 +1204,7 @@ public class Workspace extends PagedView
private void screenScrolledLargeUI(int screenScroll) {
if (isSwitchingState()) return;
boolean isInOverscroll = false;
- int currentScreen = (int) Math.floor((double) (screenScroll / (float) getMeasuredWidth()));
- for (int i = currentScreen; i <= Math.min(getChildCount(), currentScreen + 1); i++) {
+ for (int i = 0; i < getChildCount(); i++) {
CellLayout cl = (CellLayout) getChildAt(i);
if (cl != null) {
float scrollProgress = getScrollProgress(screenScroll, cl, i);