avoid refetching media at changing some settings
This commit is contained in:
parent
048acd9b03
commit
6dd4be62d8
|
@ -107,11 +107,11 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
if (mStoredAnimateGifs != config.animateGifs) {
|
if (mStoredAnimateGifs != config.animateGifs) {
|
||||||
mDirs.clear()
|
directories_grid.adapter.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mStoredCropThumbnails != config.cropThumbnails) {
|
if (mStoredCropThumbnails != config.cropThumbnails) {
|
||||||
mDirs.clear()
|
directories_grid.adapter.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
tryloadGallery()
|
tryloadGallery()
|
||||||
invalidateOptionsMenu()
|
invalidateOptionsMenu()
|
||||||
|
|
|
@ -77,11 +77,11 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
if (mShowAll && mStoredAnimateGifs != config.animateGifs) {
|
if (mShowAll && mStoredAnimateGifs != config.animateGifs) {
|
||||||
mMedia.clear()
|
media_grid.adapter.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mStoredCropThumbnails != config.cropThumbnails) {
|
if (mStoredCropThumbnails != config.cropThumbnails) {
|
||||||
mMedia.clear()
|
media_grid.adapter.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
tryloadGallery()
|
tryloadGallery()
|
||||||
invalidateOptionsMenu()
|
invalidateOptionsMenu()
|
||||||
|
|
Loading…
Reference in New Issue