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:
hjchangliao
2018-05-02 13:01:07 +08:00
parent ea2bace446
commit e86eec0c07
55 changed files with 101 additions and 85 deletions

View File

@@ -52,7 +52,7 @@ public class WallpaperSuggestionActivity extends Activity {
// fall back to default wallpaper picker
new SubSettingLauncher(this)
.setDestination(WallpaperTypeSettings.class.getName())
.setTitle(R.string.wallpaper_suggestion_title)
.setTitleRes(R.string.wallpaper_suggestion_title)
.setSourceMetricsCategory(MetricsProto.MetricsEvent.DASHBOARD_SUMMARY)
.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT)
.launch();