-
Notifications
You must be signed in to change notification settings - Fork 118
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
ProgressDialogPro exception #44
Comments
That's weird. The layout's resource ID of the ProgressDialogPro is #0x0. Be honest, I don't know the actual reason only if I can get that Lenovo A916 with Android 4.4. |
Which theme did your PaginaRenderActivity use? |
It uses the following theme on kitkat: <style name="AppTheme" parent="Theme.MyTheme" > <item name="toolbar_shadow">@drawable/toolbar_shadow</item> </style> The parent is the one which I mentioned above. |
Hi. I want to know whether ProgressDialogPro has obtained the right layout id. Please add below code to your PaginaRenderActivity's onCreate method. And log the value of TypedValue outValue = new TypedValue();
getTheme().resolveAttribute(com.alertdialogpro.R.attr.alertDialogProTheme,
outValue,
true);
int layoutId = new ContextThemeWrapper(this, outValue.resourceId).getTheme().obtainStyledAttributes(null,
com.alertdialogpro.R.styleable.AlertDialogPro,
com.alertdialogpro.R.attr.alertDialogProStyle, 0).getResourceId(
com.alertdialogpro.R.styleable.AlertDialogPro_adpProgressLayout, 0); |
It is not 0x0 03-25 12:50:18.672 11364-11364/it.cammino.risuscito I/class it.cammino.risuscito.PaginaRenderActivity﹕ layoutId: 2130968618 |
Ran with that Lenovo A916? |
Unfortunately not :( I don't own that phone. I got the error from an user through the play store. |
: ( |
Any idea? I have no idea on how to replicate the issue... |
How many users have been affected by this issue? If the error occurs only on that Lenovo A916 now. I recommend you to hold it until you get more reports. |
That's the only one user, and the current version of the application has been in production for one month. |
I solved the problem using a normal AlertDialogPro and inflating, as custom view, the same layout took from the ProgressDialogPro. |
Hi,
I'm using this great library in my application.
I'm getting the following crash report on a Lenovo A916 with Android 4.4, when showing a indeterminate ProgressDialogPro:
My code is just:
I set correctly the theme in my settings:
It seems that the error occurs only on this particual device, as I tested my application on many Kitkat devices and this crash never occurred.
Any help?
Thanks in advance.
Marcello
The text was updated successfully, but these errors were encountered: