Skip to content

Commit

Permalink
Count how many times app has been opened and when was the first time …
Browse files Browse the repository at this point in the history
…opened
  • Loading branch information
Iktwo committed Sep 20, 2014
1 parent 5a5f289 commit 1cdafe6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ ApplicationWindow {
Component.onCompleted: {
Theme.titleBarColor = "#0066CC"

var now = new Date()
now.setHours(0)
now.setMinutes(0)
now.setSeconds(0)
now.setMilliseconds(0)

if (ApplicationInfo.timesLaunched > 15 && Math.floor((now.getTime() - ApplicationInfo.firstTimeLaunched.getTime()) / 86400000) >= 5 && Qt.platform.os === "android") {
/// TODO: ANDROID - Show dialog and ask to review
}
updateChecker.checkForUpdateOnGooglePlay()
}
}

0 comments on commit 1cdafe6

Please sign in to comment.