Skip to content

Commit

Permalink
made shimmer base color parsing correction
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanrana-ilsa committed Sep 27, 2019
1 parent 7d3ca49 commit 38c0693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public Builder shimmerColored(boolean shimmerColored) {
}

public Builder shimmerBaseColor(@ColorRes int shimmerBaseColor) {
this.mShimmerBaseColor = shimmerBaseColor;
this.mShimmerBaseColor = ContextCompat.getColor(mRecyclerView.getContext(), shimmerBaseColor);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public ViewSkeletonScreen.Builder shimmerColored(boolean shimmerColored) {
}

public ViewSkeletonScreen.Builder shimmerBaseColor(@ColorRes int shimmerBaseColor) {
this.mShimmerBaseColor = shimmerBaseColor;
this.mShimmerBaseColor = ContextCompat.getColor(mView.getContext(), shimmerBaseColor);
return this;
}

Expand Down

0 comments on commit 38c0693

Please sign in to comment.