-
Notifications
You must be signed in to change notification settings - Fork 68
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
Android Adyen SDK is overriding the custom App Theme in App. #1961
Comments
Hi @AmitavSingh, thank you for reaching out! This setup is designed this way on purpose. It provides a base styling in case |
Hi @OscarSpruit I tried your solution, it didn't work. I don't think adding <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar" /> will work as adyen will override this. |
In our example app we use what I suggested before and also in other projects we have this applies the style correctly. There are two things that I can think of that could be the cause:
|
Hi @OscarSpruit I replaced windowActionBar with android:windowActionBar, but that also failed to solve the issue. If I use this <style name="Adyen" parent="@style/AppTheme" />, my application crashes because Adyen uses "Theme.MaterialComponents.Light" whereas my app uses "Theme.MaterialComponents.DayNight". |
I am trying to reproduce this issue in a test project with the below styling. However, there is no tool bar shown when using this. <style name="AppThemeBase" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme" parent="AppThemeBase">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style> Few questions:
|
Hi @OscarSpruit You can reproduce it if you choose a different theme in your test app. (Not the one used in Adyen SDK) And Indeed Adyen library will override my AppTheme as per the screenshot I have shared above. However, I tried with renaming my AppTheme to a custom one (TestAppTheme) and now Adyen can't override it, and I can see my UI properly. But this is ofcourse not the ideal solution as Adyen forces me to rename my AppTheme. |
@AmitavSingh following your steps I still can't reproduce it. Could you please provide a reproducer project? |
Hi @OscarSpruit I fixed the issue on my side by Renaming my Theme. (Not using AppTheme anymore). But my last question on this is why Adyen theme is getting added instead of AdyenCheckout, if you have any idea? We are using below Adyen dependencies into our project. const val adyen3ds2 = "com.adyen.checkout:3ds2:${Versions.Other.adyenAndroid}" |
This is a remnant from the past. The idea was that most projects already have |
Description
I notice that while using the latest Adyen sdk in Android v5.8.0 is overriding the customized App theme of the Android App.
For Example - My App doesn't use a toolbar, but when I updated the sdk from v4.13.X to v5.8.0, I see a toolbar in my app. On on investigating more I found that it is coming from Adyen sdk and the root cause is this line -
This line is the source of the bug of displaying the toolbar as it overrides the custom app theme.
It should be the other way round like this and its well implemented for AdyenCheckout -
<style name="Adyen" parent="AppTheme"/>
Steps to Reproduce
Code Snippets
The text was updated successfully, but these errors were encountered: