Android fix dso 15687 [Android-Viewer]: Default Started streams appears off in settings - #9689
Conversation
| HashMap<String, List<String>> expandableListDetail = new HashMap<String, List<String>>(); | ||
|
|
||
| expandableListDetail.put("Configuration:(default-disable all)",settings_group); | ||
| expandableListDetail.put("Configuration:(turn off all to reset to default streams)",settings_group); |
There was a problem hiding this comment.
What does it mean?
If the user want to disable all streams he will turn off all streams and than the default streams will be on?
How can he disable all streams in that case?
It's confusing.
There was a problem hiding this comment.
On android, when device is connected, the app starts the default streams automatically. User can change the stream profiles in settings, and reset to default streams by turning off all the stream settings. Currently, when the device is streaming under default profiles, the stream detail is not displayed under settings. This PR fixed it.
The device always streams either user chosen profiles or the default profiles. In current app, there is no usage to disable all streams (the messages disable all but actually it reset to default streams, I changed the message to make it clear). I'm not sure if we want to change that usage.
If we do, will need to introduce a new usage with all streams off, i.e., the camera may have no live streams. the user interface may need change too to make it clear start/stop the camera. I'd leave that in a separate PR and ask for more inputs for the usage/UI change.
There was a problem hiding this comment.
Oh OK, I didn't knew that was the case today.
Thanks for the informative explanation.
Fix [Android-Viewer]: Default Started streams appears off in settings
Changes:
1) added getActiveStreams api in sensor and pipeline on android
2) populate default stream profiles in camera viewer settings
3) turn off all settings to reset to default streams
Tracked on: DSO-15687