am e31ecf61: Merge "Fixing static StackView scenario (Issue: 3399844)" into honeycomb
* commit 'e31ecf61042171242e6f31f22df7691c40f189b2': Fixing static StackView scenario (Issue: 3399844)
This commit is contained in:
@@ -546,12 +546,16 @@ public class StackView extends AdapterViewAnimator {
|
|||||||
|
|
||||||
private void onLayout() {
|
private void onLayout() {
|
||||||
if (!mFirstLayoutHappened) {
|
if (!mFirstLayoutHappened) {
|
||||||
mSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight());
|
|
||||||
mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * mSlideAmount);
|
|
||||||
mFirstLayoutHappened = true;
|
mFirstLayoutHappened = true;
|
||||||
updateChildTransforms();
|
updateChildTransforms();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight());
|
||||||
|
if (mSlideAmount != newSlideAmount) {
|
||||||
|
mSlideAmount = newSlideAmount;
|
||||||
|
mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount);
|
||||||
|
}
|
||||||
|
|
||||||
if (Float.compare(mPerspectiveShiftY, mNewPerspectiveShiftY) != 0 ||
|
if (Float.compare(mPerspectiveShiftY, mNewPerspectiveShiftY) != 0 ||
|
||||||
Float.compare(mPerspectiveShiftX, mNewPerspectiveShiftX) != 0) {
|
Float.compare(mPerspectiveShiftX, mNewPerspectiveShiftX) != 0) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user