Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c52e7896 authored by tibbi's avatar tibbi
Browse files

updating free Contacts date

parent 5ac1adfa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 21
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '5.3.11'
        propVersionName = '5.3.12'
        kotlin_version = '1.3.0'
    }

+4 −4
Original line number Diff line number Diff line
@@ -14,8 +14,8 @@ class UpgradeToProDialog(val activity: Activity) {
    private val FIRST_APPS_FREE_TILL = 1541980800000L     // November 12
    private val NOV_12 = "Nov 12 2018"

    private val CONTACTS_FREE_TILL = 1542067200000L     // November 13
    private val NOV_13 = "Nov 13 2018"
    private val CONTACTS_FREE_TILL = 1542153600000L     // November 14
    private val NOV_14 = "Nov 14 2018"

    init {
        var text = activity.getString(R.string.upgrade_to_pro_long)
@@ -23,7 +23,7 @@ class UpgradeToProDialog(val activity: Activity) {
            val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_12)
            text += "\n$freeTill"
        } else if (packageName.endsWith("contacts") && System.currentTimeMillis() < CONTACTS_FREE_TILL) {
            val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_13)
            val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_14)
            text += "\n$freeTill"
        }

@@ -33,7 +33,7 @@ class UpgradeToProDialog(val activity: Activity) {

        AlertDialog.Builder(activity)
                .setPositiveButton(R.string.upgrade) { dialog, which -> upgradeApp() }
                .setNeutralButton(R.string.more_info, null)
                .setNeutralButton(R.string.more_info, null)     // do not dismiss the dialog on pressing More Info
                .setNegativeButton(R.string.cancel, null)
                .create().apply {
                    activity.setupDialogStuff(view, this)