Commit c6e56f94 authored by Yuwei Huang's avatar Yuwei Huang Committed by Commit Bot

[CRD iOS] Hide the send email button

Since we are not going to implement the send email feature soon, this CL
hides the send email button in the host instruction page.

This CL replaces the HostSetupFooterView with an empty view.

Bug: 736932
Change-Id: Id3ce3faea6f2352667904eb48d4e811587254d82
Reviewed-on: https://chromium-review.googlesource.com/575302Reviewed-by: default avatarScott Nichols <nicholss@chromium.org>
Commit-Queue: Yuwei Huang <yuweih@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487913}
parent b1ff6ba5
...@@ -34,7 +34,7 @@ static NSArray<NSString*>* const kSetupSteps = @[ ...@@ -34,7 +34,7 @@ static NSArray<NSString*>* const kSetupSteps = @[
#pragma clang diagnostic pop #pragma clang diagnostic pop
static const CGFloat kHeaderHeight = 80.f; static const CGFloat kHeaderHeight = 80.f;
static const CGFloat kFooterHeight = 80.f; static const CGFloat kFooterHeight = 15.f; // 80.0f for HostSetupFooterView
@implementation HostSetupViewController @implementation HostSetupViewController
...@@ -51,7 +51,9 @@ static const CGFloat kFooterHeight = 80.f; ...@@ -51,7 +51,9 @@ static const CGFloat kFooterHeight = 80.f;
forSupplementaryViewOfKind:UICollectionElementKindSectionHeader forSupplementaryViewOfKind:UICollectionElementKindSectionHeader
withReuseIdentifier:UICollectionElementKindSectionHeader]; withReuseIdentifier:UICollectionElementKindSectionHeader];
[self.collectionView registerClass:[HostSetupFooterView class] // TODO(yuweih): Use HostSetupFooterView once we have the email instructions
// feature.
[self.collectionView registerClass:[UICollectionReusableView class]
forSupplementaryViewOfKind:UICollectionElementKindSectionFooter forSupplementaryViewOfKind:UICollectionElementKindSectionFooter
withReuseIdentifier:UICollectionElementKindSectionFooter]; withReuseIdentifier:UICollectionElementKindSectionFooter];
} }
...@@ -86,9 +88,15 @@ static const CGFloat kFooterHeight = 80.f; ...@@ -86,9 +88,15 @@ static const CGFloat kFooterHeight = 80.f;
- (UICollectionReusableView*)collectionView:(UICollectionView*)collectionView - (UICollectionReusableView*)collectionView:(UICollectionView*)collectionView
viewForSupplementaryElementOfKind:(NSString*)kind viewForSupplementaryElementOfKind:(NSString*)kind
atIndexPath:(NSIndexPath*)indexPath { atIndexPath:(NSIndexPath*)indexPath {
return [collectionView dequeueReusableSupplementaryViewOfKind:kind UICollectionReusableView* view =
withReuseIdentifier:kind [collectionView dequeueReusableSupplementaryViewOfKind:kind
forIndexPath:indexPath]; withReuseIdentifier:kind
forIndexPath:indexPath];
if (kind == UICollectionElementKindSectionFooter) {
// TODO(yuweih): No longer necessary once we use HostSetupFooterView.
view.backgroundColor = RemotingTheme.setupListBackgroundColor;
}
return view;
} }
#pragma mark - MDCCollectionViewStylingDelegate #pragma mark - MDCCollectionViewStylingDelegate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment