Skip to content

controls emitter options list changed to dynamic - #6793

Merged
ev-mp merged 4 commits into
realsenseai:developmentfrom
remibettan:android-controls-led-correction
Jul 21, 2020
Merged

controls emitter options list changed to dynamic#6793
ev-mp merged 4 commits into
realsenseai:developmentfrom
remibettan:android-controls-led-correction

Conversation

@remibettan

@remibettan remibettan commented Jul 9, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

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 realsenseai: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