diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-07-16 14:09:05 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-07-16 14:09:53 -0700 |
commit | 6c56c68555dcb3d99b05d5faecd582a1f683cc92 (patch) | |
tree | a3583ab71b1e3f10d06c747c2f7436c981e1ee41 /src/com/android/launcher3/BaseContainerView.java | |
parent | 14031ebb81e21d6de216d39194f5bf5ff6c784ea (diff) | |
download | android_packages_apps_Trebuchet-6c56c68555dcb3d99b05d5faecd582a1f683cc92.tar.gz android_packages_apps_Trebuchet-6c56c68555dcb3d99b05d5faecd582a1f683cc92.tar.bz2 android_packages_apps_Trebuchet-6c56c68555dcb3d99b05d5faecd582a1f683cc92.zip |
Changing the dogfood check to a static boolean to better handle proguard optimizations
Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
Diffstat (limited to 'src/com/android/launcher3/BaseContainerView.java')
-rw-r--r-- | src/com/android/launcher3/BaseContainerView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/BaseContainerView.java b/src/com/android/launcher3/BaseContainerView.java index c8de9df10..a049ec0f1 100644 --- a/src/com/android/launcher3/BaseContainerView.java +++ b/src/com/android/launcher3/BaseContainerView.java @@ -22,6 +22,8 @@ import android.util.AttributeSet; import android.util.Log; import android.widget.LinearLayout; +import com.android.launcher3.config.ProviderConfig; + /** * A base container view, which supports resizing. */ @@ -69,7 +71,7 @@ public abstract class BaseContainerView extends LinearLayout implements Insettab * Sets the search bar bounds for this container view to match. */ final public void setSearchBarBounds(Rect bounds) { - if (LauncherAppState.isDogfoodBuild() && !isValidSearchBarBounds(bounds)) { + if (ProviderConfig.IS_DOGFOOD_BUILD && !isValidSearchBarBounds(bounds)) { Log.e(TAG, "Invalid search bar bounds: " + bounds); } |