Skip to content

Commit 7650635

Browse files
committed
Fix AlertManager to limit Alerts to 4 soft buttons and trim the list if more are given
1 parent 001fbef commit 7650635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/js/src/manager/screen/utils/_PresentAlertOperation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class _PresentAlertOperation extends _Task {
304304

305305
if (this._alertView.getSoftButtons() !== null) {
306306
const softButtons = [];
307-
for (let index = 0; index < this._alertView.getSoftButtons().length; index++) {
307+
for (let index = 0; index < this._getSoftButtonCount(); index++) {
308308
softButtons.push(this._alertView.getSoftButtons()[index].getCurrentStateSoftButton());
309309
}
310310
alert.setSoftButtons(softButtons);

0 commit comments

Comments
 (0)