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
e345a71433
commit
71f2a8b25b
3 changed files with 2 additions and 4 deletions
1
app/src/main/assets/eula.html
Normal file
1
app/src/main/assets/eula.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -22,7 +22,7 @@ class LicenseActivity : AppCompatActivity() {
|
||||||
if (agreedLicenseVersion == Constants.CURRENT_LICENSE_VERSION) {
|
if (agreedLicenseVersion == Constants.CURRENT_LICENSE_VERSION) {
|
||||||
agree()
|
agree()
|
||||||
} else {
|
} else {
|
||||||
wbLA.loadData(getString(R.string.licence_html), "text/html", "UTF-8")
|
wbLA.loadUrl("file:///android_asset/eula.html")
|
||||||
|
|
||||||
btnDisagree.setOnClickListener { finish() }
|
btnDisagree.setOnClickListener { finish() }
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue