summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-09-07 17:48:55 +0200
committerAdam Cohen <adamcohen@google.com>2014-09-07 18:43:54 +0200
commita38dc90188a6bee465b72e8383b36b264e30a08a (patch)
tree6e056c4dc9093a2832309d1b7c8fbe291e89d893 /src/com/android/launcher3/Launcher.java
parentcd1452859d0a0d68a70388a3ae82d69d97041eb5 (diff)
downloadandroid_packages_apps_Trebuchet-a38dc90188a6bee465b72e8383b36b264e30a08a.tar.gz
android_packages_apps_Trebuchet-a38dc90188a6bee465b72e8383b36b264e30a08a.tar.bz2
android_packages_apps_Trebuchet-a38dc90188a6bee465b72e8383b36b264e30a08a.zip
Ensure all apps button inintialized before performing all apps transition
-> Also removing text shadows in all apps and folders (bug 16955157) Bug 17400227 Change-Id: I67d361a7a1cb548c9caca4214621607feaef963a
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 924ed1158..e7c658acc 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3230,7 +3230,10 @@ public class Launcher extends Activity
mAppsCustomizeTabHost.setContentTypeImmediate(contentType);
}
- if (animated) {
+ // If for some reason our views aren't initialized, don't animate
+ boolean initialized = getAllAppsButton() != null;
+
+ if (animated && initialized) {
mStateAnimation = LauncherAnimUtils.createAnimatorSet();
final AppsCustomizePagedView content = (AppsCustomizePagedView)
toView.findViewById(R.id.apps_customize_pane_content);
@@ -3457,7 +3460,10 @@ public class Launcher extends Activity
toState, animated, layerViews);
}
- if (animated) {
+ // If for some reason our views aren't initialized, don't animate
+ boolean initialized = getAllAppsButton() != null;
+
+ if (animated && initialized) {
mStateAnimation = LauncherAnimUtils.createAnimatorSet();
if (workspaceAnim != null) {
mStateAnimation.play(workspaceAnim);