Skip to content

Commit 13ee6d2

Browse files
Fix LicenseActivity not displaying licenses in WebView
1 parent 34f894a commit 13ee6d2

File tree

1 file changed

+1
-1
lines changed
  • OpenScienceJournal/app/src/main/java/com/google/android/apps/forscience/whistlepunk/opensource/licenses

1 file changed

+1
-1
lines changed

OpenScienceJournal/app/src/main/java/com/google/android/apps/forscience/whistlepunk/opensource/licenses/LicenseActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void onSuccess(@NonNull String data) {
202202
if (!TextUtils.isEmpty(copyrightHeader)) {
203203
data = data.replace(COPYRIGHT_HEADER_PLACEHOLDER, copyrightHeader);
204204
}
205-
webView.loadData(data, "text/html", "UTF-8");
205+
webView.loadDataWithBaseURL(null, data, "text/html", "UTF-8", null);
206206
}
207207

208208
@Override

0 commit comments

Comments
 (0)