Updated improper field name

This commit is contained in:
Maya Zhecheva
2016-08-22 15:20:36 +03:00
parent 24ebcc56a9
commit e487928ab8

View File

@@ -40,8 +40,8 @@ function showDialog(builder: android.app.AlertDialog.Builder) {
}
}
var backgroundColor = dialogsCommon.getButtonColor();
if (backgroundColor) {
var buttonColor = dialogsCommon.getButtonColor();
if (buttonColor) {
let buttons : android.widget.Button[] = [];
for (var i = 0; i < 3; i++) {
var id = dlg.getContext().getResources().getIdentifier("android:id/button" + i, null, null);
@@ -49,7 +49,7 @@ function showDialog(builder: android.app.AlertDialog.Builder) {
}
buttons.forEach(button => {
if (button) {
button.setTextColor(backgroundColor.android);
button.setTextColor(buttonColor.android);
}
});
}