am c761d3cf: Workaround for all apps crash in restricted profile

* commit 'c761d3cf956c5d2e621fabe91dcf65924fe9cf0a':
  Workaround for all apps crash in restricted profile
This commit is contained in:
Adam Cohen
2014-09-08 11:30:34 +00:00
committed by Android Git Automerger
+1 -4
View File
@@ -3375,9 +3375,6 @@ public class Launcher extends Activity
final AnimatorSet stateAnimation = mStateAnimation;
final Runnable startAnimRunnable = new Runnable() {
public void run() {
if (!toView.isAttachedToWindow()) {
return;
}
// Check that mStateAnimation hasn't changed while
// we waited for a layout/draw pass
if (mStateAnimation != stateAnimation)
@@ -3389,7 +3386,7 @@ public class Launcher extends Activity
if (Utilities.isLmp()) {
for (int i = 0; i < layerViews.size(); i++) {
View v = layerViews.get(i);
if (v != null) v.buildLayer();
if (v != null && v.isAttachedToWindow()) v.buildLayer();
}
}
mStateAnimation.start();