aws / amazon-chime-sdk-android

An Android client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
105 stars 49 forks source link

Remove the name of the model and keep only handset and speaker text in MediaDevice #586

Closed PatelJa02 closed 11 months ago

PatelJa02 commented 1 year ago

1695240630333

Hello Support,

Need your help I need to remove the "Name of Model" from the text "{Name of Model} Headset and same for speaker as you can see in the above screen shot. I only want to show the headset and speaker can you suggest how I can achieve the same?

As I checked this coming from the label variable from the MediaDevice class.

linsang21 commented 11 months ago

You can assign any value you want to the text to display in the adapter: https://github.com/aws/amazon-chime-sdk-android/blob/master/app/src/main/java/com/amazonaws/services/chime/sdkdemo/adapter/DeviceAdapter.kt#L33-L37

view.text = devices[position].type.toString()