Closed junoprima closed 6 years ago
I'd assume the model is the same for both images? If so, you probably want .signature()
with a Key
that's unique to each image (an image id, incrementing integer etc). For more detail, see http://bumptech.github.io/glide/doc/caching.html#cache-invalidation.
what is a key in signature i dont understand it
There are code samples, javadoc links, and a detailed explanation at the link I provided. Did you get the chance to take a look at that?
This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.
I'm new for Glide i need to know how clear old picture when i update or other update profile picture
like in listview i load image with glide in firebase first time install app can load true and then i update my profile picture and updated i back to listview and show old profile pic but if i clear memory my app or delete and reinstall my app show the correct image
this code my list to retrive data
` mOption = new FirebaseRecyclerOptions.Builder().
setQuery(mQuery ,Mainboard.class)
.setLifecycleOwner(this)
.build();
and this code my update profile class
`edit_profile_pic = view.findViewById(R.id.edit_image_profile); edit_profile_pic.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); startActivityForResult(photoPickerIntent, RESULT_LOAD_IMAGE); } });