Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.3.12' propVersionName = '5.3.13' kotlin_version = '1.3.0' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/UpgradeToProDialog.kt +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ class UpgradeToProDialog(val activity: Activity) { private val CONTACTS_FREE_TILL = 1542153600000L // November 14 private val NOV_14 = "Nov 14 2018" private val NOTES_FREE_TILL = 1542240000000L // November 15 private val NOV_15 = "Nov 15 2018" init { var text = activity.getString(R.string.upgrade_to_pro_long) if ((packageName.endsWith("draw") || packageName.endsWith("gallery") || packageName.endsWith("filemanager")) && System.currentTimeMillis() < FIRST_APPS_FREE_TILL) { Loading @@ -25,6 +28,9 @@ class UpgradeToProDialog(val activity: Activity) { } else if (packageName.endsWith("contacts") && System.currentTimeMillis() < CONTACTS_FREE_TILL) { val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_14) text += "\n$freeTill" } else if (packageName.endsWith("notes") && System.currentTimeMillis() < NOTES_FREE_TILL) { val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_15) text += "\n$freeTill" } val view = activity.layoutInflater.inflate(R.layout.dialog_upgrade_to_pro, null).apply { Loading commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +1 −1 Original line number Diff line number Diff line Loading @@ -250,4 +250,4 @@ fun getConflictResolution(resolutions: LinkedHashMap<String, Int>, path: String) } } val proPackages = arrayListOf("draw", "gallery", "filemanager", "contacts") val proPackages = arrayListOf("draw", "gallery", "filemanager", "contacts", "notes") Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.3.12' propVersionName = '5.3.13' kotlin_version = '1.3.0' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/UpgradeToProDialog.kt +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ class UpgradeToProDialog(val activity: Activity) { private val CONTACTS_FREE_TILL = 1542153600000L // November 14 private val NOV_14 = "Nov 14 2018" private val NOTES_FREE_TILL = 1542240000000L // November 15 private val NOV_15 = "Nov 15 2018" init { var text = activity.getString(R.string.upgrade_to_pro_long) if ((packageName.endsWith("draw") || packageName.endsWith("gallery") || packageName.endsWith("filemanager")) && System.currentTimeMillis() < FIRST_APPS_FREE_TILL) { Loading @@ -25,6 +28,9 @@ class UpgradeToProDialog(val activity: Activity) { } else if (packageName.endsWith("contacts") && System.currentTimeMillis() < CONTACTS_FREE_TILL) { val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_14) text += "\n$freeTill" } else if (packageName.endsWith("notes") && System.currentTimeMillis() < NOTES_FREE_TILL) { val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_15) text += "\n$freeTill" } val view = activity.layoutInflater.inflate(R.layout.dialog_upgrade_to_pro, null).apply { Loading
commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +1 −1 Original line number Diff line number Diff line Loading @@ -250,4 +250,4 @@ fun getConflictResolution(resolutions: LinkedHashMap<String, Int>, path: String) } } val proPackages = arrayListOf("draw", "gallery", "filemanager", "contacts") val proPackages = arrayListOf("draw", "gallery", "filemanager", "contacts", "notes")