Merge "Use string resources for avatar picker button labels." into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-14 07:23:25 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -1293,6 +1293,8 @@
<string name="cancel">Cancel</string>
<!-- Button label for generic OK action [CHAR LIMIT=20] -->
<string name="okay">OK</string>
<!-- Button label for generic Done action, to be pressed when an action has been completed [CHAR LIMIT=20] -->
<string name="done">Done</string>
<!-- Label for the settings activity for controlling apps that can schedule alarms [CHAR LIMIT=30] -->
<string name="alarms_and_reminders_label">Alarms and reminders</string>

View File

@@ -106,13 +106,13 @@ public class AvatarPickerActivity extends Activity {
FooterButton secondaryButton =
new FooterButton.Builder(this)
.setText("Cancel")
.setText(getString(android.R.string.cancel))
.setListener(view -> cancel())
.build();
mDoneButton =
new FooterButton.Builder(this)
.setText("Done")
.setText(getString(R.string.done))
.setListener(view -> mAdapter.returnSelectionResult())
.build();
mDoneButton.setEnabled(false);