Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Unified Diff: remoting/ios/app/host_collection_view_cell.mm

Issue 2912293003: [CRD iOS] Consistent host list order and showing last online time (Closed)
Patch Set: Fix comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/ios/app/main.mm » ('j') | remoting/ios/domain/host_info.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/app/host_collection_view_cell.mm
diff --git a/remoting/ios/app/host_collection_view_cell.mm b/remoting/ios/app/host_collection_view_cell.mm
index 0f3e23b1bc036b6eec53356fab4d586abd52f711..7cbab271f1fc4d15a94d2be509ae164e845e71c1 100644
--- a/remoting/ios/app/host_collection_view_cell.mm
+++ b/remoting/ios/app/host_collection_view_cell.mm
@@ -102,7 +102,6 @@ static const CGFloat kHostCardIconSize = 45.f;
_hostInfo = hostInfo;
_titleLabel.text = _hostInfo.hostName;
- _statusLabel.text = _hostInfo.status;
_imageView.image = [UIImage imageNamed:@"ic_desktop"];
@@ -110,8 +109,11 @@ static const CGFloat kHostCardIconSize = 45.f;
// Need to update to the values in the mocks.
if ([_hostInfo.status isEqualToString:@"ONLINE"]) {
_imageView.backgroundColor = UIColor.greenColor;
+ _statusLabel.text = @"Online";
} else {
_imageView.backgroundColor = UIColor.lightGrayColor;
+ _statusLabel.text =
+ [NSString stringWithFormat:@"Last online: %@", hostInfo.updatedTime];
}
}
« no previous file with comments | « no previous file | remoting/ios/app/main.mm » ('j') | remoting/ios/domain/host_info.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698