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:
parent
d04e847bba
commit
b12b3b9546
3 changed files with 2 additions and 7 deletions
1
app/src/main/assets/crystal_eula.html
Normal file
1
app/src/main/assets/crystal_eula.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -70,12 +70,7 @@ public class LicenseActivity extends AppCompatActivity {
|
|||
finish();
|
||||
}
|
||||
else{
|
||||
|
||||
/*
|
||||
* Load the licence only if it is necesarry
|
||||
* */
|
||||
String html = getString(R.string.licence_html);
|
||||
wvEULA.loadData(html, "text/html", "UTF-8");
|
||||
wvEULA.loadUrl("file:///android_asset/crystal_eula.html");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue