Permalink
Browse files

front: now validating fields when adding/removing cheats/options

  • Loading branch information...
fzurita committed Mar 19, 2016
1 parent e25c14e commit 9c651c8a81241f7f056307c255a2654131f61ba6
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/paulscode/android/mupen64plusae/dialog/EditCheatDialog.java
@@ -358,6 +358,8 @@ public void onClick(View v)
cheatValueText.addTextChangedListener(fieldValidator);
mOptionValueFields.add(cheatValueText);
validateFields();
}
});
@@ -379,6 +381,8 @@ public void onClick(View v)
mCheatAddressFields.add(cheatAddressText);
mCheatValueFields.add(cheatValueText);
validateFields();
}
});
}
@@ -477,6 +481,8 @@ public void onClick(View v)
mEditValue.setEnabled(true);
mEditValue.setText("");
}
validateFields();
}
};
@@ -503,6 +509,8 @@ public void onClick(View v)
mCheatAddressFields.remove(cheatAddressText);
mCheatValueFields.remove(cheatValueText);
validateFields();
}
};

0 comments on commit 9c651c8

Please sign in to comment.