Fix Rule config notice after exit

This commit is contained in:
PeratX 2017-09-17 10:48:04 +08:00
parent 4ce14c9da9
commit 64f9860899

View File

@ -408,7 +408,9 @@ public class RuleConfigFragment extends ConfigFragment {
Logger.logException(e);
}
Snackbar.make(view, R.string.notice_downloaded, Snackbar.LENGTH_SHORT).show();
if (view != null) {
Snackbar.make(view, R.string.notice_downloaded, Snackbar.LENGTH_SHORT).show();
}
break;
}
}