Fix Data warning title not translated.

- change to use the title resource id instead of getting the title from
the preference, so that it can react to language change properly.

Change-Id: I7f4b3c49ef1622b3d90bf035597742cac6f7af3c
Fixes: 78318536
Test: run i18nscreenshots
This commit is contained in:
Doris Ling
2018-04-24 13:42:19 -07:00
parent 465f6da15b
commit 1cf0dfd3b2

View File

@@ -88,7 +88,7 @@ public class BillingCyclePreference extends Preference implements TemplatePrefer
return new SubSettingLauncher(getContext())
.setDestination(BillingCycleSettings.class.getName())
.setArguments(args)
.setTitle(getTitle())
.setTitle(R.string.billing_cycle)
.setSourceMetricsCategory(MetricsProto.MetricsEvent.VIEW_UNKNOWN)
.toIntent();
}