diff options
author | Aleksey Belouosv <aleksey@maps.me> | 2019-03-06 16:39:25 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2019-03-13 12:57:30 +0300 |
commit | 24555eb480ff0f9cbac59c6c1a9e28bd9d2637c4 (patch) | |
tree | b847d5725cdb2d4fe151d3de7f9a1b664e8273a5 /iphone | |
parent | 717cab7e7d81c0f99add829f8d23accbdfae9297 (diff) |
[iOS] set default check in/out dates in hotel filter
https://jira.mail.ru/browse/MAPSME-9920
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm b/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm index e8119b56dd..7b9aebcdfa 100644 --- a/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm +++ b/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm @@ -115,9 +115,12 @@ void configButton(UIButton * button, NSString * primaryText, NSString * secondar { m_selectedTypes = params.types; [self.type.collectionView reloadData]; - - self.checkInDate = params.checkInDate; - self.checkOutDate = params.checkOutDate; + + if (params.checkInDate != nil && params.checkOutDate != nil) + { + self.checkInDate = params.checkInDate; + self.checkOutDate = params.checkOutDate; + } using namespace place_page::rating; auto ratingCell = self.rating; |