mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
ignore the photoFetcher at Android versions below 7
This commit is contained in:
parent
bee4b0ff72
commit
5592c23c4e
1 changed files with 5 additions and 3 deletions
|
@ -368,9 +368,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
}
|
||||
|
||||
private fun startNewPhotoFetcher() {
|
||||
val photoFetcher = NewPhotoFetcher()
|
||||
if (isNougatPlus() && !photoFetcher.isScheduled(applicationContext)) {
|
||||
photoFetcher.scheduleJob(applicationContext)
|
||||
if (isNougatPlus()) {
|
||||
val photoFetcher = NewPhotoFetcher()
|
||||
if (!photoFetcher.isScheduled(applicationContext)) {
|
||||
photoFetcher.scheduleJob(applicationContext)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue