-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add voice broadcast labs setting #7393
Conversation
441001b
to
d53ad43
Compare
8c323ee
to
f8261c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor remarks on the resources, not really blocking.
label = "Enable Voice Broadcast", | ||
key = DebugFeatureKeys.voiceBroadcastEnabled, | ||
factory = VectorFeatures::isVoiceBroadcastEnabled | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a lab setting should not make us to remove the feature flag. The feature flag could help to control the display of the lab setting. Not blocking this PR though.
--> | ||
|
||
<!-- Level 1: Labs --> | ||
<bool name="settings_labs_enable_voice_broadcast_visible">true</bool> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nice solution, hence could be hard to understand for fork maintainers.
I would rather test API version in the code, to eventually hide the setting, even if the bool
is set to true
.
@@ -49,6 +49,8 @@ | |||
<bool name="settings_timeline_show_live_sender_info_default">false</bool> | |||
<bool name="settings_labs_rich_text_editor_visible">true</bool> | |||
<bool name="settings_labs_rich_text_editor_default">false</bool> | |||
<bool name="settings_labs_enable_voice_broadcast_visible">false</bool> <!-- Note: also defined in values-v29 --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you keep this, I would rather comment like this:
<bool name="settings_labs_enable_voice_broadcast_visible">false</bool> <!-- Note: also defined in values-v29 --> | |
<bool name="settings_labs_enable_voice_broadcast_visible">false</bool> <!-- Note: this value must always be false. See in values-v29/config-settings to toggle the visibility of this flag. --> |
But I would definitely go for the test at runtime, to avoid any mistakes.
So this could be changed to
<bool name="settings_labs_enable_voice_broadcast_visible">false</bool> <!-- Note: also defined in values-v29 --> | |
<!-- Note: on device with API < 29, setting this value to true has no effect. --> | |
<bool name="settings_labs_enable_voice_broadcast_visible">false</bool> |
f8261c1
to
90803be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some latest remarks
@@ -3346,6 +3346,8 @@ | |||
<string name="labs_enable_session_manager_summary">Have greater visibility and control over all your sessions.</string> | |||
<string name="labs_enable_client_info_recording_title">Enable client info recording</string> | |||
<string name="labs_enable_client_info_recording_summary">Record the client name, version, and url to recognise sessions more easily in session manager.</string> | |||
<string name="labs_enable_voice_broadcast_title">Enable Voice broadcast (under active development)</string> | |||
<string name="labs_enable_voice_broadcast_summary">Be able to record and send voice broadcast in room timeline.‡</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there is an extra ‡
at the end of the sentence.
changelog.d/7393.wip
Outdated
@@ -0,0 +1 @@ | |||
[Voice Broadcast] Move the feature flag to the labs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Voice Broadcast] Move the feature flag to the labs | |
[Voice Broadcast] Enable the feature (behind a lab flag and only for Android 10 and up). |
@@ -3346,6 +3346,8 @@ | |||
<string name="labs_enable_session_manager_summary">Have greater visibility and control over all your sessions.</string> | |||
<string name="labs_enable_client_info_recording_title">Enable client info recording</string> | |||
<string name="labs_enable_client_info_recording_summary">Record the client name, version, and url to recognise sessions more easily in session manager.</string> | |||
<string name="labs_enable_voice_broadcast_title">Enable Voice broadcast (under active development)</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Florian14 feel free to replace the "Voice" with "voice". It would be more adapted to the other flags
SonarCloud Quality Gate failed. |
Type of change
Content
Remove the debug feature flag and move it to labs setting
Also renamed the recorded voice message files
Also changed the default voice messages duration
Note that the flag is not accessible on Android < 10 because the recording is not possible on these versions.
The flag only forbid voice broadcast recording but the listening is still possible for all users.
Motivation and context
Continue #7127
Screenshots / GIFs
Tests
Tested devices
Checklist