Skip to content

Commit

Permalink
fix ICS UIDs not being unique for records
Browse files Browse the repository at this point in the history
  • Loading branch information
Razeeman committed Feb 3, 2024
1 parent 4c1bede commit 9791b16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import java.io.IOException
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.TimeZone
import java.util.UUID
import javax.inject.Inject

class IcsRepoImpl @Inject constructor(
Expand Down Expand Up @@ -130,7 +129,7 @@ class IcsRepoImpl @Inject constructor(
.append("BEGIN:VEVENT\n")
.append("DTSTART:${formatDateTime(record.timeStarted)}\n")
.append("DTEND:${formatDateTime(record.timeEnded)}\n")
.append("UID:${UUID.randomUUID()}@stt\n")
.append("UID:recordId_${record.id}@stt\n")
.append("SUMMARY:${recordType.name.clean()}\n")
.append("DESCRIPTION:$description\n")
.append("END:VEVENT\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import com.example.util.simpletimetracker.feature_settings.mapper.SettingsMapper
import com.example.util.simpletimetracker.feature_settings.viewModel.SettingsViewModel
import com.example.util.simpletimetracker.navigation.Router
import com.example.util.simpletimetracker.navigation.params.action.OpenSystemSettings
import com.example.util.simpletimetracker.navigation.params.notification.NotificationParams
import com.example.util.simpletimetracker.navigation.params.screen.DurationDialogParams
import kotlinx.coroutines.launch
import javax.inject.Inject
Expand Down

0 comments on commit 9791b16

Please sign in to comment.