Revision 4c0cd600
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialog/RubikDialogScoresPagerAdapter.java | ||
---|---|---|
82 | 82 |
|
83 | 83 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
84 | 84 |
|
85 |
public void serverError(final String error)
|
|
85 |
public void error(final String error)
|
|
86 | 86 |
{ |
87 | 87 |
char errorNumber = error.charAt(0); |
88 | 88 |
|
89 | 89 |
switch(errorNumber) |
90 | 90 |
{ |
91 |
case '1': message("Client error"); |
|
92 |
break; |
|
91 | 93 |
case '2': RubikScores scores = RubikScores.getInstance(); |
92 | 94 |
Bundle bundle = new Bundle(); |
93 | 95 |
bundle.putString("name", scores.getName() ); |
... | ... | |
101 | 103 |
break; |
102 | 104 |
case '3': message("Server error"); |
103 | 105 |
break; |
106 |
default : message("Unexpected error"); |
|
104 | 107 |
} |
105 | 108 |
} |
106 | 109 |
|
Also available in: Unified diff
Change the series of Object buttons in the Play state into a PopupWindow.