[core] Fix `removeModuleScopeWithoutCache` (#1461)
This commit is contained in:
parent
8a684b8d0d
commit
fa2bd0cd7c
|
|
@ -780,7 +780,9 @@ public class ConfigManager {
|
|||
|
||||
private boolean removeModuleScopeWithoutCache(Application module) {
|
||||
if (module.packageName.equals("lspd")) return false;
|
||||
boolean res = executeInTransaction(() -> db.delete("scope", "mid = ? and user_id = ?", new String[]{module.packageName, String.valueOf(module.userId)}) > 0);
|
||||
int mid = getModuleId(module.packageName);
|
||||
if (mid == -1) return false;
|
||||
boolean res = executeInTransaction(() -> db.delete("scope", "mid = ? and user_id = ?", new String[]{String.valueOf(mid), String.valueOf(module.userId)}) > 0);
|
||||
try {
|
||||
removeModulePrefs(module.userId, module.packageName);
|
||||
} catch (IOException e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue