mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
avoid refetching media at changing some settings
This commit is contained in:
parent
048acd9b03
commit
6dd4be62d8
2 changed files with 4 additions and 4 deletions
|
@ -107,11 +107,11 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
override fun onResume() {
|
||||
super.onResume()
|
||||
if (mStoredAnimateGifs != config.animateGifs) {
|
||||
mDirs.clear()
|
||||
directories_grid.adapter.notifyDataSetChanged()
|
||||
}
|
||||
|
||||
if (mStoredCropThumbnails != config.cropThumbnails) {
|
||||
mDirs.clear()
|
||||
directories_grid.adapter.notifyDataSetChanged()
|
||||
}
|
||||
tryloadGallery()
|
||||
invalidateOptionsMenu()
|
||||
|
|
|
@ -77,11 +77,11 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
override fun onResume() {
|
||||
super.onResume()
|
||||
if (mShowAll && mStoredAnimateGifs != config.animateGifs) {
|
||||
mMedia.clear()
|
||||
media_grid.adapter.notifyDataSetChanged()
|
||||
}
|
||||
|
||||
if (mStoredCropThumbnails != config.cropThumbnails) {
|
||||
mMedia.clear()
|
||||
media_grid.adapter.notifyDataSetChanged()
|
||||
}
|
||||
tryloadGallery()
|
||||
invalidateOptionsMenu()
|
||||
|
|
Loading…
Reference in a new issue