Skip to content
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

StackOverflowError on RichEditor.setPaddingRelative #34

Open
masalcedo74 opened this issue Nov 27, 2015 · 1 comment
Open

StackOverflowError on RichEditor.setPaddingRelative #34

masalcedo74 opened this issue Nov 27, 2015 · 1 comment

Comments

@masalcedo74
Copy link

I'm using this great library, but I have a problem in some devices:

Using library version 0.3 on Android 4.0.4 ,this is the exception:

android.view.View.setPadding (View.java:11973)
android.view.ViewGroup.setPadding (ViewGroup.java:2377)
jp.wasabeef.richeditor.RichEditor.setPadding (RichEditor.java:227)
jp.wasabeef.richeditor.RichEditor.setPaddingRelative (RichEditor.java:234)
android.view.View.setPadding (View.java:11973)
android.view.ViewGroup.setPadding (ViewGroup.java:2377)
jp.wasabeef.richeditor.RichEditor.setPadding (RichEditor.java:227)
jp.wasabeef.richeditor.RichEditor.setPaddingRelative (RichEditor.java:234)
android.view.View.setPadding (View.java:11973)
android.view.ViewGroup.setPadding (ViewGroup.java:2377)
jp.wasabeef.richeditor.RichEditor.setPadding (RichEditor.java:227)
jp.wasabeef.richeditor.RichEditor.setPaddingRelative (RichEditor.java:234)

loop goes on until StackOverflowError exception

Thanks,

@johnernest02
Copy link

Hi, I just want to sjare what I did to fix this as I experienced this as well. I extended the RichEditor class and overrode the setPadding and setPaddingRelative methods, removed the super call and left them empty. I'm not experiencing any issues about it now, but I won't be able to add passing to the editor which I think isn't really needed as I can put it in a ViewGroup and just add margins to the RichEditor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants