De-hardcoded a string

This commit is contained in:
SerpentSpirale 2021-05-12 09:11:47 +02:00
parent c13eda73e1
commit 35c23be3f0
2 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class EditControlDrawerPopup extends EditControlButtonPopup{
protected void setupDialogButtons() {
super.setupDialogButtons();
builder.setNeutralButton("Add sub-button", new DialogInterface.OnClickListener() {
builder.setNeutralButton(v.getResources().getString(R.string.customctrl_addsubbutton), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
ControlLayout layout = (ControlLayout) drawer.getParent();

View File

@ -191,6 +191,7 @@
<string name="customctrl_keycombine_shift">Shift</string>
<string name="customctrl_addbutton">Add button</string>
<string name="customctrl_addbutton_drawer">Add button drawer</string>
<string name="customctrl_addsubbutton">Add sub-button</string>
<string name="customctrl_selectdefault">Select default Control json</string>