Skip to content

Commit

Permalink
Fixed a memory leak in RestringResources
Browse files Browse the repository at this point in the history
  • Loading branch information
B3nedikt committed Nov 15, 2022
1 parent 265cbbf commit 129bf9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal class RestringResources(
) : Resources(baseResources.assets, baseResources.displayMetrics, baseResources.configuration) {

private val resourcesDelegate by lazy {
ResourcesDelegate(context, baseResources, stringRepository)
ResourcesDelegate(context.applicationContext, baseResources, stringRepository)
}

override fun getIdentifier(name: String, defType: String?, defPackage: String?): Int {
Expand Down

0 comments on commit 129bf9a

Please sign in to comment.