mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
- Moving the property to LauncherAppState - The property is only read on dogfood builds. The property can be set using setprop or /data/local.prop Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
33 lines
1012 B
Java
33 lines
1012 B
Java
package com.android.launcher3;
|
|
|
|
import android.text.TextUtils;
|
|
import android.util.Log;
|
|
|
|
public class BuildInfo {
|
|
private static final boolean DBG = false;
|
|
private static final String TAG = "BuildInfo";
|
|
|
|
public boolean isDogfoodBuild() {
|
|
return false;
|
|
}
|
|
|
|
public static BuildInfo loadByName(String className) {
|
|
if (TextUtils.isEmpty(className)) return new BuildInfo();
|
|
|
|
if (DBG) Log.d(TAG, "Loading BuildInfo: " + className);
|
|
try {
|
|
Class<?> cls = Class.forName(className);
|
|
return (BuildInfo) cls.newInstance();
|
|
} catch (ClassNotFoundException e) {
|
|
Log.e(TAG, "Bad BuildInfo class", e);
|
|
} catch (InstantiationException e) {
|
|
Log.e(TAG, "Bad BuildInfo class", e);
|
|
} catch (IllegalAccessException e) {
|
|
Log.e(TAG, "Bad BuildInfo class", e);
|
|
} catch (ClassCastException e) {
|
|
Log.e(TAG, "Bad BuildInfo class", e);
|
|
}
|
|
return new BuildInfo();
|
|
}
|
|
}
|