Changeset 710
- Timestamp:
- 12/08/08 21:07:09 (1 month ago)
- Files:
-
- trunk/SapphireFrappliance/SapphireBrowser.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SapphireFrappliance/SapphireBrowser.m
r705 r710 622 622 } 623 623 624 static NSDate *lastFilterChangeDate = nil; 625 624 626 - (BOOL)brEventAction:(BREvent *)event 625 627 { … … 657 659 case kBREventTapLeft: 658 660 { 659 NSString *oldName=nil; 660 if(row < [_names count]) 661 oldName = [self titleForRow:row]; 662 [self setNewPredicate:[SapphireApplianceController nextPredicate]]; 663 /*Attempt to preserve the user's current highlighted selection*/ 664 if(oldName) 665 { 666 row=[self rowForTitle:oldName]; 667 if(row>=0) 661 if(![SapphireFrontRowCompat usingTakeTwoDotThree] || lastFilterChangeDate == nil || [lastFilterChangeDate timeIntervalSinceNow] < -0.4f) 662 { 663 [lastFilterChangeDate release]; 664 lastFilterChangeDate = [[NSDate date] retain]; 665 NSString *oldName=nil; 666 if(row < [_names count]) 667 oldName = [self titleForRow:row]; 668 [self setNewPredicate:[SapphireApplianceController nextPredicate]]; 669 /*Attempt to preserve the user's current highlighted selection*/ 670 if(oldName) 668 671 { 669 [(BRListControl *)[self list] setSelection:row]; 672 row=[self rowForTitle:oldName]; 673 if(row>=0) 674 { 675 [(BRListControl *)[self list] setSelection:row]; 676 } 677 else 678 { 679 [(BRListControl *)[self list] setSelection:0]; 680 [self updatePreviewController]; 681 } 670 682 } 671 else 672 { 673 [(BRListControl *)[self list] setSelection:0]; 674 [self updatePreviewController]; 675 } 676 } 677 /*Force a reload on the mediaPreviewController*/ 678 /* Not working in FrontRow */ 679 [self wasPushed]; 680 return YES; 683 /*Force a reload on the mediaPreviewController*/ 684 /* Not working in FrontRow */ 685 [self wasPushed]; 686 return YES; 687 } 681 688 } 682 689 }
