/*
 * Copyright (C) 2017 Yaroslav Mytkalyk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.doctoror.fuckoffmusicplayer.presentation.queue;

import android.app.Activity;
import android.app.FragmentManager;
import android.content.Context;
import android.support.annotation.NonNull;

import com.doctoror.fuckoffmusicplayer.presentation.library.DeleteItemDialogFragment;
import com.doctoror.fuckoffmusicplayer.presentation.media.MediaManagerService;

public final class DeleteMediaDialogFragment extends DeleteItemDialogFragment {

    private static final String TAG = "DeleteMediaDialogFragment";

    public interface Callback {
        void onPerformDelete(long id);
    }

    public static void show(
            @NonNull final Context context,
            @NonNull final FragmentManager fragmentManager,
            final long albumId,
            @NonNull final String albumName) {
        DeleteItemDialogFragment.show(context,
                DeleteMediaDialogFragment.class,
                fragmentManager,
                TAG,
                albumId,
                albumName);
    }

    @Override
    protected void performDelete() {
        final Activity activity = getActivity();
        if (activity != null) {
            if (activity instanceof Callback) {
                ((Callback) activity).onPerformDelete(getTargetId());
            }
            MediaManagerService.deleteMedia(activity, getTargetId());
        }
    }
}

@@ -799,16 +799,60 @@
 NonNull;
+%0Aimport android.support.annotation.Nullable;
 %0A%0Aimport
@@ -1413,30 +1413,31 @@
           @N
-onN
 ull
+able
  final Strin
@@ -1651,16 +1651,41 @@
 lbumName
+ != null ? albumName : %22%22
 );%0A    %7D

Add nullability handling for DeleteMediaDialogFragment