Hide Transfer Data feature behind feature flag

This commit is contained in:
Torsten Grote
2021-06-17 12:11:42 -03:00
parent ab2fe58d2f
commit f457a5e831
5 changed files with 14 additions and 1 deletions

View File

@@ -307,6 +307,11 @@ public class AppModule {
public boolean shouldEnableConnectViaBluetooth() {
return IS_DEBUG_BUILD;
}
@Override
public boolean shouldEnableTransferData() {
return IS_DEBUG_BUILD;
}
};
}
}

View File

@@ -376,7 +376,7 @@ public class ConversationActivity extends BriarActivity
menu.findItem(R.id.action_connect_via_bluetooth).setVisible(false);
}
// Transfer Data feature only supported on API 19+
if (SDK_INT >= 19) { // TODO also hide behind feature flag
if (SDK_INT >= 19 && featureFlags.shouldEnableTransferData()) {
menu.findItem(R.id.action_transfer_data).setVisible(true);
}
// enable alias and bluetooth action once available