Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a798dd86 authored by Ramanan Rajeswaran's avatar Ramanan Rajeswaran Committed by The Android Open Source Project
Browse files

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
parent aa25df24
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -131,6 +131,17 @@ public class GoogleWebContentHelper {
        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.