mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Updating current feed's title on rename.
This commit is contained in:
parent
bcdd9c6d2b
commit
f5c065ccf2
5 changed files with 9 additions and 7 deletions
|
@ -1947,8 +1947,10 @@ didEndSwipingSwipingWithState:(MCSwipeTableViewCellState)state
|
|||
[appDelegate renameFeed:newTitle];
|
||||
}
|
||||
[self.view setNeedsDisplay];
|
||||
self.navigationItem.titleView = [appDelegate makeFeedTitle:storiesCollection.activeFeed];
|
||||
[self.navigationController.view setNeedsDisplay];
|
||||
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
||||
|
||||
}];
|
||||
[request setTimeOutSeconds:30];
|
||||
[request setTag:[[storiesCollection.activeFeed objectForKey:@"id"] intValue]];
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.view];
|
||||
}
|
||||
if (self.webView.scrollView.contentOffset.x == 0 &&
|
||||
velocity.x > 0 && abs(velocity.y) < 200) {
|
||||
velocity.x > 0 && fabs(velocity.y) < 200) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,7 @@
|
|||
velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.view];
|
||||
}
|
||||
if (self.webView.scrollView.contentOffset.x == 0 &&
|
||||
velocity.x > 0 && abs(velocity.y) < 200) {
|
||||
velocity.x > 0 && fabs(velocity.y) < 200) {
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
|
@ -184,7 +184,7 @@
|
|||
velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.view];
|
||||
}
|
||||
if (self.webView.scrollView.contentOffset.x == 0 &&
|
||||
velocity.x > 0 && abs(velocity.y) < 200) {
|
||||
velocity.x > 0 && fabs(velocity.y) < 200) {
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
|
||||
UIImage *locationIcon = [UIImage imageNamed:@"7-location-place.png"];
|
||||
UIImageView *locationIconView = [[UIImageView alloc] initWithImage:locationIcon];
|
||||
locationIconView.Frame = CGRectMake(kTopBadgeTextXCoordinate,
|
||||
locationIconView.frame = CGRectMake(kTopBadgeTextXCoordinate,
|
||||
yCoordinatePointer + 2,
|
||||
16,
|
||||
16);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#import <SystemConfiguration/SystemConfiguration.h>
|
||||
#import <MobileCoreServices/MobileCoreServices.h>
|
||||
|
||||
#define DEBUG 1
|
||||
//#define DEBUG 1
|
||||
//#define PROD_DEBUG 1
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -224,7 +224,7 @@ secondStateIconName:(NSString *)secondIconName
|
|||
UIPanGestureRecognizer *g = (UIPanGestureRecognizer *)gestureRecognizer;
|
||||
CGPoint point = [g velocityInView:self];
|
||||
|
||||
if (fabsf(point.x) > fabsf(point.y) ) {
|
||||
if (fabs(point.x) > fabs(point.y) ) {
|
||||
|
||||
// We notify the delegate that we just started dragging
|
||||
if ([_delegate respondsToSelector:@selector(swipeTableViewCellDidStartSwiping:)]) {
|
||||
|
@ -297,7 +297,7 @@ secondStateIconName:(NSString *)secondIconName
|
|||
if (percentage >= 0 && percentage < kMCStop1)
|
||||
alpha = percentage / kMCStop1;
|
||||
else if (percentage < 0 && percentage > -kMCStop1)
|
||||
alpha = fabsf(percentage / kMCStop1);
|
||||
alpha = fabs(percentage / kMCStop1);
|
||||
else alpha = 1.0;
|
||||
|
||||
return alpha;
|
||||
|
|
Loading…
Add table
Reference in a new issue