diff options
author | Frank Elias <francois.elias@livio.io> | 2020-11-20 15:45:18 -0500 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2020-11-20 15:45:18 -0500 |
commit | e58a965711319cc6c0c1f7c54ee2cd3b7e1c5665 (patch) | |
tree | d3c15ba767f4c818560c9427fa9c7e209d952870 /Example Apps | |
parent | 586cb1fc79fd91814ff0bf134d19b16460dffa9e (diff) | |
download | sdl_ios-e58a965711319cc6c0c1f7c54ee2cd3b7e1c5665.tar.gz |
Comment review
Diffstat (limited to 'Example Apps')
-rw-r--r-- | Example Apps/Example ObjC/AlertManager.m | 2 | ||||
-rw-r--r-- | Example Apps/Example Swift/AlertManager.swift | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Example Apps/Example ObjC/AlertManager.m b/Example Apps/Example ObjC/AlertManager.m index 9ee13fcdd..fa7adc77f 100644 --- a/Example Apps/Example ObjC/AlertManager.m +++ b/Example Apps/Example ObjC/AlertManager.m @@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN @implementation AlertManager + (void)sendAlertWithManager:(SDLManager *)sdlManager image:(nullable NSString *)imageName textField1:(NSString *)textField1 textField2:(nullable NSString *)textField2 { - SDLSoftButton *okSoftButton = [[SDLSoftButton alloc] initWithType:SDLSoftButtonTypeText text:AlertOKButtonText image:nil highlighted:YES buttonId:1 systemAction:nil handler:nil]; + SDLSoftButton *okSoftButton = [[SDLSoftButton alloc] initWithType:SDLSoftButtonTypeText text:AlertOKButtonText image:nil highlighted:YES buttonId:2 systemAction:nil handler:nil]; SDLAlert *alert = [[SDLAlert alloc] initWithAlertText1:textField1 alertText2:textField2 alertText3:nil softButtons:@[okSoftButton] playTone:YES ttsChunks:nil duration:5000 progressIndicator:NO alertIcon:nil cancelID:0]; if (imageName == nil) { diff --git a/Example Apps/Example Swift/AlertManager.swift b/Example Apps/Example Swift/AlertManager.swift index 9e37dd1c5..5b4680342 100644 --- a/Example Apps/Example Swift/AlertManager.swift +++ b/Example Apps/Example Swift/AlertManager.swift @@ -17,7 +17,7 @@ class AlertManager { /// - textField2: The second line of text in the alert /// - sdlManager: The SDLManager class func sendAlert(imageName: String? = nil, textField1: String, textField2: String? = nil, sdlManager: SDLManager) { - let okSoftButton = SDLSoftButton(type: .text, text: AlertOKButtonText, image: nil, highlighted: true, buttonId: 1, systemAction: nil, handler: nil) + let okSoftButton = SDLSoftButton(type: .text, text: AlertOKButtonText, image: nil, highlighted: true, buttonId: 2, systemAction: nil, handler: nil) let alert = SDLAlert(alertText1: textField1, alertText2: textField2, alertText3: nil, softButtons: [okSoftButton], playTone: true, ttsChunks: nil, duration: 5000, progressIndicator: false, alertIcon: nil, cancelID: 0) if let imageName = imageName { |