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
f940aa7497
commit
c2c64a8098
@ -147,7 +147,7 @@ public final class SoftwareKeyboard {
|
|||||||
case ButtonConfig.Single: {
|
case ButtonConfig.Single: {
|
||||||
final String text = config.button_text == null
|
final String text = config.button_text == null
|
||||||
? emulationActivity.getString(android.R.string.ok)
|
? emulationActivity.getString(android.R.string.ok)
|
||||||
: config.button_text[config.button_config];
|
: config.button_text[2];
|
||||||
builder.setPositiveButton(text, null);
|
builder.setPositiveButton(text, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user