the plugins were executing on the UI thread. now on background thread. calls to loadUrl are now automatically on the ui thread

This commit is contained in:
Dave Johnson
2010-08-07 12:19:04 -07:00
parent 0c52ed44a0
commit 8ca1804de9
2 changed files with 10 additions and 6 deletions
+6 -2
View File
@@ -280,9 +280,13 @@ public class DroidGap extends Activity {
}
}
public void loadUrl(String url)
public void loadUrl(final String url)
{
this.appView.loadUrl(url);
this.runOnUiThread(new Runnable() {
public void run() {
DroidGap.this.appView.loadUrl(url);
}
});
}
/**