Project

General

Profile

« Previous | Next » 

Revision 4c0cd600

Added by Leszek Koltunski about 4 years ago

Change the series of Object buttons in the Play state into a PopupWindow.

View differences:

src/main/java/org/distorted/scores/RubikScoresDownloader.java
39 39
    {
40 40
    void receive(String[][][] country, String[][][] name, float[][][] time);
41 41
    void message(String mess);
42
    void serverError(String error);
42
    void error(String error);
43 43
    }
44 44

  
45 45
  public static final int MAX_PLACES = 10;
......
131 131
    int begin=-1 ,end, len = mScores.length();
132 132
    String row;
133 133

  
134
    if( len==0 )
135
      {
136
      mReceiver.error("1");
137
      return false;
138
      }
139
    else if( len==1 )
140
      {
141
      mReceiver.error(mScores);
142
      return false;
143
      }
144

  
134 145
    for(int i=0; i<mTotal; i++)
135 146
      for(int j=0; j<MAX_SCRAMBLE; j++)
136 147
        {
......
145 156
      try
146 157
        {
147 158
        row = mScores.substring(begin+1,end);
148

  
149
        if( row.length()==1 )
150
          {
151
          mReceiver.serverError(row);
152
          return false;
153
          }
154
        else
155
          {
156
          fillRow(row);
157
          }
159
        fillRow(row);
158 160
        }
159 161
      catch(Exception ex)
160 162
        {
......
242 244

  
243 245
  private boolean network(String url)
244 246
    {
245
    android.util.Log.e("down", "url: "+url);
247
    //android.util.Log.e("down", "url: "+url);
246 248

  
247 249
    try
248 250
      {

Also available in: Unified diff