Continue button wasn't being enabled when code length was correct.

This commit is contained in:
akwizgran
2013-04-14 14:38:15 +01:00
parent ab0917029e
commit e97b5ff783

View File

@@ -51,7 +51,7 @@ implements OnEditorActionListener, OnClickListener {
protected void onTextChanged(CharSequence text, int start,
int lengthBefore, int lengthAfter) {
if(continueButton != null)
continueButton.setEnabled(lengthAfter == 6);
continueButton.setEnabled(getText().length() == 6);
}
};
codeEntry.setTextSize(26);