mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
Fix issue 6064: Inline images don't display on KitKat
Eliminate the invocation of WebSettings.setBlockNetworkImage(boolean flag), thus maintaining the the default setting of "false". On Android versions prior to KitKat, this setting has no effect on inline image attachments loaded with content: URIs. Such images would load regardless. With KitKat, this setting does have an effect -- a setting of "true" will block image attachments loaded with content: URIs. By removing this call, K-9 Mail behaves the same on KitKat as on earlier Android versions, and the behavior on earlier versions is unchanged.
This commit is contained in:
parent
ecb4ed41ba
commit
094156cc2a
@ -56,13 +56,14 @@ public class MessageWebView extends RigidWebView {
|
||||
* @param shouldBlockNetworkData True if network data should be blocked, false to allow network data.
|
||||
*/
|
||||
public void blockNetworkData(final boolean shouldBlockNetworkData) {
|
||||
WebSettings webSettings = getSettings();
|
||||
|
||||
// Block network loads.
|
||||
webSettings.setBlockNetworkLoads(shouldBlockNetworkData);
|
||||
|
||||
// Block network images.
|
||||
webSettings.setBlockNetworkImage(shouldBlockNetworkData);
|
||||
/*
|
||||
* Block network loads.
|
||||
*
|
||||
* Images with content: URIs will not be blocked, nor
|
||||
* will network images that are already in the WebView cache.
|
||||
*
|
||||
*/
|
||||
getSettings().setBlockNetworkLoads(shouldBlockNetworkData);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user