Skip to content

Commit cf83a82

Browse files
committed
RUM-9899: Fix remaining issues
1 parent c77b62b commit cf83a82

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

dd-sdk-android-core/src/main/kotlin/com/datadog/android/core/internal/DatadogContextProvider.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ internal class DatadogContextProvider(
1717
private val coreFeature: CoreFeature,
1818
private val featureContextProvider: FeatureContextProvider
1919
) : ContextProvider {
20+
@Suppress("LongMethod")
2021
override fun getContext(withFeatureContexts: Set<String>): DatadogContext {
2122
// IMPORTANT All properties should be immutable and be frozen at the state
2223
// of the context construction moment
@@ -57,12 +58,13 @@ internal class DatadogContextProvider(
5758
architecture = architecture,
5859
numberOfDisplays = numberOfDisplays,
5960
localeInfo = with(coreFeature.androidInfoProvider) {
60-
LocaleInfo(
61-
locales = locales,
62-
currentLocale = currentLocale,
63-
timeZone = timeZone
64-
)
65-
})
61+
LocaleInfo(
62+
locales = locales,
63+
currentLocale = currentLocale,
64+
timeZone = timeZone
65+
)
66+
}
67+
)
6668
},
6769
userInfo = coreFeature.userInfoProvider.getUserInfo(),
6870
accountInfo = coreFeature.accountInfoProvider.getAccountInfo(),

dd-sdk-android-core/src/main/kotlin/com/datadog/android/core/internal/NoOpContextProvider.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ internal class NoOpContextProvider : ContextProvider {
5656
architecture = "",
5757
numberOfDisplays = null,
5858
localeInfo = LocaleInfo(
59-
locales = emptyList(),
60-
currentLocale = "",
61-
timeZone = ""
62-
)
59+
locales = emptyList(),
60+
currentLocale = "",
61+
timeZone = ""
62+
)
6363
),
6464
userInfo = UserInfo(null, null, null, null, emptyMap()),
6565
accountInfo = null,

0 commit comments

Comments
 (0)