[core] Fix prefs watcher
This commit is contained in:
parent
e296d0fba9
commit
b5305e8621
|
|
@ -201,8 +201,7 @@ public final class XSharedPreferences implements SharedPreferences {
|
||||||
Path path = mFile.toPath();
|
Path path = mFile.toPath();
|
||||||
try {
|
try {
|
||||||
if (sWatcher == null) {
|
if (sWatcher == null) {
|
||||||
// TODO
|
sWatcher = new File(serviceClient.getPrefsPath("")).toPath().getFileSystem().newWatchService();
|
||||||
// sWatcher = new File(XposedInit.prefsBasePath).toPath().getFileSystem().newWatchService();
|
|
||||||
if (BuildConfig.DEBUG) Log.d(TAG, "Created WatchService instance");
|
if (BuildConfig.DEBUG) Log.d(TAG, "Created WatchService instance");
|
||||||
}
|
}
|
||||||
mWatchKey = path.getParent().register(sWatcher, StandardWatchEventKinds.ENTRY_CREATE,
|
mWatchKey = path.getParent().register(sWatcher, StandardWatchEventKinds.ENTRY_CREATE,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue