Rename SubSettingLauncher.setTitle, add java doc
For make this method usage more clear, setTitle(charSequence) rename as setTitleText, add java doc: it is only for user generated string setTitle(int) rename as setTitleRes. Change-Id: I972cb6a8ff90873dfdc25c23f6dc3d68103c8e4e Fixes: 78347436 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -670,14 +670,14 @@ public class ManageApplications extends InstrumentedFragment
|
||||
if (mListType == LIST_TYPE_NOTIFICATION) {
|
||||
new SubSettingLauncher(getContext())
|
||||
.setDestination(ConfigureNotificationSettings.class.getName())
|
||||
.setTitle(R.string.configure_notification_settings)
|
||||
.setTitleRes(R.string.configure_notification_settings)
|
||||
.setSourceMetricsCategory(getMetricsCategory())
|
||||
.setResultListener(this, ADVANCED_SETTINGS)
|
||||
.launch();
|
||||
} else {
|
||||
new SubSettingLauncher(getContext())
|
||||
.setDestination(DefaultAppSettings.class.getName())
|
||||
.setTitle(R.string.configure_apps)
|
||||
.setTitleRes(R.string.configure_apps)
|
||||
.setSourceMetricsCategory(getMetricsCategory())
|
||||
.setResultListener(this, ADVANCED_SETTINGS)
|
||||
.launch();
|
||||
|
Reference in New Issue
Block a user