Revision 801b16db
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialogs/RubikDialogSetName.java | ||
---|---|---|
68 | 68 |
{ |
69 | 69 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
70 | 70 |
} |
71 |
} |
|
72 | 71 |
|
73 |
Button positiveButton = dialog.getButton(Dialog.BUTTON_POSITIVE); |
|
72 |
Button positiveButton = dialog.getButton(Dialog.BUTTON_POSITIVE);
|
|
74 | 73 |
|
75 |
if( positiveButton!=null ) |
|
76 |
{ |
|
77 |
String editName = mEdit.getText().toString(); |
|
78 |
positiveButton.setEnabled(editName.length()>0); |
|
74 |
if( positiveButton!=null ) |
|
75 |
{ |
|
76 |
String editName = mEdit.getText().toString(); |
|
77 |
positiveButton.setEnabled(editName.length()>0); |
|
78 |
} |
|
79 | 79 |
} |
80 | 80 |
} |
81 | 81 |
|
Also available in: Unified diff
Minor.