avoid refetching media at changing some settings

This commit is contained in:
tibbi 2017-06-18 22:21:54 +02:00
parent 048acd9b03
commit 6dd4be62d8
2 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -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()