incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Updated] (CB-510) loadUrlIntoView on DroidGap needs refactoring
Date Thu, 10 May 2012 23:45:49 GMT


Joe Bowser updated CB-510:

Ripped out some code into another protected method, and tried to abstract out a runnable.
 This makes it a bit more readable, but we still need the weird runnable setup for document
timeouts.  I'm certain that the browser offers a better solution to this, but I'm not sure
what that would be.  Going to close this for now.
> loadUrlIntoView on DroidGap needs refactoring
> ---------------------------------------------
>                 Key: CB-510
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: Master
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: CordovaWebView
>             Fix For: 1.8.0
> For some reason, this shows an error saying that it must be run on the UI thread
> webViewClient.onReceivedError(me.appView, -6, "The connection to the server was unsuccessful.",
> This leads to ugly code which has us run something on the UI thread, then spawn another
thread, and on that thread, run another runnable on the first thread.  I think that this will
break, and this needs to be refactored.  However, it's currently not breaking any functionality.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message