Skip to content

Commit

Permalink
rename constants
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoPrimi committed Jun 14, 2021
1 parent 43f444f commit 91a3b5c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class PreferenceManager {
public static final int NOTIFICATION_DIALOG_COUNT = 7;
public static final int AUTOTEST_DIALOG_COUNT = 5;
private static final String NOTIFICATION_DIALOG_DISABLE = "isNotificationDialogDisabled";
private static final String NOTIFICATION_AUTOTEST_DISABLE = "isAutomaticTestDialogDisabled";
private static final String AUTOTEST_DIALOG_DISABLE = "isAutomaticTestDialogDisabled";
private static final String TOKEN = "token";
private static final String SHOW_ONBOARDING = "first_run";
//This is in ms, set to one day
Expand Down Expand Up @@ -294,11 +294,11 @@ public void setAppOpenCount(Long value){
* This method is used to ask user to enable push notifications.
*/
public boolean isAskAutomaticTestDialogDisabled() {
return sp.getBoolean(NOTIFICATION_AUTOTEST_DISABLE, false);
return sp.getBoolean(AUTOTEST_DIALOG_DISABLE, false);
}

public void disableAskAutomaticTestDialog() {
sp.edit().putBoolean(NOTIFICATION_AUTOTEST_DISABLE, true)
sp.edit().putBoolean(AUTOTEST_DIALOG_DISABLE, true)
.apply();
}

Expand Down

0 comments on commit 91a3b5c

Please sign in to comment.