From ed6786e65b380cf1416b4b489290781639ec1480 Mon Sep 17 00:00:00 2001 From: C R E S T <217463890+imCrest@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:31:56 +0530 Subject: [PATCH] Add handling for Snapchat Plus purchase date property --- .../ui/manager/pages/features/FeaturesRootSection.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/kotlin/me/eternal/purrfectsnap/ui/manager/pages/features/FeaturesRootSection.kt b/app/src/main/kotlin/me/eternal/purrfectsnap/ui/manager/pages/features/FeaturesRootSection.kt index 764580e8..054ed05a 100644 --- a/app/src/main/kotlin/me/eternal/purrfectsnap/ui/manager/pages/features/FeaturesRootSection.kt +++ b/app/src/main/kotlin/me/eternal/purrfectsnap/ui/manager/pages/features/FeaturesRootSection.kt @@ -779,11 +779,14 @@ class FeaturesRootSection : Routes.Route() { DataProcessors.Type.STRING, DataProcessors.Type.INTEGER, DataProcessors.Type.FLOAT -> { val isMessageListProperty = property.key.name.endsWith("_messages") val isSleepWindowProperty = property.key.name.contains("sleep_window") + val isSnapchatPlusPurchaseDateProperty = property.key.name == "snapchat_plus_purchase_date" if (isMessageListProperty) { alertDialogs.MessageListPropertyDialog(property) { showDialog = false } } else if (isSleepWindowProperty) { alertDialogs.AutoOpenScheduleDialog(property as PropertyPair) { showDialog = false } + } else if (isSnapchatPlusPurchaseDateProperty) { + alertDialogs.DatePickerPropertyDialog(property) { showDialog = false } } else { alertDialogs.KeyboardInputDialog(property) { showDialog = false } } @@ -801,6 +804,7 @@ class FeaturesRootSection : Routes.Route() { ) } else { val isMessageListProperty = property.key.name.endsWith("_messages") + val isSnapchatPlusPurchaseDateProperty = property.key.name == "snapchat_plus_purchase_date" if (isMessageListProperty) { val messageCount = try { val messageList: List = gson.fromJson(propertyValue.get().toString(), listTypeToken) ?: emptyList() @@ -822,6 +826,11 @@ class FeaturesRootSection : Routes.Route() { color = Color.White ) } + } else if (isSnapchatPlusPurchaseDateProperty) { + ValueGlowChip( + text = propertyValue.get().toString(), + onClick = click + ) } else { IconButton(onClick = click) { Icon(Icons.AutoMirrored.Filled.OpenInNew, contentDescription = null)