Merge "Fix use of WebView.loadData() to avoid passing invalid encoding"
This commit is contained in:
@@ -1677,7 +1677,7 @@ public class AccessibilityInjectorTest
|
||||
}
|
||||
});
|
||||
}
|
||||
mWebView.loadData(html, "text/html", "utf-8");
|
||||
mWebView.loadData(html, "text/html", null);
|
||||
}
|
||||
});
|
||||
synchronized (sTestLock) {
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user