[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:
Lioncash 2013-09-04 07:32:28 -04:00
parent a83d4e7226
commit 48cda9d26f
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
<!-- Input Config Fragment --> <!-- Input Config Fragment -->
<string name="input_settings">入力設定</string> <string name="input_settings">入力設定</string>
<string name="input_binding">入力バインディング</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_a">Aボタン</string>
<string name="button_b">Bボタン</string> <string name="button_b">Bボタン</string>
<string name="button_start">スタートボタン</string> <string name="button_start">スタートボタン</string>

View File

@ -40,7 +40,7 @@
<!-- Input Config Fragment --> <!-- Input Config Fragment -->
<string name="input_settings">Input</string> <string name="input_settings">Input</string>
<string name="input_binding">Input Binding</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_a">Button A</string>
<string name="button_b">Button B</string> <string name="button_b">Button B</string>
<string name="button_start">Button Start</string> <string name="button_start">Button Start</string>

View File

@ -183,7 +183,7 @@ public final class InputConfigFragment extends PreferenceFragment
// Set the title and description message. // Set the title and description message.
dialog.setTitle(R.string.input_binding); 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 // Don't allow the dialog to close when a user taps
// outside of it. They must press cancel or provide an input. // outside of it. They must press cancel or provide an input.