Fix App rating
This commit is contained in:
parent
e5cab894ca
commit
4de36e5bc5
2 changed files with 4 additions and 3 deletions
|
@ -13,8 +13,8 @@ android {
|
|||
vectorDrawables.useSupportLibrary = true
|
||||
|
||||
applicationId "code.name.monkey.retromusic"
|
||||
versionCode 377
|
||||
versionName '3.4.200-beta03'
|
||||
versionCode 378
|
||||
versionName '3.4.200-beta04'
|
||||
|
||||
multiDexEnabled true
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ object AppRater {
|
|||
|
||||
// Increment launch counter
|
||||
val launchCount = prefs.getLong(LAUNCH_COUNT, 0) + 1
|
||||
print("LAUNCH COUNT: $launchCount")
|
||||
editor.putLong(LAUNCH_COUNT, launchCount)
|
||||
|
||||
// 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!")
|
||||
positiveButton(R.string.app_name) {
|
||||
context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=${context.packageName}")))
|
||||
editor.putBoolean(DO_NOT_SHOW_AGAIN, true)
|
||||
editor.commit()
|
||||
dismiss()
|
||||
}
|
||||
negativeButton(text = "Later") {
|
||||
|
|
Loading…
Reference in a new issue