Commit cad08823 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Add nullity check for Snackbar

parent 93b5737c
......@@ -558,7 +558,8 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
mAdapter.addItem(mw, true);
UiTools.snackerWithCancel(getView(), getString(R.string.file_deleted), new Runnable() {
final View v = getView();
if (v != null) UiTools.snackerWithCancel(v, getString(R.string.file_deleted), new Runnable() {
public void run() {
deleteMedia(mw, false, cancel);
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