mirror of
				https://github.com/samuelclay/NewsBlur.git
				synced 2025-11-01 09:09:51 +00:00 
			
		
		
		
	Fixing crash when using interactive swipe to peek at story titles from story detail but canceling. activeStory was being nil'd inadvertently.
This commit is contained in:
		
							parent
							
								
									f6ab41fe17
								
							
						
					
					
						commit
						85fe9bf11a
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -341,7 +341,7 @@
 | 
			
		|||
    }
 | 
			
		||||
        
 | 
			
		||||
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
 | 
			
		||||
        [self fadeSelectedCell];
 | 
			
		||||
        [self fadeSelectedCell:NO];
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    [self.notifier setNeedsLayout];
 | 
			
		||||
| 
						 | 
				
			
			@ -391,6 +391,10 @@
 | 
			
		|||
        self.isDashboardModule) {
 | 
			
		||||
        [self.storyTitlesTable reloadData];
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
 | 
			
		||||
        [self fadeSelectedCell:YES];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    [self.notifier setNeedsLayout];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -437,7 +441,7 @@
 | 
			
		|||
                                           animated:NO
 | 
			
		||||
                                     scrollPosition:UITableViewScrollPositionMiddle];
 | 
			
		||||
        if (deselect) {
 | 
			
		||||
            dispatch_after(dispatch_time(DISPATCH_TIME_NOW,  0.4 * NSEC_PER_SEC),
 | 
			
		||||
            dispatch_after(dispatch_time(DISPATCH_TIME_NOW,  0.1 * NSEC_PER_SEC),
 | 
			
		||||
                           dispatch_get_main_queue(), ^(void) {
 | 
			
		||||
                [self.storyTitlesTable deselectRowAtIndexPath:indexPath
 | 
			
		||||
                                                     animated:YES];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue