mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
Wrap hidePicker dismiss call in ISE catch.
This commit is contained in:
@@ -206,7 +206,12 @@ class WebRtcAudioOutputToggleButton @JvmOverloads constructor(context: Context,
|
||||
}
|
||||
|
||||
private fun hidePicker() {
|
||||
picker?.dismiss()
|
||||
try {
|
||||
picker?.dismiss()
|
||||
} catch (e: IllegalStateException) {
|
||||
Log.w(TAG, "Picker is not attached to a window.")
|
||||
}
|
||||
|
||||
picker = null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user