Skip to content

Commit

Permalink
Rate dialog pref should reset on every update
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekweb2013 committed Jun 4, 2021
1 parent f777c1a commit 17d76ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/main/java/com/wirehall/audiorecorder/AppRater.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
import androidx.preference.PreferenceManager;

public class AppRater {
public static final String KEY_PREF_RATE_DIALOG_DO_NOT_SHOW = "rate_dialog_do_not_show";
public static final String KEY_PREF_RATE_DIALOG_DO_NOT_SHOW =
"rate_dialog_do_not_show_" + BuildConfig.VERSION_NAME;
public static final String KEY_PREF_RATE_DIALOG_FIRST_LAUNCH_TIME =
"rate_dialog_first_launch_time";
public static final String KEY_PREF_RATE_DIALOG_LAUNCH_COUNT = "rate_dialog_launch_count";
"rate_dialog_first_launch_time_" + BuildConfig.VERSION_NAME;
public static final String KEY_PREF_RATE_DIALOG_LAUNCH_COUNT =
"rate_dialog_launch_count_" + BuildConfig.VERSION_NAME;

private static final int DAYS_UNTIL_PROMPT = 3; // Min number of days
private static final int LAUNCHES_UNTIL_PROMPT = 5; // Min number of launches
Expand Down

0 comments on commit 17d76ec

Please sign in to comment.