Skip to content
Snippets Groups Projects
Commit cad08823 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Add nullity check for Snackbar

parent 93b5737c
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
@Override
public void run() {
deleteMedia(mw, false, cancel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment