Refactor
parent
4e90123814
commit
a612b02dfa
|
@ -63,13 +63,11 @@ import java.util.concurrent.CountDownLatch
|
||||||
}
|
}
|
||||||
|
|
||||||
fun destroy() {
|
fun destroy() {
|
||||||
if (imageObserver != null) {
|
if (imageObserver != null)
|
||||||
mCtx.contentResolver.unregisterContentObserver(imageObserver!!)
|
mCtx.contentResolver.unregisterContentObserver(imageObserver!!)
|
||||||
}
|
if (videoObserver != null)
|
||||||
if (videoObserver != null) {
|
|
||||||
mCtx.contentResolver.unregisterContentObserver(videoObserver!!)
|
mCtx.contentResolver.unregisterContentObserver(videoObserver!!)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fun registerHooks() {
|
fun registerHooks() {
|
||||||
imageObserver = registerContentObserver(SystemImage.IMAGE_URI)
|
imageObserver = registerContentObserver(SystemImage.IMAGE_URI)
|
||||||
|
|
Loading…
Reference in New Issue