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

Add view nullity check on delete fail

parent 0a47f2b7
......@@ -208,7 +208,8 @@ public abstract class MediaBrowserFragment extends PlaybackServiceFragment imple
private void onDeleteFailed(MediaWrapper media) {
if (isAdded()) UiTools.snacker(getView(), getString(R.string.msg_delete_failed, media.getTitle()));
final View v = getView();
if (v != null && isAdded()) UiTools.snacker(v, getString(R.string.msg_delete_failed, media.getTitle()));
protected void showInfoDialog(MediaLibraryItem item) {
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