Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ internal class CrowdinContextWrapper private constructor(
) : ContextWrapper(
CustomResourcesContextWrapper(
base,
CrowdinResources(base.resources, dataManager),
// Use application context resources to ensure we have access to all system resources
// This prevents crashes when WebView or other system components try to inflate views
// See: https://github.com/crowdin/mobile-sdk-android/issues/220
// See: https://github.com/crowdin/mobile-sdk-android/issues/266
CrowdinResources(
base.applicationContext?.resources ?: base.resources,
dataManager,
),
),
) {
override fun getSystemService(name: String): Any? {
Expand Down
Loading