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:
@@ -70,7 +70,7 @@ public class BatterySaverCondition extends Condition implements
|
||||
new SubSettingLauncher(mManager.getContext())
|
||||
.setDestination(BatterySaverSettings.class.getName())
|
||||
.setSourceMetricsCategory(MetricsEvent.DASHBOARD_SUMMARY)
|
||||
.setTitle(R.string.battery_saver)
|
||||
.setTitleRes(R.string.battery_saver)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
.launch();
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public class DndCondition extends Condition {
|
||||
new SubSettingLauncher(mManager.getContext())
|
||||
.setDestination(ZenModeSettings.class.getName())
|
||||
.setSourceMetricsCategory(MetricsEvent.DASHBOARD_SUMMARY)
|
||||
.setTitle(R.string.zen_mode_settings_title)
|
||||
.setTitleRes(R.string.zen_mode_settings_title)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
.launch();
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public class HotspotCondition extends Condition {
|
||||
new SubSettingLauncher(mManager.getContext())
|
||||
.setDestination(TetherSettings.class.getName())
|
||||
.setSourceMetricsCategory(MetricsEvent.DASHBOARD_SUMMARY)
|
||||
.setTitle(R.string.tether_settings_title_all)
|
||||
.setTitleRes(R.string.tether_settings_title_all)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
.launch();
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ public final class NightDisplayCondition extends Condition
|
||||
new SubSettingLauncher(mManager.getContext())
|
||||
.setDestination(NightDisplaySettings.class.getName())
|
||||
.setSourceMetricsCategory(MetricsEvent.DASHBOARD_SUMMARY)
|
||||
.setTitle(R.string.night_display_title)
|
||||
.setTitleRes(R.string.night_display_title)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
.launch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user