Commit 3e62d99
refactor: Extract event key Intent format to single source of truth (#231)
Added toIntentString() and fromIntentString() methods to EventAlertRecordKey
class to ensure the event key format used in Intent extras is defined in
one place. This prevents format mismatches between serialization and parsing.
- EventAlertRecordKey.toIntentString(): Serializes key for Intent extras
- EventAlertRecordKey.fromIntentString(): Parses key from Intent extras
- Updated ActiveEventsFragment to use toIntentString()
- Updated ApplicationController to use fromIntentString()
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent a7c42c1 commit 3e62d99
3 files changed
Lines changed: 21 additions & 13 deletions
File tree
- android/app/src/main/java/com/github/quarck/calnotify
- app
- calendar
- ui
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
990 | 983 | | |
991 | 984 | | |
992 | 985 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments