Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Lipinski committed Apr 4, 2016
2 parents c071513 + c8b78c1 commit a9d7999
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import android.annotation.SuppressLint;
import android.os.Build;
import android.support.v4.util.ArrayMap;
import android.support.v4.view.ViewCompat;
import android.util.Property;
import android.view.View;
import android.view.animation.Interpolator;
Expand Down Expand Up @@ -823,7 +824,7 @@ public void onAnimationStart(Animator animation) {
View view = mView.get();
mCurrentLayerType = view.getLayerType();
view.setLayerType(View.LAYER_TYPE_HARDWARE, null);
if(view.isAttachedToWindow()) {
if(ViewCompat.isAttachedToWindow(view)) {
view.buildLayer();
}
}
Expand Down

0 comments on commit a9d7999

Please sign in to comment.