mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-16 19:05:27 -04:00
Fixed deprecated constructor of FileObserver
This commit is contained in:
parent
cd0401947f
commit
662f79b1d6
@ -62,8 +62,8 @@ class Fat32Checker constructor(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun fileObserver(it: String?): FileObserver {
|
private fun fileObserver(it: String): FileObserver {
|
||||||
return object : FileObserver(it, MOVED_FROM or DELETE) {
|
return object : FileObserver(File(it), MOVED_FROM or DELETE) {
|
||||||
override fun onEvent(event: Int, path: String?) {
|
override fun onEvent(event: Int, path: String?) {
|
||||||
requestCheckSystemFileType.onNext(Unit)
|
requestCheckSystemFileType.onNext(Unit)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user