Refactor
parent
4e90123814
commit
a612b02dfa
|
@ -63,13 +63,11 @@ 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() {
|
||||
imageObserver = registerContentObserver(SystemImage.IMAGE_URI)
|
||||
|
|
Loading…
Reference in New Issue