Skip to content
Snippets Groups Projects
Commit 31ac8d0a authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Prevent IllegalStateException when the EqualizerFragment is not attached

parent 4d2cb477
No related branches found
No related tags found
1 merge request!1110Crash fixes
......@@ -316,6 +316,7 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { }
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
if (context == null) return
val newName = input.text.toString()
if (input.text.contains("_") || newName == newPresetName) {
input.error = getString(R.string.custom_set_wrong_input)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment