Question: I'm loading image url using glide and applying rounded corner transformation. It works fine for first setup of recyclerview. Later when i call `notifydatasetchanged()` after pagination it becomes square. What am I missing?

```
Glide.with(mContext)
      .load(primary.getpSmallImage())
      .bitmapTransform(new RoundedCornersTransformation(mContext, 8, 0, RoundedCornersTransformation.CornerType.ALL))
      .placeholder(R.drawable.ic_ph_small)
      .into(thumbnailImage);

```

Answer: 
Use this diskCacheStrategy Saves the media item after all transformations to cache.

```
  Glide.with(mContext)
  .load(primary.getpSmallImage())
  .diskCacheStrategy(DiskCacheStrategy.RESULT)
  .bitmapTransform(new RoundedCornersTransformation(mContext, 8, 0, 
   RoundedCornersTransformation.CornerType.ALL))
  .placeholder(R.drawable.ic_ph_small)
  .into(thumbnailImage);

```
Don't use `notifyDataSetChanged()` method for pagination at all. instead use `notifyItemInserted()`. [DiffUtil](https://developer.android.com/reference/android/support/v7/util/DiffUtil.html) is a better choice for your apps performance.

If you're loading your image inside `onBindViewHolder()` method this problem shouldn't happen.