Use fixed indices for button order
Apps always return 3 strings, even if there is no custom text, so the index should be constant for each button. The "OK" button is always at index 2.
This commit is contained in:
parent
cfa38feeba
commit
a95aa6ad3f
@ -147,7 +147,7 @@ public final class SoftwareKeyboard {
|
||||
case ButtonConfig.Single: {
|
||||
final String text = config.button_text == null
|
||||
? emulationActivity.getString(android.R.string.ok)
|
||||
: config.button_text[config.button_config];
|
||||
: config.button_text[2];
|
||||
builder.setPositiveButton(text, null);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user