Skip to content
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

controls emitter options list changed to dynamic #6793

Merged

Conversation

remibettan
Copy link
Contributor

@remibettan remibettan commented Jul 9, 2020

Triggered by jira ticket: DSO-15273
In android camera application, the relevant values for the emitter options are now dynamic.
This implements also the requirements due to jira ticket: RS5-8168

int indexOfCurrentEmitter = 0;
int indexOfCurrentHwPreset = 0;

RsContext ctx = new RsContext();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is over-use of query_devices() API which affects performance.
Why the current device is not stored in the Model class and then dispatched to the View/View-Model?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

<resources>

<string-array name="controls_emitter_entries">
<item>"OFF"</item>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be done dynamically with get_option_value_description API.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

<item>"LED"</item>
</string-array>

<string-array name="controls_hw_presets_entries">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For review

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@ev-mp ev-mp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@ev-mp ev-mp changed the base branch from ac to development July 21, 2020 08:12
@ev-mp ev-mp merged commit 6c11314 into IntelRealSense:development Jul 21, 2020
@remibettan remibettan deleted the android-controls-led-correction branch March 15, 2021 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants