Merge "Finalized Watch profile summary string"
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<string name="app_label">Companion Device Manager</string>
|
||||
|
||||
<!-- Title of the device association confirmation dialog. -->
|
||||
<string name="confirmation_title">Allow <strong><xliff:g id="app_name" example="Android Wear">%1$s</xliff:g></strong> to manage your <strong><xliff:g id="device_name" example="ASUS ZenWatch 2">%2$s</xliff:g></strong></string>
|
||||
<string name="confirmation_title">Allow <strong><xliff:g id="app_name" example="Android Wear">%1$s</xliff:g></strong> to access your <strong><xliff:g id="device_name" example="ASUS ZenWatch 2">%2$s</xliff:g></strong></string>
|
||||
|
||||
<!-- ================= DEVICE_PROFILE_WATCH and null profile ================= -->
|
||||
|
||||
@@ -31,10 +31,7 @@
|
||||
<string name="chooser_title">Choose a <xliff:g id="profile_name" example="watch">%1$s</xliff:g> to be managed by <strong><xliff:g id="app_name" example="Android Wear">%2$s</xliff:g></strong></string>
|
||||
|
||||
<!-- Description of the privileges the application will get if associated with the companion device of WATCH profile (type) [CHAR LIMIT=NONE] -->
|
||||
<string name="summary_watch" product="default"><xliff:g id="app_name" example="Wear">%1$s</xliff:g> will be allowed to interact with your notifications and access your Phone, SMS, Contacts and Calendar permissions.</string>
|
||||
|
||||
<!-- Description of the privileges the application will get if associated with the companion device of WATCH profile (type) [CHAR LIMIT=NONE] -->
|
||||
<string name="summary_watch" product="tablet"><xliff:g id="app_name" example="Wear">%1$s</xliff:g> will be allowed to interact with your notifications and access your Phone, SMS, Contacts and Calendar permissions.</string>
|
||||
<string name="summary_watch">This app is needed to manage your <xliff:g id="device_name" example="My Watch">%1$s</xliff:g>. <xliff:g id="app_name" example="Android Wear">%2$s</xliff:g> will be allowed to interact with your notifications and access your Phone, SMS, Contacts, Calendar, Call logs and Nearby devices permissions.</string>
|
||||
|
||||
<!-- ================= DEVICE_PROFILE_APP_STREAMING ================= -->
|
||||
|
||||
|
||||
@@ -498,18 +498,19 @@ public class CompanionDeviceActivity extends FragmentActivity implements
|
||||
}
|
||||
|
||||
final String deviceName = mSelectedDevice.getDisplayName();
|
||||
mRequest.setDisplayName(deviceName);
|
||||
final Spanned title = getHtmlFromResources(
|
||||
this, R.string.confirmation_title, appLabel, deviceName);
|
||||
final String profileName = getString(R.string.profile_name_watch);
|
||||
final Spanned title;
|
||||
final Spanned summary;
|
||||
final Drawable profileIcon;
|
||||
|
||||
if (deviceProfile == null) {
|
||||
title = getHtmlFromResources(this, R.string.confirmation_title, appLabel, deviceName);
|
||||
summary = getHtmlFromResources(this, R.string.summary_generic);
|
||||
profileIcon = getIcon(this, R.drawable.ic_device_other);
|
||||
mSummary.setVisibility(View.GONE);
|
||||
} else if (deviceProfile.equals(DEVICE_PROFILE_WATCH)) {
|
||||
summary = getHtmlFromResources(this, R.string.summary_watch, appLabel, deviceName);
|
||||
title = getHtmlFromResources(this, R.string.confirmation_title, appLabel, profileName);
|
||||
summary = getHtmlFromResources(this, R.string.summary_watch, deviceName, appLabel);
|
||||
profileIcon = getIcon(this, R.drawable.ic_watch);
|
||||
} else {
|
||||
throw new RuntimeException("Unsupported profile " + deviceProfile);
|
||||
@@ -537,7 +538,7 @@ public class CompanionDeviceActivity extends FragmentActivity implements
|
||||
mSummary.setVisibility(View.GONE);
|
||||
} else if (deviceProfile.equals(DEVICE_PROFILE_WATCH)) {
|
||||
profileName = getString(R.string.profile_name_watch);
|
||||
summary = getHtmlFromResources(this, R.string.summary_watch, appLabel);
|
||||
summary = getHtmlFromResources(this, R.string.summary_watch, profileName, appLabel);
|
||||
profileIcon = getIcon(this, R.drawable.ic_watch);
|
||||
} else {
|
||||
throw new RuntimeException("Unsupported profile " + deviceProfile);
|
||||
|
||||
Reference in New Issue
Block a user