Skip to content

Commit

Permalink
Debug accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichAltheide committed Nov 27, 2023
1 parent 840a1f2 commit 9089b6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Monal/Classes/ActiveChatsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ -(void) configureComposeButton
buttonWithNotificationBadgeForImage:composeImage
hasNotification:[[DataLayer sharedInstance] allContactRequests].count > 0
withTapHandler:composeTapRecoginzer];
[self.composeButton.customView setIsAccessibilityElement:YES];
[self.composeButton.customView setAccessibilityLabel:@"Open contacts list"];
}

-(void) viewDidLoad
Expand Down Expand Up @@ -119,6 +121,7 @@ -(void) viewDidLoad
[self configureComposeButton];

UIBarButtonItem* spinnerButton = [[UIBarButtonItem alloc] initWithCustomView:self.spinner];
[spinnerButton setIsAccessibilityElement:NO];
[self.navigationItem setRightBarButtonItems:@[self.composeButton, spinnerButton] animated:NO];

self.chatListTable.emptyDataSetSource = self;
Expand Down
3 changes: 3 additions & 0 deletions Monal/Classes/ContactsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ -(void) configureContactRequestsImage
buttonWithNotificationBadgeForImage:requestsImage
hasNotification:[[DataLayer sharedInstance] allContactRequests].count > 0
withTapHandler:requestsTapRecoginzer];
[self.navigationItem.rightBarButtonItems[1] setIsAccessibilityElement:YES];
[self.composeButton.customView setAccessibilityLabel:@"Open contact requests"];

}

#pragma mark view life cycle
Expand Down

0 comments on commit 9089b6d

Please sign in to comment.