diff options
author | Adam Cohen <adamcohen@google.com> | 2014-09-06 18:16:32 +0200 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2014-09-06 18:17:47 +0200 |
commit | c761d3cf956c5d2e621fabe91dcf65924fe9cf0a (patch) | |
tree | 43d09a36060424605d7e555a9c7898e8a0e4759c | |
parent | 6fdf6b22a75cbbd1728aca9e5305b4f68ef99c18 (diff) | |
download | android_packages_apps_Trebuchet-c761d3cf956c5d2e621fabe91dcf65924fe9cf0a.tar.gz android_packages_apps_Trebuchet-c761d3cf956c5d2e621fabe91dcf65924fe9cf0a.tar.bz2 android_packages_apps_Trebuchet-c761d3cf956c5d2e621fabe91dcf65924fe9cf0a.zip |
Workaround for all apps crash in restricted profile
Bug 17363836
Change-Id: I1c12e0300cfb1046bc7f2f3159d018ebf0a2f57d
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 309ab46c9..51d74be10 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -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(); |