Skip to content

Commit

Permalink
[RNMobile] Fix embed webview endcoding (#50555)
Browse files Browse the repository at this point in the history
* Fix embed webview endcoding

* Clean up imports

---------

Co-authored-by: jhnstn <jhnstn@pm.me>
  • Loading branch information
jhnstn and jhnstn committed May 16, 2023
1 parent 60984b3 commit 37dc9f6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.webkit.CookieManager;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
Expand Down Expand Up @@ -80,7 +77,7 @@ public void onProgressChanged(WebView view, int progress) {

protected void load() {
String content = getIntent().getExtras().getString(ARG_CONTENT);
mWebView.loadData(content, "text/html", "UTF-8");
mWebView.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null);
}

private void setupToolbar() {
Expand Down

0 comments on commit 37dc9f6

Please sign in to comment.