TheFinestArtist / FinestWebView-Android

Beautiful and customizable Android Activity that shows web pages within an app.
https://finestwebview.web.app
2.32k stars 531 forks source link

HTC Weird Phones this class cast error occurs #115

Open cjxonix opened 7 years ago

cjxonix commented 7 years ago

HTC Weird Phones this class cast error occurs

02-01 19:48:12.447 6690-6690/startek.mikolo E/AndroidRuntime: FATAL EXCEPTION: main
                                                              Process: startek.mikolo, PID: 6690
                                                              java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to com.android.internal.widget.ActionBarOverlayLayout$LayoutParams
                                                                  at com.android.internal.widget.ActionBarOverlayLayout.applyInsets(ActionBarOverlayLayout.java:172)
                                                                  at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:317)
                                                                  at android.view.View.measure(View.java:16736)
                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5184)
                                                                  at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
                                                                  at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2392)
                                                                  at android.view.View.measure(View.java:16736)
                                                                  at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2103)
                                                                  at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1216)
                                                                  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1402)
                                                                  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1103)
                                                                  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6018)
                                                                  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:799)
                                                                  at android.view.Choreographer.doCallbacks(Choreographer.java:599)
                                                                  at android.view.Choreographer.doFrame(Choreographer.java:559)
                                                                  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:784)
                                                                  at android.os.Handler.handleCallback(Handler.java:733)
                                                                  at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                  at android.os.Looper.loop(Looper.java:157)
                                                                  at android.app.ActivityThread.main(ActivityThread.java:5872)
                                                                  at java.lang.reflect.Method.invokeNative(Native Method)
                                                                  at java.lang.reflect.Method.invoke(Method.java:515)
                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
                                                                  at dalvik.system.NativeStart.main(Native Method)
jtoce commented 7 years ago

Does anyone have a work around for this? Or can you pinpoint where it's being thrown in code? I don't have an HTC but one of my users is hitting this error. I'd be happy to help work on a fix - but the above callstack doesn't give me much to go on.