[Android] Display the name of the control that is being bound in the input settings. Makes the binding description more informative.
This commit is contained in:
parent
a83d4e7226
commit
48cda9d26f
|
@ -40,7 +40,7 @@
|
|||
<!-- Input Config Fragment -->
|
||||
<string name="input_settings">入力設定</string>
|
||||
<string name="input_binding">入力バインディング</string>
|
||||
<string name="input_binding_descrip">このコントロールにバインドするための入力を移動または押してください。</string>
|
||||
<string name="input_binding_descrip">%1$sにバインドするための入力を移動または押してください。</string>
|
||||
<string name="button_a">Aボタン</string>
|
||||
<string name="button_b">Bボタン</string>
|
||||
<string name="button_start">スタートボタン</string>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<!-- Input Config Fragment -->
|
||||
<string name="input_settings">Input</string>
|
||||
<string name="input_binding">Input Binding</string>
|
||||
<string name="input_binding_descrip">Press or move an input to bind it to this control.</string>
|
||||
<string name="input_binding_descrip">Press or move an input to bind it to %1$s</string>
|
||||
<string name="button_a">Button A</string>
|
||||
<string name="button_b">Button B</string>
|
||||
<string name="button_start">Button Start</string>
|
||||
|
|
|
@ -183,7 +183,7 @@ public final class InputConfigFragment extends PreferenceFragment
|
|||
|
||||
// Set the title and description message.
|
||||
dialog.setTitle(R.string.input_binding);
|
||||
dialog.setMessage(getString(R.string.input_binding_descrip));
|
||||
dialog.setMessage(String.format(getString(R.string.input_binding_descrip), pref.getTitle()));
|
||||
|
||||
// Don't allow the dialog to close when a user taps
|
||||
// outside of it. They must press cancel or provide an input.
|
||||
|
|
Loading…
Reference in New Issue