Loading WallpaperPicker/src/com/android/launcher3/Partner.java +8 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } } Loading
WallpaperPicker/src/com/android/launcher3/Partner.java +8 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } }