Merge change 2855 into donut
* changes: Add a new method to load html data into the WebView.
This commit is contained in:
@@ -130,7 +130,14 @@ public class GoogleWebContentHelper {
|
|||||||
mWebView.loadUrl(mSecureUrl);
|
mWebView.loadUrl(mSecureUrl);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GoogleWebContentHelper loadDataWithFailUrl(String base, String data,
|
||||||
|
String mimeType, String encoding, String failUrl) {
|
||||||
|
ensureViews();
|
||||||
|
mWebView.loadDataWithBaseURL(base, data, mimeType, encoding, failUrl);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper to handle the back key. Returns true if the back key was handled,
|
* Helper to handle the back key. Returns true if the back key was handled,
|
||||||
* otherwise returns false.
|
* otherwise returns false.
|
||||||
|
|||||||
Reference in New Issue
Block a user