Fixed deprecated constructor of FileObserver

This commit is contained in:
MohitMaliFtechiz 2023-05-26 14:17:11 +05:30 committed by Kelson
parent cd0401947f
commit 662f79b1d6

View File

@ -62,8 +62,8 @@ class Fat32Checker constructor(
)
}
private fun fileObserver(it: String?): FileObserver {
return object : FileObserver(it, MOVED_FROM or DELETE) {
private fun fileObserver(it: String): FileObserver {
return object : FileObserver(File(it), MOVED_FROM or DELETE) {
override fun onEvent(event: Int, path: String?) {
requestCheckSystemFileType.onNext(Unit)
}