diff options
author | Ramanan Rajeswaran <nobody@android.com> | 2009-06-11 14:43:15 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-06-11 14:43:15 -0700 |
commit | a798dd86295191b095aaa7a02903daf8d1a5e431 (patch) | |
tree | 4c4bdc32ddbb9d01d60fbd66b935434559d01878 /core/java/com | |
parent | aa25df2452f68d2f732ad620a97fd47b3802fa2e (diff) | |
download | frameworks_base-a798dd86295191b095aaa7a02903daf8d1a5e431.zip frameworks_base-a798dd86295191b095aaa7a02903daf8d1a5e431.tar.gz frameworks_base-a798dd86295191b095aaa7a02903daf8d1a5e431.tar.bz2 |
AI 149797: Have SetupWizard pull the Terms of Service from the web using a new URL
which allows us to set the language and country (based on MCC otherwise
locale country). If we are unable to retrieve the ToS, or verify the
content, we load the default ToS (en_US) from the device.
BUG=1856455
Automated import of CL 149797
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/google/android/util/GoogleWebContentHelper.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/java/com/google/android/util/GoogleWebContentHelper.java b/core/java/com/google/android/util/GoogleWebContentHelper.java index 2911420..8291e29 100644 --- a/core/java/com/google/android/util/GoogleWebContentHelper.java +++ b/core/java/com/google/android/util/GoogleWebContentHelper.java @@ -130,7 +130,18 @@ public class GoogleWebContentHelper { mWebView.loadUrl(mSecureUrl); return this; } - + + /** + * Loads data into the webview and also provides a failback url + * @return This {@link GoogleWebContentHelper} so methods can be chained. + */ + 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, * otherwise returns false. |