|
@@ -26,7 +26,6 @@ class ChatListController: UITableViewController {
|
|
view.addGestureRecognizer(navTapGesture)
|
|
view.addGestureRecognizer(navTapGesture)
|
|
view.isUserInteractionEnabled = true
|
|
view.isUserInteractionEnabled = true
|
|
view.font = UIFont.systemFont(ofSize: 17, weight: .semibold)
|
|
view.font = UIFont.systemFont(ofSize: 17, weight: .semibold)
|
|
- view.accessibilityLabel = String.localized("a11y_connectivity_hint")
|
|
|
|
return view
|
|
return view
|
|
}()
|
|
}()
|
|
|
|
|
|
@@ -426,6 +425,7 @@ class ChatListController: UITableViewController {
|
|
|
|
|
|
// MARK: updates
|
|
// MARK: updates
|
|
private func updateTitle() {
|
|
private func updateTitle() {
|
|
|
|
+ titleView.accessibilityHint = String.localized("a11y_connectivity_hint")
|
|
if RelayHelper.sharedInstance.isForwarding() {
|
|
if RelayHelper.sharedInstance.isForwarding() {
|
|
titleView.text = String.localized("forward_to")
|
|
titleView.text = String.localized("forward_to")
|
|
if !isArchive {
|
|
if !isArchive {
|
|
@@ -437,6 +437,9 @@ class ChatListController: UITableViewController {
|
|
|
|
|
|
} else {
|
|
} else {
|
|
titleView.text = DcUtils.getConnectivityString(dcContext: dcContext, connectedString: String.localized("pref_chats"))
|
|
titleView.text = DcUtils.getConnectivityString(dcContext: dcContext, connectedString: String.localized("pref_chats"))
|
|
|
|
+ if dcContext.getConnectivity() >= DC_CONNECTIVITY_CONNECTED {
|
|
|
|
+ titleView.accessibilityHint = "\(String.localized("connectivity_connected")): \(String.localized("a11y_connectivity_hint"))"
|
|
|
|
+ }
|
|
navigationItem.setLeftBarButton(nil, animated: true)
|
|
navigationItem.setLeftBarButton(nil, animated: true)
|
|
}
|
|
}
|
|
titleView.sizeToFit()
|
|
titleView.sizeToFit()
|