added comments

This commit is contained in:
Felix Kloft
2013-05-17 09:36:10 +02:00
parent 2194a0c74f
commit 114103f08c
4 changed files with 67 additions and 6 deletions

View File

@ -41,14 +41,20 @@ public class IITC_WebView extends WebView {
this.addJavascriptInterface(js_interface, "android");
this.setWebChromeClient(new WebChromeClient() {
/**
* our webchromeclient should share geolocation with the iitc script
*
* allow access by default
*/
@Override
public void onGeolocationPermissionsShowPrompt(String origin,
GeolocationPermissions.Callback callback) {
// our webchromeclient should share geolocation with the iitc script
// allow access by default
callback.invoke(origin, true, false);
}
/**
* display progress bar in activity
*/
@Override
public void onProgressChanged(WebView view, int newProgress) {
super.onProgressChanged(view, newProgress);