diff --git a/build.gradle b/build.gradle index c82c58680..a6663fe25 100644 --- a/build.gradle +++ b/build.gradle @@ -47,8 +47,8 @@ android { defaultConfig { minSdkVersion 21 targetSdkVersion 28 - versionCode 90 - versionName "0.21.13" + versionCode 92 + versionName "0.21.15" applicationId "com.criptext.mail" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true diff --git a/src/main/kotlin/com/criptext/mail/utils/apputils/AppRater.kt b/src/main/kotlin/com/criptext/mail/utils/apputils/AppRater.kt index cd464a96b..b5e8cd4ec 100644 --- a/src/main/kotlin/com/criptext/mail/utils/apputils/AppRater.kt +++ b/src/main/kotlin/com/criptext/mail/utils/apputils/AppRater.kt @@ -36,7 +36,6 @@ object AppRater { // Wait at least n days before opening if (launchCount >= LAUNCHES_UNTIL_PROMPT) { - showRateDialog(ctx, storage) if (System.currentTimeMillis() >= dateFirstLaunch + DAYS_UNTIL_PROMPT * 24 * 60 * 60 * 1000) { showRateDialog(ctx, storage) } @@ -55,6 +54,7 @@ object AppRater { generalDialogConfirmation.btnCancel.text = mContext.getLocalizedUIMessage(UIMessage(R.string.rate_remind_later)) generalDialogConfirmation.btnOk.setOnClickListener { mContext.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=$APP_NAME"))) + storage.putBool(KeyValueStorage.StringKey.RateDontShowAgain, true) generalDialogConfirmation.dismissDialog() }