+ final int index = getIntent().getIntExtra(ProfileDetailFragment.ARG_ITEM_ID, -1);
+
+ if (index != -1) {
+ profile = Data.profiles.get(index);
+ if (profile == null) throw new AssertionError(
+ String.format("Can't get profile " + "(index:%d) from the global list", index));
+
+ Log.d("profiles", String.format("Editing profile %s (%s); hue=%d", profile.getName(),
+ profile.getUuid(), profile.getThemeId()));
+ }
+