Fix CDM profiles string template use
String template was recently updated. This updates the values to be placed into it. Bug: 165951651 Test: manual Change-Id: Ib3d2b4a08df2ad7422a28eb5ff9379d92e78343a
This commit is contained in:
@@ -128,9 +128,11 @@ public class CompanionDeviceActivity extends Activity {
|
||||
|
||||
if (useDeviceProfile) {
|
||||
profileSummary.setVisibility(View.VISIBLE);
|
||||
String deviceRef = getRequest().isSingleDevice()
|
||||
? getService().mDevicesFound.get(0).getDisplayName()
|
||||
: profileName;
|
||||
profileSummary.setText(getString(R.string.profile_summary,
|
||||
getCallingAppName(),
|
||||
profileName,
|
||||
deviceRef,
|
||||
profilePrivacyDisclaimer));
|
||||
} else {
|
||||
profileSummary.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user