diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-16 20:11:54 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-16 20:11:54 +0000 |
commit | d1d8496eeb5d05ffe83dc109374a4167d0f6b350 (patch) | |
tree | 5d67b44195d6d361900fe596e0dc7d82ef769c3a | |
parent | e1c1c987f2b95efc05900f635778414211f2ea2b (diff) | |
download | packages_apps_trebuchet-d1d8496eeb5d05ffe83dc109374a4167d0f6b350.zip packages_apps_trebuchet-d1d8496eeb5d05ffe83dc109374a4167d0f6b350.tar.gz packages_apps_trebuchet-d1d8496eeb5d05ffe83dc109374a4167d0f6b350.tar.bz2 |
PagedView: Don't force draw children without checking whether they should be drawn
Change-Id: I93926d75426ccfe139ce05cf6561ced264e9e807
-rw-r--r-- | src/com/cyanogenmod/trebuchet/PagedView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/PagedView.java b/src/com/cyanogenmod/trebuchet/PagedView.java index 47159a5..1db5fc1 100644 --- a/src/com/cyanogenmod/trebuchet/PagedView.java +++ b/src/com/cyanogenmod/trebuchet/PagedView.java @@ -947,8 +947,8 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc for (int i = getChildCount() - 1; i >= 0; i--) { final View v = getPageAt(i); - if (mForceDrawAllChildrenNextFrame || - (leftTopScreen <= i && i <= rightBottomScreen && shouldDrawChild(v))) { + if ((mForceDrawAllChildrenNextFrame || (leftTopScreen <= i && i <= rightBottomScreen)) + && shouldDrawChild(v)) { drawChild(canvas, v, drawingTime); } } |