Revision c0125648
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/dialogs/RubikDialogSetName.java | ||
---|---|---|
141 | 141 |
name = name.substring(0,MAX_NAME_LEN); |
142 | 142 |
} |
143 | 143 |
|
144 |
name = name.replace(' ', '_'); |
|
145 |
|
|
144 | 146 |
RubikActivity act = (RubikActivity)getActivity(); |
145 | 147 |
StateList.switchState(act, StateList.PLAY); |
146 | 148 |
RubikScores.getInstance().setName(name); |
Also available in: Unified diff
Disallow setting a name with spaces in it.