ignore the photoFetcher at Android versions below 7
This commit is contained in:
parent
bee4b0ff72
commit
5592c23c4e
|
@ -368,11 +368,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun startNewPhotoFetcher() {
|
private fun startNewPhotoFetcher() {
|
||||||
|
if (isNougatPlus()) {
|
||||||
val photoFetcher = NewPhotoFetcher()
|
val photoFetcher = NewPhotoFetcher()
|
||||||
if (isNougatPlus() && !photoFetcher.isScheduled(applicationContext)) {
|
if (!photoFetcher.isScheduled(applicationContext)) {
|
||||||
photoFetcher.scheduleJob(applicationContext)
|
photoFetcher.scheduleJob(applicationContext)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun removeTempFolder() {
|
private fun removeTempFolder() {
|
||||||
if (config.tempFolderPath.isNotEmpty()) {
|
if (config.tempFolderPath.isNotEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue