Commit c0ad5841 authored by Mygod's avatar Mygod

Fix another casting bug

parent 807867ab
...@@ -150,7 +150,7 @@ class ProfileConfigFragment : PreferenceFragmentCompat(), ...@@ -150,7 +150,7 @@ class ProfileConfigFragment : PreferenceFragmentCompat(),
DataStore.dirty = true DataStore.dirty = true
true true
} catch (exc: RuntimeException) { } catch (exc: RuntimeException) {
(activity as MainActivity).snackbar(exc.localizedMessage).show() Snackbar.make(view!!, exc.localizedMessage, Snackbar.LENGTH_LONG).show()
false false
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment