Verified Commit aaba9f24 authored by akwizgran's avatar akwizgran
Browse files

Don't configure plugin unless feature flag is enabled.

parent 6a909b6c
Pipeline #7123 passed with stages
in 14 minutes and 35 seconds
......@@ -155,7 +155,8 @@ public class AppModule {
@Singleton
PluginConfig providePluginConfig(AndroidBluetoothPluginFactory bluetooth,
AndroidTorPluginFactory tor, AndroidLanTcpPluginFactory lan,
AndroidRemovableDrivePluginFactory drive) {
AndroidRemovableDrivePluginFactory drive,
FeatureFlags featureFlags) {
@NotNullByDefault
PluginConfig pluginConfig = new PluginConfig() {
......@@ -166,7 +167,11 @@ public class AppModule {
@Override
public Collection<SimplexPluginFactory> getSimplexFactories() {
return SDK_INT >= 19 ? singletonList(drive) : emptyList();
if (SDK_INT >= 19 && featureFlags.shouldEnableTransferData()) {
return singletonList(drive);
} else {
return emptyList();
}
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment