Fix strings for support tab.
Bug: 29105266 - Fix typos in string and comments - Use 2 different strings for off-hour and off-line cases. Change-Id: I63859605ff7185d5f8cc66fd31b56f1d09ed11aa
This commit is contained in:
@@ -7516,7 +7516,10 @@
|
||||
<string name="support_escalation_24_7_summary">Our support team is available all day, every day</string>
|
||||
|
||||
<!-- Summary text when customer support is closed. [CHAR LIMIT=NONE]-->
|
||||
<string name="support_escalation_closed_summary">Phone support hours (local time)<br><b><xliff:g id="operation_hours">%s</xliff:g></b></string>
|
||||
<string name="support_escalation_closed_summary">Search help or come back during support hours (local time):<br><b><xliff:g id="operation_hours">%s</xliff:g></b></string>
|
||||
|
||||
<!-- Summary text to call customer support when there is no internet. [CHAR LIMIT=NONE]-->
|
||||
<string name="support_escalation_no_internet_summary">Phone support hours (local time)<br><b><xliff:g id="operation_hours">%s</xliff:g></b></string>
|
||||
|
||||
<!-- Summary text when customer support is unavailable in the region. [CHAR LIMIT=NONE]-->
|
||||
<string name="support_escalation_unavailable_summary">Search help or explore tips & tricks</string>
|
||||
@@ -7538,7 +7541,7 @@
|
||||
</string>
|
||||
|
||||
<!-- Title text for a list of international support phone numbers. [CHAR LIMIT=60]-->
|
||||
<string name="support_international_phone_title">Traveling aboard?</string>
|
||||
<string name="support_international_phone_title">Traveling abroad?</string>
|
||||
|
||||
<!-- Description text warning international phone charge may apply when dialing support numbers. [CHAR LIMIT=NONE]-->
|
||||
<string name="support_international_phone_summary">International charges may apply</string>
|
||||
|
@@ -198,10 +198,11 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
|
||||
builder.setTileTitle(R.string.support_escalation_title)
|
||||
.setTileSummary(R.string.support_escalation_summary);
|
||||
} else {
|
||||
// Support is not temporarily unavailable.
|
||||
// Support is now temporarily unavailable.
|
||||
builder.setTileTitle(R.string.support_escalation_title)
|
||||
.setTileSummary(
|
||||
mSupportFeatureProvider.getOperationHours(mActivity, PHONE, null));
|
||||
mSupportFeatureProvider.getOperationHours(mActivity, PHONE, null,
|
||||
true /* hasInternet */));
|
||||
}
|
||||
if (hasPhoneOperation) {
|
||||
builder.setText1(R.string.support_escalation_by_phone)
|
||||
@@ -222,7 +223,7 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
|
||||
operatingHours = mActivity.getString(R.string.support_escalation_24_7_summary);
|
||||
} else {
|
||||
operatingHours = mSupportFeatureProvider.getOperationHours(mActivity,
|
||||
PHONE, mSelectedCountry);
|
||||
PHONE, mSelectedCountry, false /* hasInternet */);
|
||||
}
|
||||
mSupportData.add(new OfflineEscalationData.Builder(mActivity)
|
||||
.setCountries(mSupportFeatureProvider.getPhoneSupportCountries())
|
||||
|
@@ -71,7 +71,8 @@ public interface SupportFeatureProvider {
|
||||
* Returns localized string for operation hours in specified country. If country is null, use
|
||||
* current country to figure out operation hours.
|
||||
*/
|
||||
CharSequence getOperationHours(Context context, @SupportType int type, String countryCode);
|
||||
CharSequence getOperationHours(Context context, @SupportType int type, String countryCode,
|
||||
boolean hasInternet);
|
||||
|
||||
/**
|
||||
* Returns a localized string indicating estimated wait time for a support time.
|
||||
|
Reference in New Issue
Block a user