From d12017bce75276c779571632dc0126e487fc7938 Mon Sep 17 00:00:00 2001 From: Javier Santos Date: Fri, 5 Feb 2016 02:01:43 +0100 Subject: [PATCH] Change default showEvery(int) value from 5 to 1 --- .../java/com/github/javiersantos/appupdater/AppUpdater.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/src/main/java/com/github/javiersantos/appupdater/AppUpdater.java b/library/src/main/java/com/github/javiersantos/appupdater/AppUpdater.java index 2e66767c..312865de 100644 --- a/library/src/main/java/com/github/javiersantos/appupdater/AppUpdater.java +++ b/library/src/main/java/com/github/javiersantos/appupdater/AppUpdater.java @@ -21,7 +21,7 @@ public AppUpdater(Context context) { this.display = Display.DIALOG; this.updateFrom = UpdateFrom.GOOGLE_PLAY; this.duration = Duration.NORMAL; - this.showEvery = 5; + this.showEvery = 1; this.showAppUpdated = false; } @@ -66,7 +66,7 @@ public void setGitHubUserAndRepo(String user, String repo) { } /** - * Set the times the app ascertains that a new update is available and display a dialog, Snackbar or notification. It makes the updates less invasive. Default: 5. + * Set the times the app ascertains that a new update is available and display a dialog, Snackbar or notification. It makes the updates less invasive. Default: 1. * * @param times every X times */ @@ -77,7 +77,7 @@ public void showEvery(Integer times) { /** * Set if the dialog, Snackbar or notification is displayed although there aren't updates. Default: false. * - * @param res + * @param res true to show, false otherwise */ public void showAppUpdated(Boolean res) { this.showAppUpdated = res;