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

Commit f24c6129 authored by Adam Cohen's avatar Adam Cohen
Browse files

Add partner customization option to force first run flow

Change-Id: Id50587cbb95e375b3847597f12bd8566c70dd7bc
(cherry picked from commit 923e1de9f0d7672dd18947ecde2b0da8c5768b7a)
parent fe9da818
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);
    }
}