mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	delay updating media adapter a bit
This commit is contained in:
		| @@ -259,10 +259,12 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>, | ||||
|     fun updateMedia(newMedia: ArrayList<Medium>) { | ||||
|         if (newMedia.hashCode() != currentMediaHash) { | ||||
|             currentMediaHash = newMedia.hashCode() | ||||
|             Handler().postDelayed({ | ||||
|                 media = newMedia.clone() as ArrayList<Medium> | ||||
|                 enableInstantLoad() | ||||
|                 notifyDataSetChanged() | ||||
|                 finishActMode() | ||||
|             }, 100L) | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user