Commit f6253d2e authored by Mygod's avatar Mygod

Fix crash when creating Snackbar in ProfileConfigFragment

parent cbb0345e
...@@ -110,7 +110,7 @@ class ProfileConfigFragment extends PreferenceFragment with OnMenuItemClickListe ...@@ -110,7 +110,7 @@ class ProfileConfigFragment extends PreferenceFragment with OnMenuItemClickListe
true true
} catch { } catch {
case exc: IllegalArgumentException => case exc: IllegalArgumentException =>
Snackbar.make(getActivity.findViewById(R.id.snackbar), exc.getLocalizedMessage, Snackbar.LENGTH_LONG).show() Snackbar.make(getView, exc.getLocalizedMessage, 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