summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-03-19 09:10:36 -0400
committerJoel Fischer <joeljfischer@gmail.com>2021-03-19 09:10:36 -0400
commitf590b0941cb92b646b066c912d8a8da9efd6ed59 (patch)
tree2a193a66685a16ddf53ad7f8c8db244951e3299b
parentaa5e637da2a8e62622185300744c0256eef82997 (diff)
downloadsdl_ios-f590b0941cb92b646b066c912d8a8da9efd6ed59.tar.gz
Fix some colors and a log
-rw-r--r--Example Apps/Example ObjC/ConnectionIAPTableViewController.m6
-rw-r--r--Example Apps/Example ObjC/ConnectionTCPTableViewController.m6
-rw-r--r--Example Apps/Example Swift/ConnectionIAPTableViewController.swift8
-rw-r--r--Example Apps/Example Swift/ConnectionTCPTableViewController.swift8
-rw-r--r--SmartDeviceLink/private/SDLLifecycleManager.m2
5 files changed, 15 insertions, 15 deletions
diff --git a/Example Apps/Example ObjC/ConnectionIAPTableViewController.m b/Example Apps/Example ObjC/ConnectionIAPTableViewController.m
index bfb931069..8395d31b5 100644
--- a/Example Apps/Example ObjC/ConnectionIAPTableViewController.m
+++ b/Example Apps/Example ObjC/ConnectionIAPTableViewController.m
@@ -73,15 +73,15 @@
switch (newState) {
case ProxyStateStopped: {
- newColor = [UIColor redColor];
+ newColor = [UIColor systemRedColor];
newTitle = @"Connect";
} break;
case ProxyStateSearchingForConnection: {
- newColor = [UIColor blueColor];
+ newColor = [UIColor systemOrangeColor];
newTitle = @"Stop Searching";
} break;
case ProxyStateConnected: {
- newColor = [UIColor greenColor];
+ newColor = [UIColor systemGreenColor];
newTitle = @"Disconnect";
} break;
default: break;
diff --git a/Example Apps/Example ObjC/ConnectionTCPTableViewController.m b/Example Apps/Example ObjC/ConnectionTCPTableViewController.m
index 7b497a591..45a22060a 100644
--- a/Example Apps/Example ObjC/ConnectionTCPTableViewController.m
+++ b/Example Apps/Example ObjC/ConnectionTCPTableViewController.m
@@ -103,15 +103,15 @@
switch (newState) {
case ProxyStateStopped: {
- newColor = [UIColor redColor];
+ newColor = [UIColor systemRedColor];
newTitle = @"Connect";
} break;
case ProxyStateSearchingForConnection: {
- newColor = [UIColor blueColor];
+ newColor = [UIColor systemOrangeColor];
newTitle = @"Stop Searching";
} break;
case ProxyStateConnected: {
- newColor = [UIColor greenColor];
+ newColor = [UIColor systemGreenColor];
newTitle = @"Disconnect";
} break;
default: break;
diff --git a/Example Apps/Example Swift/ConnectionIAPTableViewController.swift b/Example Apps/Example Swift/ConnectionIAPTableViewController.swift
index 5a51ad456..3898c7a86 100644
--- a/Example Apps/Example Swift/ConnectionIAPTableViewController.swift
+++ b/Example Apps/Example Swift/ConnectionIAPTableViewController.swift
@@ -26,7 +26,7 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
}
func initButton() {
- self.connectTableViewCell.backgroundColor = UIColor.red
+ self.connectTableViewCell.backgroundColor = UIColor.systemRed
self.connectButton.setTitle("Connect", for: .normal)
self.connectButton.setTitleColor(.white, for: .normal)
}
@@ -49,13 +49,13 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
switch newState {
case .stopped:
- newColor = UIColor.red
+ newColor = UIColor.systemRed
newTitle = "Connect"
case .searching:
- newColor = UIColor.blue
+ newColor = UIColor.systemOrange
newTitle = "Stop Searching"
case .connected:
- newColor = UIColor.green
+ newColor = UIColor.systemGreen
newTitle = "Disconnect"
}
diff --git a/Example Apps/Example Swift/ConnectionTCPTableViewController.swift b/Example Apps/Example Swift/ConnectionTCPTableViewController.swift
index 4f07745e9..5195ce462 100644
--- a/Example Apps/Example Swift/ConnectionTCPTableViewController.swift
+++ b/Example Apps/Example Swift/ConnectionTCPTableViewController.swift
@@ -30,7 +30,7 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr
}
func initButton() {
- self.connectTableViewCell.backgroundColor = UIColor.red
+ self.connectTableViewCell.backgroundColor = UIColor.systemRed
self.connectButton.setTitle("Connect", for: .normal)
self.connectButton.setTitleColor(.white, for: .normal)
}
@@ -65,13 +65,13 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr
switch newState {
case .stopped:
- newColor = UIColor.red
+ newColor = UIColor.systemRed
newTitle = "Connect"
case .searching:
- newColor = UIColor.blue
+ newColor = UIColor.systemOrange
newTitle = "Stop Searching"
case .connected:
- newColor = UIColor.green
+ newColor = UIColor.systemGreen
newTitle = "Disconnect"
}
diff --git a/SmartDeviceLink/private/SDLLifecycleManager.m b/SmartDeviceLink/private/SDLLifecycleManager.m
index daf700c90..9fc7d088d 100644
--- a/SmartDeviceLink/private/SDLLifecycleManager.m
+++ b/SmartDeviceLink/private/SDLLifecycleManager.m
@@ -499,7 +499,7 @@ NSString *const BackgroundTaskTransportName = @"com.sdl.transport.backgroundTask
return;
}
- SDLLogD(@"Successfully updated language with change registration. Request sent: %@", request);
+ SDLLogD(@"Successfully updated language with change registration. Request sent: %@, response received: %@", request, response);
}];
}