From 1cdafe6640d15b0393cf66648af72a64aba919ab Mon Sep 17 00:00:00 2001 From: Iktwo Sh Date: Sat, 20 Sep 2014 08:08:11 -0700 Subject: [PATCH] Count how many times app has been opened and when was the first time opened --- qml/main.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qml/main.qml b/qml/main.qml index 13fd5c0..55a77b8 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -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() } }