Skip to content

Commit 5f780b7

Browse files
authored
Merge pull request #416 from smartdevicelink/bugfix/alert_buttons_limit
Fix AlertManager to limit Alerts to 4 soft buttons and trim the list …
2 parents 3b44247 + 7650635 commit 5f780b7

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)