mogoweb / chromium_webview

Android WebView wrapper based on chromium
http://mogoweb.github.com
BSD 3-Clause "New" or "Revised" License
514 stars 160 forks source link

crashes when you open a dropdown #12

Closed ariados closed 9 years ago

ariados commented 10 years ago

This is with the stock testshell app. Opening a dropdown on the mogoweb website results in a android.content.res.Resources$NotFoundException. This is because the relevant style is not in any style.xml (see https://android.googlesource.com/platform/external/chromium_org/+/d9151b0/content/public/android/java/res/values-v17/styles.xml).

Currently I have changed the code to not access style and just directly use R.layout.

Trace: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java:1014) at android.content.res.Resources.loadXmlResourceParser(Resources.java:2139) at android.content.res.Resources.getLayout(Resources.java:853) at android.view.LayoutInflater.inflate(LayoutInflater.java:394) at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:371) at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362) at org.chromium.content.browser.input.SelectPopupDialog$SelectPopupArrayAdapter.getView(SelectPopupDialog.java:80)

syncar commented 10 years ago

Hi, I'm having the same issue. Can you provide some information on how to fix it? Thanks

mogoweb commented 9 years ago

resources have added to project.