summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cydia.mm11
-rw-r--r--UICaboodle/BrowserView.mm2
-rw-r--r--control2
3 files changed, 8 insertions, 7 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 239c584..f00d4d7 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -3810,17 +3810,18 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
WebView *webview([webview_ webView]);
Package *package([[Database sharedInstance] packageWithName:@"cydia"]);
+
NSString *application = package == nil ? @"Cydia" : [NSString
stringWithFormat:@"Cydia/%@",
[package installed]
];
- if (Product_ != nil)
- application = [NSString stringWithFormat:@"%@ Version/%@", application, Product_];
- if (Build_ != nil)
- application = [NSString stringWithFormat:@"%@ Mobile/%@", application, Build_];
if (Safari_ != nil)
- application = [NSString stringWithFormat:@"%@ Safari/%@", application, Safari_];
+ application = [NSString stringWithFormat:@"Safari/%@ %@", application, Safari_];
+ if (Build_ != nil)
+ application = [NSString stringWithFormat:@"Mobile/%@ %@", application, Build_];
+ if (Product_ != nil)
+ application = [NSString stringWithFormat:@"Version/%@ %@", application, Product_];
[webview setApplicationNameForUserAgent:application];
} return self;
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 30d8371..5f984d1 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -1171,7 +1171,7 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
}
- (void) setViewportWidth:(float)width {
- width_ = width ? width != 0 : [[self class] defaultWidth];
+ width_ = width != 0 ? width : [[self class] defaultWidth];
[webview_ setViewportSize:CGSizeMake(width_, UIWebViewGrowsAndShrinksToFitHeight) forDocumentTypes:0x10];
}
diff --git a/control b/control
index 0d4ffcd..67163fb 100644
--- a/control
+++ b/control
@@ -3,7 +3,7 @@ Priority: required
Section: Packaging
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 1.0.2987-1
+Version: 1.0.2988-1
Replaces: com.sosiphone.addcydia
Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds
Pre-Depends: dpkg (>= 1.14.25-8)