mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Fix jumps in the beginning of animations
If the first draw frame of an animation is expensive, which it often is, it causes a big jump. Added a helper class which automatically adjusts the animation start time if the first frame is more than 16ms. Change-Id: I100edbc41c2abe930a32d6bcf0a782ea9735f7f9
This commit is contained in:
@@ -77,7 +77,6 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
|
||||
// Enable the hw layers before the animation starts (will be disabled in the onAnimationEnd
|
||||
// callback below)
|
||||
v.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||
v.buildLayer();
|
||||
}
|
||||
|
||||
private void setupAnimation(ObjectAnimator anim, final View v) {
|
||||
|
||||
Reference in New Issue
Block a user