1

I facing issue on Glide, which keeps showing the previous image. I came by this post, which use signature() to solve, but signature() cannot be solved in my case.

Glide.with(activity)
     .load(url)
     .signature(new StringSignature (String.valueOf(System.currentTimeMillis())))
     .into(imgSignature)

build.gradle

implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
Zoe
  • 27,060
  • 21
  • 118
  • 148
John Joe
  • 12,412
  • 16
  • 70
  • 135

1 Answers1

4

I have found the answer.

Glide.with(activity)
     .load(obj?.signature_image?.url.toString())
     .apply(RequestOptions.circleCropTransform()
     .signature(ObjectKey(System.currentTimeMillis())))
     .into(imgSignature)
Zoe
  • 27,060
  • 21
  • 118
  • 148
John Joe
  • 12,412
  • 16
  • 70
  • 135