if (profile == null)
throw new IllegalStateException("Profile row without associated profile");
debug("profiles", "Setting profile to " + profile.getName());
+ if (Data.profile.getValue() != profile )
+ Data.drawerOpen.setValue(false);
Data.setCurrentProfile(profile);
}
@NonNull
profile.getUuid(), (currentProfile == null) ? "<NULL>" : currentProfile.getUuid()));
holder.itemView.setTag(profile);
- int hue = profile.getThemeId();
+ int hue = profile.getThemeHue();
if (hue == -1) holder.mColorTag
.setBackgroundColor(Colors.getPrimaryColorForHue(Colors.DEFAULT_HUE_DEG));
else holder.mColorTag.setBackgroundColor(Colors.getPrimaryColorForHue(hue));