am 750ce3ac: Merge "Only buildLayer() on attached views" into klp-dev
* commit '750ce3acf23e5c2e5b239154a2539391544f9463': Only buildLayer() on attached views
This commit is contained in:
@@ -702,7 +702,9 @@ public class ViewPropertyAnimator {
|
||||
@Override
|
||||
public void run() {
|
||||
mView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||
mView.buildLayer();
|
||||
if (mView.isAttachedToWindow()) {
|
||||
mView.buildLayer();
|
||||
}
|
||||
}
|
||||
};
|
||||
final int currentLayerType = mView.getLayerType();
|
||||
|
||||
Reference in New Issue
Block a user