Fix mapillary webgl support
This commit is contained in:
parent
ec55d965cc
commit
1631a373b6
1 changed files with 5 additions and 0 deletions
|
@ -190,11 +190,14 @@ public class MapillaryImageDialog extends ContextMenuCardDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
public View getContentView() {
|
public View getContentView() {
|
||||||
|
return getWebView();
|
||||||
|
/*
|
||||||
if (getMapActivity().getMyApplication().getSettings().WEBGL_SUPPORTED.get()) {
|
if (getMapActivity().getMyApplication().getSettings().WEBGL_SUPPORTED.get()) {
|
||||||
return getWebView();
|
return getWebView();
|
||||||
} else {
|
} else {
|
||||||
return getStaticImageView();
|
return getStaticImageView();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -239,6 +242,7 @@ public class MapillaryImageDialog extends ContextMenuCardDialog {
|
||||||
noInternetView.setVisibility(View.VISIBLE);
|
noInternetView.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
/*
|
||||||
webView.setWebChromeClient(new WebChromeClient() {
|
webView.setWebChromeClient(new WebChromeClient() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
|
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
|
||||||
|
@ -249,6 +253,7 @@ public class MapillaryImageDialog extends ContextMenuCardDialog {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
noInternetView.findViewById(R.id.retry_button).setOnClickListener(new View.OnClickListener() {
|
noInternetView.findViewById(R.id.retry_button).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
Loading…
Reference in a new issue