Fix App rating

This commit is contained in:
h4h13 2019-10-03 22:49:58 +05:30
parent e5cab894ca
commit 4de36e5bc5
2 changed files with 4 additions and 3 deletions

View file

@ -13,8 +13,8 @@ android {
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic" applicationId "code.name.monkey.retromusic"
versionCode 377 versionCode 378
versionName '3.4.200-beta03' versionName '3.4.200-beta04'
multiDexEnabled true multiDexEnabled true

View file

@ -48,7 +48,6 @@ object AppRater {
// Increment launch counter // Increment launch counter
val launchCount = prefs.getLong(LAUNCH_COUNT, 0) + 1 val launchCount = prefs.getLong(LAUNCH_COUNT, 0) + 1
print("LAUNCH COUNT: $launchCount")
editor.putLong(LAUNCH_COUNT, launchCount) editor.putLong(LAUNCH_COUNT, launchCount)
// Get date of first launch // Get date of first launch
@ -77,6 +76,8 @@ object AppRater {
message(text = "If you enjoy using Retro Music, please take a moment to rate it. Thanks for your support!") message(text = "If you enjoy using Retro Music, please take a moment to rate it. Thanks for your support!")
positiveButton(R.string.app_name) { positiveButton(R.string.app_name) {
context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=${context.packageName}"))) context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=${context.packageName}")))
editor.putBoolean(DO_NOT_SHOW_AGAIN, true)
editor.commit()
dismiss() dismiss()
} }
negativeButton(text = "Later") { negativeButton(text = "Later") {