am cd145285: Second half of workaround for all apps crash in restricted profile

* commit 'cd1452859d0a0d68a70388a3ae82d69d97041eb5':
  Second half of workaround for all apps crash in restricted profile
This commit is contained in:
Adam Cohen 2014-09-08 11:30:40 +00:00 committed by Android Git Automerger
commit d64910c4d3
1 changed files with 1 additions and 4 deletions

View File

@ -3620,9 +3620,6 @@ public class Launcher extends Activity
final AnimatorSet stateAnimation = mStateAnimation;
final Runnable startAnimRunnable = new Runnable() {
public void run() {
if (!fromView.isAttachedToWindow()) {
return;
}
// Check that mStateAnimation hasn't changed while
// we waited for a layout/draw pass
if (mStateAnimation != stateAnimation)
@ -3633,7 +3630,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();