Fix wrong type casting in updateRemotePreferences (#2614)

fix https://github.com/libxposed/example/issues/2
This commit is contained in:
5ec1cff 2023-07-10 00:34:02 +08:00 committed by GitHub
parent 19c794b7d5
commit 4190bfb9e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -203,9 +203,9 @@ public class LSPModuleService extends IXposedService.Stub {
var userId = ensureModule();
Map<String, Object> values = new ArrayMap<>();
if (diff.containsKey("delete")) {
var deletes = diff.getStringArrayList("delete");
var deletes = (Set<?>) diff.getSerializable("delete");
for (var key : deletes) {
values.put(key, null);
values.put((String) key, null);
}
}
if (diff.containsKey("put")) {