Remove the eula from the strings and placed it instead as a file into the Assets folder.

We found that using the loadUrl WebView's method instead of loadData renders the html page better, for that reason the eula is now saved as a fule in the assets folder and loaded using the WebView's loadUrl method.
This commit is contained in:
Severiano Jaramillo 2019-01-02 14:29:29 -06:00
parent d04e847bba
commit b12b3b9546
3 changed files with 2 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -70,12 +70,7 @@ public class LicenseActivity extends AppCompatActivity {
finish(); finish();
} }
else{ else{
wvEULA.loadUrl("file:///android_asset/crystal_eula.html");
/*
* Load the licence only if it is necesarry
* */
String html = getString(R.string.licence_html);
wvEULA.loadData(html, "text/html", "UTF-8");
} }
} }

File diff suppressed because one or more lines are too long