forked from organicmaps/organicmaps
[ios] MWMPlacePageOpeningHoursCell: moved isClosed into interface and removed unused parameter in setOpeningHoursCellExpanded:forCell method.
This commit is contained in:
parent
00a2d8ab79
commit
4a7b73580a
2 changed files with 5 additions and 3 deletions
|
@ -6,12 +6,14 @@
|
|||
- (BOOL)isPlaceholder;
|
||||
- (BOOL)isEditor;
|
||||
- (BOOL)openingHoursCellExpanded;
|
||||
- (void)setOpeningHoursCellExpanded:(BOOL)openingHoursCellExpanded forCell:(UITableViewCell *)cell;
|
||||
- (void)setOpeningHoursCellExpanded:(BOOL)openingHoursCellExpanded;
|
||||
|
||||
@end
|
||||
|
||||
@interface MWMPlacePageOpeningHoursCell : MWMTableViewCell
|
||||
|
||||
@property (nonatomic, readonly) BOOL isClosed;
|
||||
|
||||
- (void)configWithDelegate:(id<MWMPlacePageOpeningHoursCellProtocol>)delegate
|
||||
info:(NSString *)info;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ using WeekDayView = MWMPlacePageOpeningHoursDayView *;
|
|||
|
||||
@property (weak, nonatomic) id<MWMPlacePageOpeningHoursCellProtocol> delegate;
|
||||
|
||||
@property (nonatomic) BOOL isClosed;
|
||||
@property (nonatomic, readwrite) BOOL isClosed;
|
||||
@property (nonatomic) BOOL haveExpandSchedule;
|
||||
|
||||
@end
|
||||
|
@ -238,7 +238,7 @@ WeekDayView getWeekDayView()
|
|||
|
||||
- (IBAction)toggleButtonTap
|
||||
{
|
||||
[self.delegate setOpeningHoursCellExpanded:!self.delegate.openingHoursCellExpanded forCell:self];
|
||||
[self.delegate setOpeningHoursCellExpanded:!self.delegate.openingHoursCellExpanded];
|
||||
|
||||
// Workaround for slow devices.
|
||||
// Major QA can tap multiple times before first segue call is performed.
|
||||
|
|
Loading…
Add table
Reference in a new issue