-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appcompat version 1.2.0 breaks resource interception #35
Comments
@JcMinarro @kar do you have any clue of what might be going wrong? This is a release blocker for us and we could help with a PR. But, some guidance would be appreciated |
After trying to understand what's going on, it looks like AppCompat 1.2.0 changes how context wrapping is done, even tho I don't see any official notes documenting it After a lot of investigation and time wasted, this answer provided the solution Steps to make it work on AppCompat 1.2.0
class BaseContextWrappingDelegate(private val superDelegate: AppCompatDelegate) : AppCompatDelegate() {
[...]
private fun wrap(context: Context): Context {
return ViewPumpContextWrapper.wrap(Philology.wrap(context))
}
}
private var baseContextWrappingDelegate: AppCompatDelegate? = null
override fun getDelegate() =
baseContextWrappingDelegate ?: BaseContextWrappingDelegate(super.getDelegate()).apply {
baseContextWrappingDelegate = this
}
|
Btw, I tried to build the library in order to contribute but dependencies are very broken & outdated :-/ It should be very easy to provide an AppCompatDelegate and update the readme |
Hi Maragues, How about this question? I met same issues. |
No answer from any maintainer :( |
Hi @pr0t3us i am not able to update the text of Action bar using philology library will you please help me how to solve that |
That worked, thanks. What about custom views? The ViewTransformer doesn't seem to be working anymore as well, it doesnt' fetch the strings from the PhilologyRepository. |
Seems like the solution above is not working on AppCompat 1.3.0. |
Describe the bug
I think the interception broke again with AppCompat 1.2.0. My libraries versions:
I tried the configChanges workaround from #23, but it seems to not help this time around.
To Reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: