Skip to content

Commit

Permalink
Remember last total score
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Feb 14, 2015
1 parent b498c71 commit d08965e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static void storeTotalScore() {
}

public static void sendTotalScoreOnRefresh() {
int previousScore = rating.getTotalScore();
int previousScore = Integer.parseInt(Preferences.read(TOTAL_SCORE_KEY, ""));
updateUserRating();
if (previousScore != rating.getTotalScore() || Boolean.valueOf(Preferences.read("lastSendFailed", "false"))) {
int scoreDifference = rating.getTotalScore() - previousScore;
Expand Down

0 comments on commit d08965e

Please sign in to comment.