diff --git a/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt b/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt
index bc792c3c1..c295750eb 100755
--- a/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt
+++ b/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt
@@ -266,10 +266,12 @@ class TaskEditFragment : Fragment(), Toolbar.OnMenuItemClickListener {
visible = false
preferences.shownBeastModeHint = true
beastMode.launch(Intent(context, BeastModePreferences::class.java))
+ firebase.logEvent(R.string.event_banner_beast, R.string.param_click to true)
},
dismiss = {
visible = false
preferences.shownBeastModeHint = true
+ firebase.logEvent(R.string.event_banner_beast, R.string.param_click to false)
}
)
}
diff --git a/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.kt b/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.kt
index e7e0842b6..9ef67caf0 100644
--- a/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.kt
+++ b/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.kt
@@ -194,11 +194,14 @@ class TaskListFragment : Fragment(), OnRefreshListener, Toolbar.OnMenuItemClickL
visible = showBanner,
subscribe = {
showBanner = false
+ preferences.lastSubscribeRequest = now()
purchase()
+ firebase.logEvent(R.string.event_banner_sub, R.string.param_click to true)
},
dismiss = {
showBanner = false
preferences.lastSubscribeRequest = now()
+ firebase.logEvent(R.string.event_banner_sub, R.string.param_click to false)
},
)
}
diff --git a/app/src/main/java/org/tasks/billing/PurchaseActivity.kt b/app/src/main/java/org/tasks/billing/PurchaseActivity.kt
index 998331652..715c749a5 100644
--- a/app/src/main/java/org/tasks/billing/PurchaseActivity.kt
+++ b/app/src/main/java/org/tasks/billing/PurchaseActivity.kt
@@ -9,7 +9,6 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.window.Dialog
import androidx.lifecycle.lifecycleScope
import com.google.android.material.composethemeadapter.MdcTheme
-import com.todoroo.andlib.utility.DateUtilities
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.launch
import org.tasks.LocalBroadcastManager
@@ -41,8 +40,6 @@ class PurchaseActivity : InjectingAppCompatActivity(), OnPurchasesUpdated {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
- preferences.lastSubscribeRequest = DateUtilities.now()
-
val github = intent?.extras?.getBoolean(EXTRA_GITHUB) ?: false
theme.applyToContext(this)
diff --git a/app/src/main/res/values/keys.xml b/app/src/main/res/values/keys.xml
index 1e55b333a..75f3831ab 100644
--- a/app/src/main/res/values/keys.xml
+++ b/app/src/main/res/values/keys.xml
@@ -426,10 +426,13 @@
sku
result
state
+ click
cp_todoagenda
cp_astrid2taskprovider
sync_add_account
sync_unknown_access
+ banner_beast
+ banner_subscribe
type
map_theme
picker_mode_date