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

Add nullity check for Snackbar

(cherry picked from commit cad08823)
parent c5ef488c
No related branches found
No related tags found
No related merge requests found
......@@ -576,7 +576,8 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
mAdapter.addItem(mw, true, position);
}
};
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