Easing () { int points = UISettings.getShadowInstance().getAnimatedScrollingCurvePoints(); if (points != curvePoints || ourEasing == null) { double x1 = (points >> 24 & 0xFF) / 200.0; double y1 = (points >> 16 & 0xFF) / 200.0; double x2 = (points >> 8 & 0xFF) / 200.0; double y2 = (points & 0xFF) / 200.0; if (ourEasing == null) { ourEasing = new CubicBezierEasing(x1, y1, x2, y2, 2000); } else { ourEasing.update(x1, y1, x2, y2); } curvePoints = points; } return ourEasing; }