зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 5a84ab13274a (bug 1337440) for Android build bustage
This commit is contained in:
Родитель
f6e0ca5fb2
Коммит
4a0b7c1001
|
@ -214,14 +214,6 @@ public class CirclePageIndicator
|
||||||
return mSnap;
|
return mSnap;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isRtl() {
|
|
||||||
return ViewUtils.isLayoutRtl(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
private float getRadiusRelativly() {
|
|
||||||
return getRadius() * (isRtl() ? -1 : 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDraw(Canvas canvas) {
|
protected void onDraw(Canvas canvas) {
|
||||||
super.onDraw(canvas);
|
super.onDraw(canvas);
|
||||||
|
@ -239,25 +231,23 @@ public class CirclePageIndicator
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final int longSize;
|
int longSize;
|
||||||
final int longPaddingBefore;
|
int longPaddingBefore;
|
||||||
final int longPaddingAfter;
|
int longPaddingAfter;
|
||||||
final int shortPaddingBefore;
|
int shortPaddingBefore;
|
||||||
final float threeRadius;
|
|
||||||
if (mOrientation == HORIZONTAL) {
|
if (mOrientation == HORIZONTAL) {
|
||||||
longSize = getWidth();
|
longSize = getWidth();
|
||||||
longPaddingBefore = getPaddingLeft();
|
longPaddingBefore = getPaddingLeft();
|
||||||
longPaddingAfter = getPaddingRight();
|
longPaddingAfter = getPaddingRight();
|
||||||
shortPaddingBefore = getPaddingTop();
|
shortPaddingBefore = getPaddingTop();
|
||||||
threeRadius = getRadiusRelativly() * SEPARATION_FACTOR;
|
|
||||||
} else {
|
} else {
|
||||||
longSize = getHeight();
|
longSize = getHeight();
|
||||||
longPaddingBefore = getPaddingTop();
|
longPaddingBefore = getPaddingTop();
|
||||||
longPaddingAfter = getPaddingBottom();
|
longPaddingAfter = getPaddingBottom();
|
||||||
shortPaddingBefore = getPaddingLeft();
|
shortPaddingBefore = getPaddingLeft();
|
||||||
threeRadius = mRadius * SEPARATION_FACTOR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final float threeRadius = mRadius * SEPARATION_FACTOR;
|
||||||
final float shortOffset = shortPaddingBefore + mRadius;
|
final float shortOffset = shortPaddingBefore + mRadius;
|
||||||
float longOffset = longPaddingBefore + mRadius;
|
float longOffset = longPaddingBefore + mRadius;
|
||||||
if (mCentered) {
|
if (mCentered) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче