Skip to content

Commit 2457964

Browse files
Merge pull request #397 from SourcePointUSA/DIA-1566_single_button_focus_for_ccpa
[DIA-1566] Now if CCPA message has less than 2 buttons focus won't be set
2 parents 00046f7 + 1f0821a commit 2457964

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ConsentViewController/Classes/Views/tvOS/NativePrivacyManager/CCPA/SPCCPANativePrivacyManagerViewController.swift

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ import Foundation
9595

9696
func setFocusGuidesForButtons() {
9797
let visibleButtons: [UIView] = actionsContainer.arrangedSubviews.filter({!$0.isHidden})
98+
if(visibleButtons.count <= 1) {
99+
return;
100+
}
98101
for i in 0...visibleButtons.count-2 {
99102
addFocusGuide(from: visibleButtons[i], to: visibleButtons[i+1], direction: .bottomTop)
100103
}

0 commit comments

Comments
 (0)