Skip to content

Instantly share code, notes, and snippets.

View daniloercoli's full-sized avatar

Danilo Ercoli daniloercoli

View GitHub Profile
diff --git a/WordPress/Classes/Blog.m b/WordPress/Classes/Blog.m
index 8f50178..2d85f3c 100644
--- a/WordPress/Classes/Blog.m
+++ b/WordPress/Classes/Blog.m
@@ -552,7 +552,7 @@ static NSInteger const ImageSizeLargeHeight = 480;
_api = [[WPXMLRPCClient alloc] initWithXMLRPCEndpoint:[NSURL URLWithString:self.xmlrpc]];
// Enable compression for wp.com only, as some self hosted have connection issues
if (self.isWPcom) {
- [_api setDefaultHeader:@"gzip, deflate" value:@"Accept-Encoding"];
+ [_api setDefaultHeader:@"Accept-Encoding" value:@"gzip, deflate"];
diff --git a/src/org/wordpress/android/ui/themes/ThemeBrowserActivity.java b/src/org/wordpress/android/ui/themes/ThemeBrowserActivity.java
index 13c5a3b..0fb3fbc 100644
--- a/src/org/wordpress/android/ui/themes/ThemeBrowserActivity.java
+++ b/src/org/wordpress/android/ui/themes/ThemeBrowserActivity.java
@@ -518,6 +518,8 @@ public class ThemeBrowserActivity extends WPActionBarActivity implements
ft.hide(mDetailsFragment);
}
}
+
+ ft.remove(mPreviewFragment);
@daniloercoli
daniloercoli / gist:2924522
Created June 13, 2012 14:45
UA support tests
(function( $, undefined ) {
var fakeBody = $( "<body>" ).prependTo( "html" ),
fbCSS = fakeBody[ 0 ].style,
vendors = [ "Webkit", "Moz", "O" ],
webos = !! "palmGetResource" in window, //only used to rule out scrollTop
bb = !! window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
// thx Modernizr
Index: Classes/WPWebViewController.m
===================================================================
--- Classes/WPWebViewController.m (revision 2231)
+++ Classes/WPWebViewController.m (working copy)
@@ -23,7 +23,7 @@
@end
@implementation WPWebViewController
-@synthesize url,username,password;
+@synthesize url,username,password, htmlString;