mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Changing the dogfood check to a static boolean to better handle proguard optimizations
Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user