Ejemplo n.º 1
0
  public boolean shouldShowRatingDialog() {
    if (appSettings.hasShownAppRatingDialog().get(false)) {
      return false;
    } else {
      final long lastLaunchTime = appSettings.lastLaunchTime().get(Long.MAX_VALUE);
      final long firstLaunchTime = appSettings.firstLaunchTime().get(Long.MAX_VALUE);
      final int launchCount = appSettings.launchCount().get(0);

      return shouldShow(firstLaunchTime, lastLaunchTime, launchCount);
    }
  }
Ejemplo n.º 2
0
 public void setHasShownRatingDialog(boolean hasShown) {
   appSettings.hasShownAppRatingDialog().put(hasShown);
 }