diff --git a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/PmBase.java b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/PmBase.java index 84eefe64..4da5a9a7 100644 --- a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/PmBase.java +++ b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/PmBase.java @@ -1263,6 +1263,11 @@ final void pluginUninstalled(PluginInfo info) { if (mPlugins.containsKey(info.getName())) { mPlugins.remove(info.getName()); } + //移除卸载插件的HashMap中已包名为key的缓存 + String packageName = info.getPackageName(); + if (mPlugins.containsKey(packageName)) { + mPlugins.remove(packageName); + } // 移除卸载插件表快照 PluginTable.removeInfo(info);