+ public static void start(Context context, @Nullable Profile profile) {
+ Intent starter = new Intent(context, ProfileDetailActivity.class);
+ if (profile != null) {
+ starter.putExtra(ProfileDetailFragment.ARG_ITEM_ID, profile.getId());
+ starter.putExtra(ProfileDetailFragment.ARG_HUE, profile.getTheme());
+ Logger.debug(TAG,
+ String.format(Locale.ROOT, "Starting profile editor for profile %d, theme %d",
+ profile.getId(), profile.getTheme()));
+ }
+ else
+ Logger.debug(TAG, "Starting empty profile editor");
+ context.startActivity(starter);
+ }