Merge "Add partner customization option to force first run flow" into ub-now-porkchop

This commit is contained in:
Adam Cohen
2014-08-08 04:33:24 +00:00
committed by Android (Google) Code Review
@@ -45,6 +45,8 @@ public class Partner {
public static final String RESOURCE_DEFAULT_WALLPAPER_HIDDEN = "default_wallpapper_hidden";
public static final String RESOURCE_SYSTEM_WALLPAPER_DIR = "system_wallpaper_directory";
public static final String RESOURCE_REQUIRE_FIRST_RUN_FLOW = "requires_first_run_flow";
private static boolean sSearched = false;
private static Partner sPartner;
@@ -111,4 +113,10 @@ public class Partner {
getPackageName());
return (resId != 0) ? new File(getResources().getString(resId)) : null;
}
public boolean requiresFirstRunFlow() {
int resId = getResources().getIdentifier(RESOURCE_REQUIRE_FIRST_RUN_FLOW, "bool",
getPackageName());
return resId != 0 && getResources().getBoolean(resId);
}
}