mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	ignore the photoFetcher at Android versions below 7
This commit is contained in:
		| @@ -368,9 +368,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun startNewPhotoFetcher() { |     private fun startNewPhotoFetcher() { | ||||||
|         val photoFetcher = NewPhotoFetcher() |         if (isNougatPlus()) { | ||||||
|         if (isNougatPlus() && !photoFetcher.isScheduled(applicationContext)) { |             val photoFetcher = NewPhotoFetcher() | ||||||
|             photoFetcher.scheduleJob(applicationContext) |             if (!photoFetcher.isScheduled(applicationContext)) { | ||||||
|  |                 photoFetcher.scheduleJob(applicationContext) | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user