diff --git a/app/src/main/java/gallery/memories/service/TimelineQuery.kt b/app/src/main/java/gallery/memories/service/TimelineQuery.kt index 468ea3ed..31025a1b 100644 --- a/app/src/main/java/gallery/memories/service/TimelineQuery.kt +++ b/app/src/main/java/gallery/memories/service/TimelineQuery.kt @@ -63,12 +63,10 @@ import java.util.concurrent.CountDownLatch } fun destroy() { - if (imageObserver != null) { + if (imageObserver != null) mCtx.contentResolver.unregisterContentObserver(imageObserver!!) - } - if (videoObserver != null) { + if (videoObserver != null) mCtx.contentResolver.unregisterContentObserver(videoObserver!!) - } } fun registerHooks() {