Turn PluginManager into a Singelton.

Fixes a memory leak around UncaughtExceptionHandler where
a new one would be created each time PluginManagerImpl was
instantiated.

Fixes: 199853969
Test: manual
Change-Id: Ie4c3a0ca791ded4bb9737bd24a554943990c6680
This commit is contained in:
Dave Mankoff
2021-09-14 10:06:05 -04:00
parent d730a09568
commit bb36e5592c

View File

@@ -102,6 +102,7 @@ public abstract class PluginsModule {
}
@Provides
@Singleton
static PluginManager providesPluginManager(
Context context,
PluginActionManager.Factory instanceManagerFactory,