Skip to content

Commit

Permalink
integrated my custom changes that Titanium will never fucking pull.
Browse files Browse the repository at this point in the history
- Facebook will never use Safari for auth
- Map user location (blue dot) no longer shows a bubble
- table row titles can be styled with font
- saving images as JPEG uses compression 60% instead of 100%
  • Loading branch information
jharlap committed Nov 28, 2011
1 parent 194e8e6 commit 0a47a13
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/titanium_version.py
@@ -1 +1 @@
version = '1.7.6'
version = '1.7.6-handprint'
4 changes: 2 additions & 2 deletions iphone/Classes/FBConnect/Facebook.m
Expand Up @@ -277,7 +277,7 @@ - (NSDictionary*)parseURLParams:(NSString *)query {
- (void)authorize:(NSArray *)permissions {
self.permissions = permissions;

[self authorizeWithFBAppAuth:YES safariAuth:YES];
[self authorizeWithFBAppAuth:YES safariAuth:NO];
}

/**
Expand Down Expand Up @@ -323,7 +323,7 @@ - (BOOL)handleOpenURL:(NSURL *)url {
// If the error response indicates that we should try again using Safari, open
// the authorization dialog in Safari.
if (errorReason && [errorReason isEqualToString:@"service_disabled_use_browser"]) {
[self authorizeWithFBAppAuth:NO safariAuth:YES];
[self authorizeWithFBAppAuth:NO safariAuth:NO];
return YES;
}

Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiBlob.m
Expand Up @@ -166,7 +166,7 @@ -(NSData*)data
}
case TiBlobTypeImage:
{
return UIImageJPEGRepresentation(image,1.0);
return UIImageJPEGRepresentation(image,0.6);
}
}
return data;
Expand Down
9 changes: 8 additions & 1 deletion iphone/Classes/TiMapView.m
Expand Up @@ -387,7 +387,14 @@ -(void)setRegionFit_:(id)value
-(void)setUserLocation_:(id)value
{
ENSURE_SINGLE_ARG(value,NSObject);
[self map].showsUserLocation = [TiUtils boolValue:value];
BOOL boolValue = [TiUtils boolValue:value];
[self map].showsUserLocation = boolValue;
if (boolValue)
{
MKUserLocation* userLocationAnnotation = [self map].userLocation;
userLocationAnnotation.title = nil;
userLocationAnnotation.subtitle = nil;
}
}

-(void)setLocation_:(id)location
Expand Down
8 changes: 8 additions & 0 deletions iphone/Classes/TiUITableViewRowProxy.m
Expand Up @@ -394,6 +394,14 @@ -(void)configureTitle:(UITableViewCell*)cell
if (title!=nil)
{
[textLabel setText:title]; //UILabel already checks to see if it hasn't changed.

id fontValue = [self valueForKey:@"font"];
UIFont *font = nil;
if (fontValue!=nil)
{
font = [[TiUtils fontValue:[self valueForKey:@"font"]] font];
textLabel.font = font;
}

UIColor * textColor = [[TiUtils colorValue:[self valueForKey:@"color"]] _color];
[textLabel setTextColor:(textColor==nil)?[UIColor blackColor]:textColor];
Expand Down

0 comments on commit 0a47a13

Please sign in to comment.