Add plugin to list before sending PLUGIN_CONNECTED
Test: manual Fixes: 130527695 Change-Id: Ia40c25bc86aff18ed56399da89b6fdcc8a8d653f
This commit is contained in:
@@ -295,8 +295,10 @@ public class PluginInstanceManager<T extends Plugin> {
|
||||
info.serviceInfo.name);
|
||||
PluginInfo<T> t = handleLoadPlugin(name);
|
||||
if (t == null) continue;
|
||||
mMainHandler.obtainMessage(mMainHandler.PLUGIN_CONNECTED, t).sendToTarget();
|
||||
|
||||
// add plugin before sending PLUGIN_CONNECTED message
|
||||
mPlugins.add(t);
|
||||
mMainHandler.obtainMessage(mMainHandler.PLUGIN_CONNECTED, t).sendToTarget();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user