Merge "Add plugin to list before sending PLUGIN_CONNECTED am: 440e6fae5e" into qt-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
50570aed46
@@ -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