From: Adam Cohen Date: Sun, 7 Sep 2014 15:48:55 +0000 (+0200) Subject: Ensure all apps button inintialized before performing all apps transition X-Git-Tag: android-x86-6.0-r1~137^2~40 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a38dc901;p=android-x86%2Fpackages-apps-Launcher3.git 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 --- diff --git a/res/values/styles.xml b/res/values/styles.xml index 82b9819b5..56a205fd1 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -41,21 +41,14 @@ @null @color/quantum_panel_text_color @dimen/dynamic_grid_icon_drawable_padding - 2.0 - 0 - 2 - @color/quantum_panel_text_shadow_color + 0 false 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);