Forráskód Böngészése

make audio player progressbar and time label inaccessible, leaving only the play/stop button

cyberta 4 éve
szülő
commit
1c4e014ccf
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      deltachat-ios/Chat/Views/AudioPlayerView.swift

+ 2 - 0
deltachat-ios/Chat/Views/AudioPlayerView.swift

@@ -29,6 +29,7 @@ open class AudioPlayerView: UIView {
         durationLabel.adjustsFontForContentSizeCategory = true
         durationLabel.text = "0:00"
         durationLabel.translatesAutoresizingMaskIntoConstraints = false
+        durationLabel.isAccessibilityElement = false
         return durationLabel
     }()
 
@@ -36,6 +37,7 @@ open class AudioPlayerView: UIView {
         let progressView = UIProgressView(progressViewStyle: .default)
         progressView.progress = 0.0
         progressView.translatesAutoresizingMaskIntoConstraints = false
+        progressView.isAccessibilityElement = false
         return progressView
     }()