mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	remember scroll position when going from media to fullscreen mode
This commit is contained in:
		| @@ -41,6 +41,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { | ||||
|     private var mIsGetAnyIntent = false | ||||
|     private var mIsGettingMedia = false | ||||
|     private var mShowAll = false | ||||
|     private var mLoadedInitialPhotos = false | ||||
|  | ||||
|     override fun onCreate(savedInstanceState: Bundle?) { | ||||
|         super.onCreate(savedInstanceState) | ||||
| @@ -172,8 +173,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { | ||||
|         if (media.size == 0) { | ||||
|             media_holder.isRefreshing = true | ||||
|         } else { | ||||
|             if (!mLoadedInitialPhotos) | ||||
|                 gotMedia(media) | ||||
|         } | ||||
|         mLoadedInitialPhotos = true | ||||
|  | ||||
|         GetMediaAsynctask(applicationContext, mPath, mIsGetVideoIntent, mIsGetImageIntent, mShowAll) { | ||||
|             gotMedia(it) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user