Fix crash when creating Snackbar in ProfileConfigFragment

This commit is contained in:
Mygod
2017-01-23 02:33:58 +08:00
parent cbb0345e5b
commit f6253d2eba
@@ -110,7 +110,7 @@ class ProfileConfigFragment extends PreferenceFragment with OnMenuItemClickListe
true
} catch {
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
}