Project

General

Profile

« Previous | Next » 

Revision 59aee296

Added by Leszek Koltunski over 3 years ago

Change the way we request for reviews.

View differences:

src/main/java/org/distorted/main/RubikPreRender.java
380 380
  private void requestReview()
381 381
    {
382 382
    final RubikScores scores = RubikScores.getInstance();
383
    int numRuns   = scores.getNumRuns();
384
    int numPlay   = scores.getNumPlays();
385
    int numReview = scores.getNumReviews();
383
    int numWins = scores.incrementNumWins();
386 384

  
387
    if( numRuns>=2 && numPlay>=5 ) scores.incrementNumReviews();
388

  
389
    if( numReview==0 )
385
    if( numWins==8 || numWins==35 || numWins==100 || numWins==200)
390 386
      {
391 387
      final long timeBegin = System.currentTimeMillis();
392 388
      final RubikActivity act = (RubikActivity)mView.getContext();
......
409 405
              @Override
410 406
              public void onFailure(Exception e)
411 407
                {
412
                analyticsReport(act,"Review Flow Failed", name, timeBegin);
408
                analyticsReport(act,"Failed", name, timeBegin);
413 409
                }
414 410
              });
415 411

  
......
418 414
              @Override
419 415
              public void onComplete(@NonNull Task<Void> task)
420 416
                {
421
                analyticsReport(act,"Review Flow Complete", name, timeBegin);
417
                analyticsReport(act,"Complete", name, timeBegin);
422 418
                }
423 419
              });
424 420
            }
425 421
          else
426 422
            {
427 423
            String name = scores.getName();
428
            analyticsReport(act,"Request Review Flow not successful", name, timeBegin);
424
            analyticsReport(act,"Not Successful", name, timeBegin);
429 425
            }
430 426
          }
431 427
        });

Also available in: Unified diff