summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-03-13 12:55:46 +0100
committerArne Coucheron <arco68@gmail.com>2013-08-12 16:53:07 +0200
commit0ad71cd7c188bb29a9e4827efb92d45cb9a5d012 (patch)
tree06c0a504de2dc57d7313d281b6385fc0a4aea8ce /src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java
parent3a397cbf7fcece384ac2d3a65f61058015b4db36 (diff)
downloadandroid_packages_apps_Trebuchet-0ad71cd7c188bb29a9e4827efb92d45cb9a5d012.tar.gz
android_packages_apps_Trebuchet-0ad71cd7c188bb29a9e4827efb92d45cb9a5d012.tar.bz2
android_packages_apps_Trebuchet-0ad71cd7c188bb29a9e4827efb92d45cb9a5d012.zip
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
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java b/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java
index 075adae53..51a0752eb 100644
--- a/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java
+++ b/src/com/cyanogenmod/trebuchet/SearchDropTargetBar.java
@@ -86,7 +86,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) {