Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 136b1637 authored by Steve Block's avatar Steve Block
Browse files

Fix use of WebView.loadData() to avoid passing invalid encoding

No change in behavior, as invalid encodings have always been ignored.

Bug: 5125738
Change-Id: I23f21ca65a6b14501c74dc2189a55643f1e33c33
parent b22a69f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1677,7 +1677,7 @@ public class AccessibilityInjectorTest
                        }
                    });
                }
                mWebView.loadData(html, "text/html", "utf-8");
                mWebView.loadData(html, "text/html", null);
            }
        });
        synchronized (sTestLock) {
+1 −2
Original line number Diff line number Diff line
@@ -120,7 +120,6 @@ public class ListWithMailMessages extends ListActivity {
        }

        final String mimeType = "text/html";
        final String encoding = "utf-8";


        @Override
@@ -137,7 +136,7 @@ public class ListWithMailMessages extends ListActivity {
            subject.setText(message.getSubject());

            WebView body = (WebView) messageUi.findViewById(R.id.body);
            body.loadData(message.getBody(), mimeType, encoding);
            body.loadData(message.getBody(), mimeType, null);
//            body.setText(message.getBody());
            body.setFocusable(message.isFocusable());