diff options
author | Lars Greiss <kufikugel@googlemail.com> | 2013-05-11 21:12:49 +0200 |
---|---|---|
committer | Lars Greiss <kufikugel@googlemail.com> | 2013-05-13 01:39:15 +0200 |
commit | b5beaa504be796053d1baba1f90ee55b1f5c7157 (patch) | |
tree | d757c64c9b2edda509ee70f3804ae4e5eecfdf82 /packages/SystemUI/src/com/android/systemui/statusbar | |
parent | a33a12bd8b492daeca0ea8bc48c2b8ed28179519 (diff) | |
download | frameworks_base-b5beaa504be796053d1baba1f90ee55b1f5c7157.zip frameworks_base-b5beaa504be796053d1baba1f90ee55b1f5c7157.tar.gz frameworks_base-b5beaa504be796053d1baba1f90ee55b1f5c7157.tar.bz2 |
Frameworks: take mPieScale into account to calculate estimated PIE width
if scaled size of the PIE is over or under the default size
the pie was either no using the whole screen space or
it was cutted off. To solve this take scale value
into account when calculating estimated width
greetings SlimRoms
Change-Id: Iccfc8362c0019e3b6ff4bd8066c313c67116c014
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/pie/PieLayout.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/pie/PieLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/pie/PieLayout.java index e8021ef..b0fb8e5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/pie/PieLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/pie/PieLayout.java @@ -551,6 +551,7 @@ public class PieLayout extends FrameLayout implements View.OnTouchListener { estimatedWidth = Math.max(estimatedWidth, slice.estimateWidth()); } } + estimatedWidth = estimatedWidth * mPieScale; if (mPosition == Position.LEFT || mPosition == Position.RIGHT) { mCenter.x = mPadding + (int) ((getWidth() - 2 * mPadding) * mPosition.FACTOR); |