-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
controls emitter options list changed to dynamic #6793
Conversation
int indexOfCurrentEmitter = 0; | ||
int indexOfCurrentHwPreset = 0; | ||
|
||
RsContext ctx = new RsContext(); |
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.
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?
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.
done
<resources> | ||
|
||
<string-array name="controls_emitter_entries"> | ||
<item>"OFF"</item> |
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.
This can be done dynamically with get_option_value_description
API.
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.
done
<item>"LED"</item> | ||
</string-array> | ||
|
||
<string-array name="controls_hw_presets_entries"> |
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.
For review
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.
done
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.
Approved
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