0

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 stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
John Joe
  • 11,400
  • 14
  • 56
  • 120

1 Answers1

3

I have found the answer.

Glide.with(activity)
     .load(obj?.signature_image?.url.toString())
     .apply(RequestOptions.circleCropTransform()
     .signature(ObjectKey(System.currentTimeMillis())))
     .into(imgSignature)
Zoe stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
John Joe
  • 11,400
  • 14
  • 56
  • 120