mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-27 04:42:51 +08:00
Call the initial onResume() on a plugin when it is created. This corrects the lifecycle behavior for plugins.
This commit is contained in:
parent
0f988717d0
commit
a4d66c63a4
@ -217,6 +217,7 @@ public final class PluginManager {
|
|||||||
this.plugins.put(className, plugin);
|
this.plugins.put(className, plugin);
|
||||||
plugin.setContext(this.ctx);
|
plugin.setContext(this.ctx);
|
||||||
plugin.setView(this.app);
|
plugin.setView(this.app);
|
||||||
|
plugin.onResume(true);
|
||||||
return plugin;
|
return plugin;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user