Skip to content

Commit fe7add1

Browse files
feat: user prop save on event recording
1 parent d304bbf commit fe7add1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleEvents.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ protected void recordEventInternal(String key, int count, Double sum, Double dur
109109

110110
Utils.removeInvalidDataFromSegments(segmentation, L);
111111

112+
if (internalConfig.sdk.userProfile() != null) {
113+
internalConfig.sdk.module(ModuleUserProfile.class).saveInternal();
114+
}
115+
112116
String eventId, pvid = null, cvid = null;
113117
if (Utils.isEmptyOrNull(eventIdOverride)) {
114118
L.d("[ModuleEvents] recordEventInternal, Generating new event id because it was null or empty");

0 commit comments

Comments
 (0)