summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/view/PieStackView.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-03-16 16:06:03 -0700
committerMichael Kolb <kolby@google.com>2011-03-16 16:14:44 -0700
commit565752e1025129ad16c030ceca9dee7a695ed73e (patch)
tree4131b60d56f3783ba7c68db0f8e8dcac7aafbaa4 /src/com/android/browser/view/PieStackView.java
parent1c699aabc351e44869c4e6c4e06e6c1ebcc0613a (diff)
downloadpackages_apps_browser-565752e1025129ad16c030ceca9dee7a695ed73e.zip
packages_apps_browser-565752e1025129ad16c030ceca9dee7a695ed73e.tar.gz
packages_apps_browser-565752e1025129ad16c030ceca9dee7a695ed73e.tar.bz2
fix quick control rendering
Bug: 4108815 render pie slices again, use faded background Change-Id: I05e5bf2f6809d5775b48f22a67b37e961aa5ab9f
Diffstat (limited to 'src/com/android/browser/view/PieStackView.java')
-rw-r--r--src/com/android/browser/view/PieStackView.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/browser/view/PieStackView.java b/src/com/android/browser/view/PieStackView.java
index df387ad..ca641f9 100644
--- a/src/com/android/browser/view/PieStackView.java
+++ b/src/com/android/browser/view/PieStackView.java
@@ -59,8 +59,8 @@ public class PieStackView extends BasePieView {
* this will be called before the first draw call
*/
@Override
- public void layout(int anchorX, int anchorY, boolean left) {
- super.layout(anchorX, anchorY, left);
+ public void layout(int anchorX, int anchorY, boolean left, float angle) {
+ super.layout(anchorX, anchorY, left, angle);
buildViews();
mWidth = mChildWidth;
mHeight = mChildHeight + (mViews.size() - 1) * mMinHeight;
@@ -76,7 +76,8 @@ public class PieStackView extends BasePieView {
int top = mTop;
int dy = (n == 1) ? 0 : (mHeight - mChildHeight) / (n - 1);
for (View view : mViews) {
- view.layout(mLeft, top, mLeft + mChildWidth, top + mChildHeight);
+ int x = mLeft;
+ view.layout(x, top, x + mChildWidth, top + mChildHeight);
top += dy;
}
}