Skip to content

Commit

Permalink
add reset data feature
Browse files Browse the repository at this point in the history
In case the application is upgraded, we might want to reset app rate
dialog data. So the dialog will be showed after some days or several
time used.
  • Loading branch information
thanhbinh84 committed Oct 23, 2015
1 parent 34cc499 commit 72964f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/src/main/java/hotchemi/android/rate/AppRate.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public AppRate clearAgreeShowDialog() {
return this;
}

public AppRate clearSettingsParam() {
PreferenceHelper.setAgreeShowDialog(context, true);
PreferenceHelper.clearSharedPreferences(context);
return this;
}

public AppRate setAgreeShowDialog(boolean clear) {
PreferenceHelper.setAgreeShowDialog(context, clear);
return this;
Expand Down

0 comments on commit 72964f6

Please sign in to comment.