Skip to content

Commit a076e45

Browse files
authored
Merge pull request #553 from jorgeblacio/rate_fix
Fix rate me dialog that was appearing all the time.
2 parents c94d659 + b94b449 commit a076e45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ android {
4747
defaultConfig {
4848
minSdkVersion 21
4949
targetSdkVersion 28
50-
versionCode 90
51-
versionName "0.21.13"
50+
versionCode 92
51+
versionName "0.21.15"
5252
applicationId "com.criptext.mail"
5353
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
5454
multiDexEnabled true

src/main/kotlin/com/criptext/mail/utils/apputils/AppRater.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ object AppRater {
3636

3737
// Wait at least n days before opening
3838
if (launchCount >= LAUNCHES_UNTIL_PROMPT) {
39-
showRateDialog(ctx, storage)
4039
if (System.currentTimeMillis() >= dateFirstLaunch + DAYS_UNTIL_PROMPT * 24 * 60 * 60 * 1000) {
4140
showRateDialog(ctx, storage)
4241
}
@@ -55,6 +54,7 @@ object AppRater {
5554
generalDialogConfirmation.btnCancel.text = mContext.getLocalizedUIMessage(UIMessage(R.string.rate_remind_later))
5655
generalDialogConfirmation.btnOk.setOnClickListener {
5756
mContext.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=$APP_NAME")))
57+
storage.putBool(KeyValueStorage.StringKey.RateDontShowAgain, true)
5858
generalDialogConfirmation.dismissDialog()
5959
}
6060

0 commit comments

Comments
 (0)