Skip to content

Instantly share code, notes, and snippets.

@vsay01
Created May 13, 2018 13:57
Show Gist options
  • Save vsay01/452007bb888ac1223ccdb5a998a80d09 to your computer and use it in GitHub Desktop.
Save vsay01/452007bb888ac1223ccdb5a998a80d09 to your computer and use it in GitHub Desktop.
if ((mColorPalette != 0)) {
mViewBackground.setBackgroundColor(mColorPalette);
} else {
if (getActivity() != null) {
mViewBackground.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.movieDetailTitleBg));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment