Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a66233ae authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

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

parents a388a146 f24c6129
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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);
    }
}